Magicoder S CL 7B

KodsPieejams
no CommunityModeļa ID: 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.

Cena
≈ 0,0924 $/palaidi
Konteksts
16 384 marķieri
Maks. izvade
4096 marķieri
Ievade → Izvade
Teksts → Teksts
Izstrādātājs
Community
Atjaunināts
2026. gada 23. septembris
01

Spēļu laukums

Izmēģiniet Magicoder S CL 7B

Ievade un rezultāts

≈ 0,0924 $/palaidi
Izmēģiniet Magicoder S CL 7B

0 / 8000

Papildu iestatījumi (3)
Rezultāts
Atbilde parādīsies šeit.

Šis palaišanas gadījums

apmēram 0,0924 $ · 9,24 kredīti

Sākumā tiek rezervēti 0,2772 $ (27,72 kredīti); tiek norēķināts faktiskais GPU laiks.

Kontiem bez pirkuma: palaišanas gadījumi virs 2 kredītiem prasa papildināšanu.

Jauns šeit?

10 bezmaksas kredīti (0,10 $), reģistrējies ar Google

Pieejams 24 stundas pēc reģistrācijas, līdz 5 palaišanas gadījumi dienā un maksimāli 2 kredīti uz palaišanas gadījumu. Citas pierakstīšanās metodes sākas bez kredītiem.

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

Par Magicoder S CL 7B

ĪsumāUz 2026. gada 23. septembris

Magicoder S CL 7B ir Community modelis kategorijā Kods. Railwail platformā Magicoder S CL 7B maksā ≈ 0,0924 $ par palaidi. Konteksta logs satur 16 384 žetonus, un viena atbilde var būt līdz 4096 žetonu gara.

04

Cenas

Cenas ASV dolāros. Izmantošana tiek aprēķināta no iepriekš apmaksātiem kredītiem.
Tipisks palaidi (≈ 79 s uz L40S)0,0924 $ par palaidi
GPU laiks (L40S)0,00117 $ par GPU sekundi
  • Norēķināšana notiek par GPU laiku, ko palaidi faktiskā aizņem. Palaides sākumā no jūsu atlikuma tiek rezervēts 3× tipiskā cena un vēlāk nosegts.
  • 1 kredīts = 0,01 $

Izmaksu kalkulators

Cenu kalkulators

s

Tipiski pēc sniedzēja: aptuveni 79 s

Kopā

9,24 $

924 kredīti

Uz palaišanu

0,0924 $ · 9,24 kredīti

Norēķins pēc faktiskā GPU laika; šī ir aprēķins.

05

API

Izsauciet Magicoder S CL 7B ar savu Railwail API atslēgu. Izmantojiet šo modeļa ID pieprasījumā:

Nav pārbaudīta API piemēra

Publiskā API nodod citu ievades formātu, nekā nepieciešams šim modelim. Izmantojiet smilšu kasti iepriekš.

06

Specifikācijas

Modeļa ID
magicoder-s-cl-7b
Izstrādātājs
Community
Kategorija
Kods
Ievade
Teksts
Izvade
Teksts
Konteksta logs
16 384 marķieri
Maks. izvade
4096 marķieri
Norēķini
Pēc lietojuma (tokeni vai GPU laiks)
Kataloga ieraksts atjaunināts
2026. gada 23. septembris

Ievades parametri

Ievades un iestatījumi no modeļa ievades shēmas. Piemērs API sadaļā parāda, kurus no tiem API pieņem.

  • promptobligāts

    Code or instruction

    Tips: Teksts
    Noklusējums: –
    Atļautās vērtības: līdz 8000 rakstzīmēm
  • mode
    Tips: Izvēle
    Noklusējums: complete
    Atļautās vērtības: complete, explain vai refactor
  • top_p
    Tips: Skaitlis
    Noklusējums: 0.95
    Atļautās vērtības: 0 līdz 1
  • stream
    Tips: Jā/Nē
    Noklusējums: false
    Atļautās vērtības: –
  • language
    Tips: Izvēle
    Noklusējums: python
    Atļautās vērtības: python, typescript, javascript, rust, go, java, cpp, csharp, ruby vai php
  • max_tokens
    Tips: Vesels skaitlis
    Noklusējums: 1024
    Atļautās vērtības: 1 līdz 4096
  • temperature
    Tips: Skaitlis
    Noklusējums: 0.2
    Atļautās vērtības: 0 līdz 2

Tagi

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

Lietošanas gadījumi

08

Bieži uzdotie jautājumi

Kas ir Magicoder S CL 7B?

Magicoder S CL 7B ir Community izstrādāts modelis Kods kategorijā.

Cik maksā Magicoder S CL 7B Railwail?

Railwail platformā Magicoder S CL 7B maksā ≈ 0,0924 $ par palaidi. Jums tiek ņemta maksa par to, ko katra pieprasījuma izpilde faktiski izmanto. Izmantošana tiek apmaksāta no iepriekš nopirkto kredītu; 1 kredīts = 0,01 $.

Kāds ir Magicoder S CL 7B konteksta logs?

Magicoder S CL 7B konteksta logs satur 16 384 žetonus. Viena atbilde var būt līdz 4096 žetonu gara.

Cik ātrs ir Magicoder S CL 7B?

Railwail platformā Magicoder S CL 7B vēl nav pietiekami daudz izmērītu izpilžu, lai norādītu izpildes laiku. Tas ir atkarīgs no ievades, iestatījumiem un sniedzēja slodzes.

Vai Magicoder S CL 7B ir labāks par Code Llama 13B Instruct?

Tas ir atkarīgs no uzdevuma. Magicoder S CL 7B (Community) un Code Llama 13B Instruct (Meta) ir abi modeļi Kods kategorijā. Salīdzināšanas lapā to cenas un specifikācijas ir parādītas blakus.

Salīdzināt Magicoder S CL 7B un Code Llama 13B Instruct
09

Salīdzināmi modeļi

Visi šajā kategorijā

Visi modeļi caur vienu API

Viena API atslēga visiem Railwail modeļiem. Izmantošana tiek aprēķināta no iepriekš apmaksātiem kredītiem, 1 kredīts = 0,01 $.