Magicoder S CL 7B

KodE disponueshme
nga CommunityID-ja e modelit: magicoder-s-cl-7b

UIUC Magicoder S CL 7B. CodeLlama-7B fine-tuned with OSS-Instruct synthetic data. Strong HumanEval Plus and MBPP Plus performance per parameter.

Çmim
≈ 0,0924 US$/ekz
Kontekst
16 384 token
Dalja maks.
4096 token
Hyrje → Dalje
Tekst → Tekst
Zhvillues
Community
Përditësuar
23 shtator 2026
01

Loja e lojërave

Provo Magicoder S CL 7B

Hyrje & rezultat

≈ 0,0924 US$/ekz
Provo Magicoder S CL 7B

0 / 8000

Cilësimet e avancuara (3)
Rezultat
Përgjigja shfaqet këtu.

Ky ekzekutim

rreth 0,0924 US$ · 9,24 kredite

0,2772 US$ (27,72 kredite) rezervohen në fillim; koha aktuale e GPU-t faturohet.

Për llogaritë pa blerje: ekzekutimet mbi 2 kredite kanë nevojë për një rimbushje.

I ri këtu?

10 kredite falas (0,10 US$) kur të regjistrohet me Google

I përdorshëm 24 orë pas regjistrimit, deri në 5 ekzekutime në ditë dhe më shumë se 2 kredite për ekzekutim. Metodat e tjera të hyrjes fillojnë pa kredite.

02

Examples

Real outputs from the public examples of this model on Replicate, with the prompt and settings that produced them. They were not generated live on this page.
  • Prompt

    Write a snake game in Python using the turtle library (the game is created by Magicoder).

    Response

    Here is a simple snake game in Python using the turtle library. ```python import turtle import time import random delay = 0.1 # Score score = 0 high_score = 0 # Set up the screen wn = turtle.Screen() wn.title("Snake Game by Magicoder") wn.bgcolor("green") wn.setup(width=600, height=600) wn.tracer(0) # Turns off the screen updates # Snake head head = turtle.Turtle() head.speed(0) head.shape("square") head.color("black") head.penup() head.goto(0, 0) head.direction = "stop" # Snake food food = turtle.Turtle() food.speed(0) food.shape("circle") food.color("red") food.penup() food.goto(0, 100) segments = [] # Pen pen = turtle.Turtle() pen.speed(0) pen.shape("square") pen.color("white") pen.penup() pen.hideturtle() pen.goto(0, 260) pen.write("Score: 0 High Score: 0", align="center", font=("Courier", 24, "normal")) # Functions def go_up(): if head.direction!= "down": head.direction = "up" def go_down(): if head.direction!= "up": head.direction = "down" def go_left(): if head.direction!= "right": head.direction = "left" def go_right(): if head.direction!= "left": head.direction = "right" def move(): if head.direction == "up": y = head.ycor() head.sety(y + 20) if head.direction == "down": y = head.ycor() head.sety(y - 20) if head.direction == "left": x = head.xcor() head.setx(x - 20) if head.direction == "right": x = head.xcor() head.s


  • Prompt

    Build a simple neural network in Python using Pytorch to classify handwritten digits from the MNIST dataset. You should use CNN as the model structure, train the model for 5 epochs, draw a chart of the training loss, and show the final result.

    Response

    Here is a simple example of how you can build a convolutional neural network (CNN) using PyTorch to classify handwritten digits from the MNIST dataset. ```python import torch import torch.nn as nn import torch.optim as optim import torchvision import torchvision.transforms as transforms import matplotlib.pyplot as plt # Define the CNN architecture class Net(nn.Module): def __init__(self): super(Net, self).__init__() self.conv1 = nn.Conv2d(1, 32, 3, 1) self.conv2 = nn.Conv2d(32, 64, 3, 1) self.dropout1 = nn.Dropout2d(0.25) self.dropout2 = nn.Dropout2d(0.5) self.fc1 = nn.Linear(9216, 128) self.fc2 = nn.Linear(128, 10) def forward(self, x): x = self.conv1(x) x = nn.functional.relu(x) x = self.conv2(x) x = nn.functional.relu(x) x = nn.functional.max_pool2d(x, 2) x = self.dropout1(x) x = torch.flatten(x, 1) x = self.fc1(x) x = nn.functional.relu(x) x = self.dropout2(x) x = self.fc2(x) output = nn.functional.log_softmax(x, dim=1) return output # Load the MNIST dataset transform = transforms.Compose([transforms.ToTensor(), transforms.Normalize((0.1307,), (0.3081,))]) trainset = torchvision.datasets.MNIST(root='./data', train=True, download=True, transform=transform) trainloader = torch.utils.data.DataLoader(trainset, batch_size=64, shuffle=True) testset = torchvision.datasets.MNIST(root='./data', train=False, dow


  • Prompt

    Build a simple neural network in Python using Pytorch to classify handwritten digits from the MNIST dataset. You should use CNN as the model structure, train the model for 5 epochs, draw a chart of the training loss, and show the final result.

    Response

    Here is the Python code to create, train, and evaluate a Convolutional Neural Network (CNN) to classify handwritten digits from MNIST dataset. ```python import torch import torch.nn as nn import torchvision.transforms as transforms import torchvision.datasets as dsets import torch.optim as optim import matplotlib.pyplot as plt # Step 1: Loading Data # Transform the data to torch tensors and normalize it by the mean and std deviation transform = transforms.Compose([ transforms.ToTensor(), transforms.Normalize(mean=(0.5, ), std=(0.5, )) ]) train_dataset = dsets.MNIST(root='./data', train=True, transform=transform, download=True) test_dataset = dsets.MNIST(root='./data', train=False, transform=transform, download=True) # Prepare Data Loaders train_loader = torch.utils.data.DataLoader(dataset=train_dataset, batch_size=100, shuffle=True) test_loader = torch.utils.data.DataLoader(dataset=test_dataset, batch_size=100, shuffle=False) # Step 2: Define Model class CNN(nn.Module): def __init__(self): super().__init__() self.layer1 = nn.Sequential( nn.Conv2d(1, 32, kernel_size=5, padding=2), nn.ReLU(), nn.MaxPool2d(2) ) self.layer2 = nn.Sequential( nn.Conv2d(32, 64, kernel_size=5, padding=2), nn.ReLU(), nn.MaxPool2d(2) ) self.fc = nn.Linear(7*7*64, 10, bias=True) torch.nn.init.xavier_uniform_(self.fc.weight) def forward(self, x):


03

Rreth Magicoder S CL 7B

PërmbledhjeMë 23 shtator 2026

Magicoder S CL 7B Ă«shtĂ« njĂ« model i Community nĂ« kategorinĂ« Kod. NĂ« Railwail, Magicoder S CL 7B kushton ≈ 0,0924 US$ pĂ«r ekzekutim. Dritarja e kontekstit pĂ«rmban 16 384 token, dhe njĂ« pĂ«rgjigje mund tĂ« jetĂ« deri nĂ« 4096 token e gjatĂ«.

04

Çmimet

Çmimet nĂ« dollarĂ« amerikan. PĂ«rdorimi ngarkohet nga kreditet e parapaguar.
Ekzekutim tipik (≈ 79 s nĂ« L40S)0,0924 US$ pĂ«r ekzekutim
Koha GPU (L40S)0,00117 US$ për sekondë GPU
  • Faturohet sipas kohĂ«s GPU qĂ« ekzekutimi nĂ« tĂ« vĂ«rtetĂ« merr. Kur ekzekutimi fillon, 3× çmimi tipik rezervohet nga bilanci yt dhe zgjidhet mĂ« pas.
  • 1 kredi = 0,01 US$

Kalkulator i kostos

Kalkulator çmimesh

s

Tipike sipas ofruesi: rreth 79 s

Gjithsej

9,24 US$

924 kredite

Për ekzekutim

0,0924 US$ · 9,24 kredite

Faturohet koha aktuale e GPU; kjo është një vlerësim.

05

API

Thirr Magicoder S CL 7B me çelësin tuaj të API-t Railwail. Përdor këtë ID modeli në kërkesë:

Nuk ka shembull API të verifikuar

API publike kalon një format hyrjeje të ndryshëm nga ai që ky model ka nevojë. Përdor lojërat më lart.

06

Specifikacione

ID i modelit
magicoder-s-cl-7b
Zhvilluesi
Community
Kategoria
Kod
Hyrja
Tekst
Dalja
Tekst
Dritarja e kontekstit
16 384 token
Dalja maks.
4096 token
Faturimi
Sipas përdorimit (token ose kohë GPU)
Katalogu i përditësuar
23 shtator 2026

Parametrat e hyrjes

Hyrjet dhe cilësimet nga skema e hyrjes së modelit. Shembulli në seksionin API tregon cilat prej tyre e pranon API-ja.

  • prompti detyrueshĂ«m

    Code or instruction

    Lloji: Tekst
    Parazgjedhja: –
    Vlerat e lejuara: deri 8000 karaktere
  • mode
    Lloji: Zgjedhje
    Parazgjedhja: complete
    Vlerat e lejuara: complete, explain ose refactor
  • top_p
    Lloji: Numër
    Parazgjedhja: 0.95
    Vlerat e lejuara: 0 deri 1
  • stream
    Lloji: Po/Jo
    Parazgjedhja: false
    Vlerat e lejuara: –
  • language
    Lloji: Zgjedhje
    Parazgjedhja: python
    Vlerat e lejuara: python, typescript, javascript, rust, go, java, cpp, csharp, ruby ose php
  • max_tokens
    Lloji: Numër i plotë
    Parazgjedhja: 1024
    Vlerat e lejuara: 1 deri 4096
  • temperature
    Lloji: Numër
    Parazgjedhja: 0.2
    Vlerat e lejuara: 0 deri 2

Etiketat

  • replicate
  • code-generation
  • open-weights
  • research
07

Raste përdorimi

08

Pyetje të shpeshta

ÇfarĂ« Ă«shtĂ« Magicoder S CL 7B?

Magicoder S CL 7B është një model nga Community në kategorinë Kod.

Sa kushton Magicoder S CL 7B në Railwail?

NĂ« Railwail, Magicoder S CL 7B kushton ≈ 0,0924 US$ pĂ«r ekzekutim. TĂ« tarifohesh pĂ«r atĂ« qĂ« çdo kĂ«rkesĂ« nĂ« fakt pĂ«rdor. PĂ«rdorimi paguhet nga kredite tĂ« parapaguar; 1 kredit barazon 0,01 US$.

Cila është dritarja e kontekstit të Magicoder S CL 7B?

Dritarja e kontekstit të Magicoder S CL 7B përmban 16 384 token. Një përgjigje mund të jetë deri në 4096 token e gjatë.

Sa i shpejtë është Magicoder S CL 7B?

Nuk ka ende mjaft ekzekutime të matura të Magicoder S CL 7B në Railwail për të deklaruar një kohë ekzekutimi. Varet nga hyrja, cilësimet dhe ngarkesa në ofruesin e shërbimit.

A është Magicoder S CL 7B më i mirë se Code Llama 13B Instruct?

Varet nga detyra. Magicoder S CL 7B (Community) dhe Code Llama 13B Instruct (Meta) janë të dy modele në kategorinë Kod. Faqja e krahasimit tregon çmimet dhe specifikacimet e tyre krah për krah.

Krahaso Magicoder S CL 7B dhe Code Llama 13B Instruct
09

Të gjitha modelet përmes një API

Një çelës API për çdo model në Railwail. Përdorimi ngarkohet nga kreditet e parapaguar, 1 kredit = 0,01 US$.