Magicoder S CL 7B

KodDostupno
od CommunityID modela: 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.

Cijena
≈ 0,0924 US$/pokretanje
Kontekst
16.384 tokena
Maks. izlaz
4.096 tokena
Ulaz → izlaz
Tekst → Tekst
Razvojni inženjer
Community
Ažurirano
23. septembar 2026.
01

Playground

Isprobaj Magicoder S CL 7B

Unos i rezultat

≈ 0,0924 US$/pokretanje
Isprobaj Magicoder S CL 7B

0 / 8.000

Napredne postavke (3)
Rezultat
Odgovor se pojavljuje ovdje.

Ovaj pokus

oko 0,0924 US$ · 9,24 kredita

Na početku se rezervira 0,2772 US$ (27,72 kredita); naplata se vrši prema stvarnom GPU vremenu.

Za račune bez prethodne kupnje: pokusi iznad 2 kredita trebaju dopunjavanje.

Novi si ovdje?

10 besplatnih kredita (0,10 US$) kada se registriraš s Googlom

Dostupno 24 sati nakon registracije, do 5 pokusa dnevno i najviše 2 kredita po pokusu. Ostale metode prijave počinju bez kredita.

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

O Magicoder S CL 7B

UkratkoStanje: 23. septembar 2026.

Magicoder S CL 7B je model od Community iz kategorije Kod. Na Railwailu, Magicoder S CL 7B košta ≈ 0,0924 US$ po pokretanju. Kontekstni prozor sadrži 16.384 tokena, a jedan odgovor može biti dugačak do 4.096 tokena.

04

Cijene

Cijene u USD-u. Korištenje se naplaćuje iz unaprijed plaćenih kredita.
Tipično pokretanje (≈ 79 s na L40S)0,0924 US$ po pokretanju
GPU vrijeme (L40S)0,00117 US$ po GPU sekundi
  • Naplaćuje se prema GPU vremenu koje pokretanje zapravo traje. Kada se pokretanje počne, 3× tipična cijena se rezervira iz vašeg stanja i naknadno se namiruje.
  • 1 kredit = 0,01 US$

Kalkulator troškova

Kalkulator cijena

s

Tipično prema pružatelju: oko 79 s

Ukupno

9,24 US$

924 kredita

Po pokretanju

0,0924 US$ · 9,24 kredita

Naplaćuje se stvarno GPU vrijeme; ovo je procjena.

05

API

Pozovi Magicoder S CL 7B sa svojim Railwail API ključem. Koristi ovaj ID modela u zahtjevu:

Nema provjeren primjer API-ja

Javni API prosleđuje drugačiji format unosa nego što ovaj model trebuje. Koristite playground gore.

06

Specifikacije

ID modela
magicoder-s-cl-7b
Razvojni inženjer
Community
Kategorija
Kod
Ulaz
Tekst
Izlaz
Tekst
Kontekstni prozor
16.384 tokena
Maks. izlaz
4.096 tokena
Naplata
Po potrošnji (tokeni ili GPU vrijeme)
Katalog ažuriran
23. septembar 2026.

Parametri ulaza

Ulazi i postavke iz sheme ulaza modela. Primjer u odjeljku API pokazuje koje od njih API prihvaća.

  • promptobavezno

    Code or instruction

    Tip: Tekst
    Zadano: –
    Dozvoljene vrijednosti: do 8.000 znakova
  • mode
    Tip: Izbor
    Zadano: complete
    Dozvoljene vrijednosti: complete, explain ili refactor
  • top_p
    Tip: Broj
    Zadano: 0.95
    Dozvoljene vrijednosti: 0 do 1
  • stream
    Tip: Da/Ne
    Zadano: false
    Dozvoljene vrijednosti: –
  • language
    Tip: Izbor
    Zadano: python
    Dozvoljene vrijednosti: python, typescript, javascript, rust, go, java, cpp, csharp, ruby ili php
  • max_tokens
    Tip: Cijeli broj
    Zadano: 1024
    Dozvoljene vrijednosti: 1 do 4.096
  • temperature
    Tip: Broj
    Zadano: 0.2
    Dozvoljene vrijednosti: 0 do 2

Oznake

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

Primjena

08

Često postavljana pitanja

Što je Magicoder S CL 7B?

Magicoder S CL 7B je model od Community iz kategorije Kod.

Koliko stoji Magicoder S CL 7B na Railwailu?

Na Railwailu, Magicoder S CL 7B košta ≈ 0,0924 US$ po pokretanju. Naplaćuje se ono što svaki zahtjev zapravo koristi. Korištenje se plaća iz unaprijed kupljenih kredita; 1 kredit jednaka je 0,01 US$.

Koliki je kontekstni prozor od Magicoder S CL 7B?

Kontekstni prozor od Magicoder S CL 7B sadrži 16.384 tokena. Jedan odgovor može biti dugačak do 4.096 tokena.

Koliko je brz Magicoder S CL 7B?

Za Magicoder S CL 7B na Railwailu još nema dovoljno izmjerenih pokretanja da bi se navedlo vrijeme izvršavanja. Ovisi o unošenju, postavkama i opterećenju kod pružatelja.

Je li Magicoder S CL 7B bolji od Code Llama 13B Instruct?

To ovisi o zadatku. Magicoder S CL 7B (Community) i Code Llama 13B Instruct (Meta) su oba modela iz kategorije Kod. Stranica za usporedbu prikazuje njihove cijene i specifikacije usporedno.

Usporedi Magicoder S CL 7B i Code Llama 13B Instruct
09

Usporedivi modeli

Svi u ovoj kategoriji

Svi modeli preko jednog API-ja

Jedan API ključ za sve modele na Railwailu. Korištenje se naplaćuje iz unaprijed plaćenih kredita, 1 kredit = 0,01 US$.