Magicoder S CL 7B
magicoder-s-cl-7bUIUC Magicoder S CL 7B. CodeLlama-7B fine-tuned with OSS-Instruct synthetic data. Strong HumanEval Plus and MBPP Plus performance per parameter.
- Fiyat
- ≈ $0,0924/çalıştırma
- Bağlam
- 16.384 token
- Maks. Çıkış
- 4.096 token
- Giriş → Çıkış
- Metin → Metin
- Geliştirici
- Community
- Güncellendi
- 23 Eylül 2026
Playground
Magicoder S CL 7B'ı deneyin
Giriş & Sonuç
Bu çalıştırma
yaklaşık $0,0924 · 9,24 kredi
Başlangıçta $0,2772 (27,72 kredi) ayrılır; gerçek GPU süresi faturalandırılır.
Satın alma olmayan hesaplar için: 2 kredinin üzerindeki çalıştırmalar bir yükleme gerektirir.
Yeni misiniz?
Google ile kaydolduğunuzda 10 ücretsiz kredi ($0,10)
Kaydolduktan 24 saat sonra kullanılabilir, günde 5 çalıştırmaya kadar ve çalıştırma başına en fazla 2 kredi. Diğer oturum açma yöntemleri kredi olmadan başlar.
Examples
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):…
Magicoder S CL 7B Hakkında
Magicoder S CL 7B, Community tarafından Kod kategorisinde geliştirilen bir modeldir. Railwail üzerinde Magicoder S CL 7B maliyeti ≈ $0,0924 çalıştırma başına. Kontekst penceresi 16.384 token içerir ve bir yanıt en fazla 4.096 token uzunluğunda olabilir.
Fiyatlandırma
| Tipik çalıştırma (≈ 79 s, L40S üzerinde) | $0,0924 çalıştırma başına |
|---|---|
| GPU Süresi (L40S) | $0,00117 GPU saniyesi başına |
- Çalıştırmanın gerçekten aldığı GPU süresi için faturalandırılır. Çalıştırma başladığında, bakiyenizden tipik fiyatın 3 katı ayrılır ve daha sonra kapatılır.
- 1 kredi = $0,01
Maliyet Hesaplayıcı
Fiyat hesaplayıcı
Sağlayıcıya göre tipik: yaklaşık 79 s
Toplam
$9,24
924 kredi
Çalışma başına
$0,0924 · 9,24 kredi
Gerçek GPU süresi faturalandırılır; bu bir tahmindir.
API
Doğrulanmış API örneği yok
Genel API, bu modelin ihtiyaç duyduğundan farklı bir giriş biçimi iletir. Yukarıdaki oyun alanını kullanın.
Özellikler
- Model Kimliği
magicoder-s-cl-7b- Geliştirici
- Community
- Kategori
- Kod
- Giriş
- Metin
- Çıkış
- Metin
- Bağlam penceresi
- 16.384 token
- Maks. çıkış
- 4.096 token
- Faturalandırma
- Kullanıma göre (token veya GPU süresi)
- Katalog girişi güncellendi
- 23 Eylül 2026
Giriş Parametreleri
Modelin giriş şemasından giriş ve ayarlar. API bölümündeki örnek, API'nin hangilerini kabul ettiğini gösterir.
promptgerekliCode or instruction
Tür: MetinVarsayılan: –İzin verilen değerler: en fazla 8.000 karaktermodeTür: SeçimVarsayılan:completeİzin verilen değerler: complete, explain veya refactortop_pTür: SayıVarsayılan:0.95İzin verilen değerler: 0 ile 1 arasındastreamTür: Evet/HayırVarsayılan:falseİzin verilen değerler: –languageTür: SeçimVarsayılan:pythonİzin verilen değerler: python, typescript, javascript, rust, go, java, cpp, csharp, ruby veya phpmax_tokensTür: Tam sayıVarsayılan:1024İzin verilen değerler: 1 ile 4.096 arasındatemperatureTür: SayıVarsayılan:0.2İzin verilen değerler: 0 ile 2 arasında
Etiketler
- replicate
- code-generation
- open-weights
- research
Kullanım Alanları
Sık Sorulan Sorular
Magicoder S CL 7B nedir?
Magicoder S CL 7B, Community tarafından Kod kategorisinde oluşturulan bir modeldir.
Magicoder S CL 7B Railwail'de ne kadar maliyetlidir?
Railwail üzerinde Magicoder S CL 7B maliyeti ≈ $0,0924 çalıştırma başına. Her istek gerçekten ne kadar kullanırsa o kadar ücretlendirilirsiniz. Kullanım ön ödemeli kredilerden ödenir; 1 kredi $0,01 değerindedir.
Magicoder S CL 7B'nin kontekst penceresi ne kadardır?
Magicoder S CL 7B'nin kontekst penceresi 16.384 token içerir. Bir yanıt en fazla 4.096 token uzunluğunda olabilir.
Magicoder S CL 7B ne kadar hızlıdır?
Railwail'de Magicoder S CL 7B için henüz çalıştırma süresi belirtmek için yeterli ölçülen çalıştırma yoktur. Bu, giriş, ayarlar ve sağlayıcıdaki yüke bağlıdır.
Magicoder S CL 7B, Code Llama 13B Instruct'dan daha iyi midir?
Bu göreve bağlıdır. Magicoder S CL 7B (Community) ve Code Llama 13B Instruct (Meta) her ikisi de Kod kategorisinde modellerdir. Karşılaştırma sayfası fiyatlarını ve özelliklerini yan yana gösterir.
Magicoder S CL 7B ve Code Llama 13B Instruct'ı karşılaştırKarşılaştırılabilir modeller
Bu kategorideki tümüMeta's 13B Code Llama tuned for instruction following. A faster mid-size option for code generation and completion, supporting infilling for inserting code at a cursor position. Served on Replicate per call.
≈ $0,0065/çalıştırma
Birim başına 93 % daha ucuz
Magicoder S CL 7B ve Code Llama 13B Instruct karşılaştırMeta's 34B Code Llama tuned for instruction following. A balance of size and quality for code generation, completion, and explanation, with strong coverage of Python, JavaScript, and other common languages. Runs on Replicate per call.
≈ $0,0408/çalıştırma
Birim başına 56 % daha ucuz
Magicoder S CL 7B ve Code Llama 34B Instruct karşılaştırMeta's largest Code Llama, a 70B Llama-2 derivative specialized for programming and tuned to follow instructions in chat form. Handles code generation, completion, and explanation across common languages. Served on Replicate as a per-call endpoint.
≈ $0,0504/çalıştırma
Birim başına 45 % daha ucuz
Magicoder S CL 7B ve Code Llama 70B Instruct karşılaştır
Tüm Modeller Tek Bir API Aracılığıyla
Railwail'deki her model için bir API anahtarı. Kullanım, ön ödemeli kredilerden tahsil edilir, 1 kredi = $0,01.