Magicoder S CL 7B

CodeDisponibile
di CommunityID modello: 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.

Prezzo
≈ 0,0924 USD/esecuzione
Contesto
16.384 token
Max. output
4096 token
Input → output
Testo → Testo
Sviluppatore
Community
Aggiornato
23 settembre 2026
01

Playground

Prova Magicoder S CL 7B

Input e output

≈ 0,0924 USD/esecuzione
Prova Magicoder S CL 7B

0 / 8000

Impostazioni avanzate (3)
Risultato
La risposta appare qui.

Questa esecuzione

circa 0,0924 USD · 9,24 crediti

0,2772 USD (27,72 crediti) sono riservati all'inizio; il tempo GPU effettivo viene fatturato.

Per account senza acquisti precedenti: le esecuzioni oltre 2 crediti richiedono una ricarica.

Nuovo qui?

10 crediti gratuiti (0,10 USD) quando ti iscrivi con Google

Utilizzabile 24 ore dopo l'iscrizione, fino a 5 esecuzioni al giorno e al massimo 2 crediti per esecuzione. Altri metodi di accesso iniziano senza crediti.

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

Informazioni su Magicoder S CL 7B

RiassuntoA partire da 23 settembre 2026

Magicoder S CL 7B è un modello di Community nella categoria Code. Su Railwail, Magicoder S CL 7B costa ≈ 0,0924 USD per esecuzione. La finestra di contesto contiene 16.384 token e una risposta può essere lunga fino a 4096 token.

04

Prezzi

Prezzi in dollari USA. L'utilizzo viene addebitato dai crediti prepagati.
Esecuzione tipica (≈ 79 s su L40S)0,0924 USD per esecuzione
Tempo GPU (L40S)0,00117 USD per secondo GPU
  • Fatturato in base al tempo GPU effettivamente utilizzato. All'avvio, 3× il prezzo tipico viene riservato dal tuo saldo e regolato successivamente.
  • 1 credito = 0,01 USD

Calcolatore di costi

Calcolatore prezzi

s

Tipico secondo il provider: circa 79 s

Totale

9,24 USD

924 crediti

Per esecuzione

0,0924 USD · 9,24 crediti

Fatturato in base al tempo GPU effettivo; questo è una stima.

05

API

Chiama Magicoder S CL 7B con la tua chiave API Railwail. Usa questo ID modello nella richiesta:

Nessun esempio API verificato

L'API pubblica passa un formato di input diverso da quello richiesto da questo modello. Usa il playground sopra.

06

Specifiche

ID modello
magicoder-s-cl-7b
Sviluppatore
Community
Categoria
Code
Input
Testo
Output
Testo
Finestra di contesto
16.384 token
Output massimo
4096 token
Fatturazione
In base all'utilizzo (token o tempo GPU)
Voce di catalogo aggiornata
23 settembre 2026

Parametri di input

Input e impostazioni dallo schema di input del modello. L'esempio nella sezione API mostra quali di essi l'API accetta.

  • promptObbligatorio

    Code or instruction

    Tipo: Testo
    Predefinito: –
    Valori consentiti: fino a 8000 caratteri
  • mode
    Tipo: Scelta
    Predefinito: complete
    Valori consentiti: complete, explain o refactor
  • top_p
    Tipo: Numero
    Predefinito: 0.95
    Valori consentiti: 0 a 1
  • stream
    Tipo: Sì/No
    Predefinito: false
    Valori consentiti: –
  • language
    Tipo: Scelta
    Predefinito: python
    Valori consentiti: python, typescript, javascript, rust, go, java, cpp, csharp, ruby o php
  • max_tokens
    Tipo: Numero intero
    Predefinito: 1024
    Valori consentiti: 1 a 4096
  • temperature
    Tipo: Numero
    Predefinito: 0.2
    Valori consentiti: 0 a 2

Etichette

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

Casi d'uso

08

Domande frequenti

Cos'è Magicoder S CL 7B?

Magicoder S CL 7B è un modello di Community nella categoria Code.

Quanto costa Magicoder S CL 7B su Railwail?

Su Railwail, Magicoder S CL 7B costa ≈ 0,0924 USD per esecuzione. Ti viene addebitato ciò che ogni richiesta utilizza effettivamente. L'utilizzo viene pagato con crediti prepagati; 1 credito equivale a 0,01 USD.

Qual è la finestra di contesto di Magicoder S CL 7B?

La finestra di contesto di Magicoder S CL 7B contiene 16.384 token. Una risposta può essere lunga fino a 4096 token.

Quanto è veloce Magicoder S CL 7B?

Non ci sono ancora abbastanza esecuzioni misurate di Magicoder S CL 7B su Railwail per indicare un tempo di esecuzione. Dipende dall'input, dalle impostazioni e dal carico presso il provider.

Magicoder S CL 7B è migliore di Code Llama 13B Instruct?

Dipende dall'attività. Magicoder S CL 7B (Community) e Code Llama 13B Instruct (Meta) sono entrambi modelli nella categoria Code. La pagina di confronto mostra i loro prezzi e le specifiche affiancati.

Confronta Magicoder S CL 7B e Code Llama 13B Instruct
09

Modelli comparabili

Tutti in questa categoria

Tutti i modelli tramite un'API

Una chiave API per tutti i modelli su Railwail. L'utilizzo viene addebitato da crediti prepagati, 1 credito = 0,01 USD.