Magicoder S CL 7B

الكودمتاح
من Communityمعرّف النموذج: 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.

السعر
≈ ‏0.0924 US$/تشغيل
السياق
16,384 رمز
الحد الأقصى للإخراج
4,096 رمز
Input → output
نص → نص
مطور
Community
تم التحديث
23 سبتمبر 2026
01

Playground

جرّب Magicoder S CL 7B

الإدخال والإخراج

≈ ‏0.0924 US$/تشغيل
جرّب Magicoder S CL 7B

0 / 8,000

إعدادات متقدمة (3)
النتيجة
تظهر الإجابة هنا.

هذا التشغيل

حوالي ‏0.0924 US$ · 9.24 رصيد

يتم حجز ‏0.2772 US$ (27.72 رصيد) عند البدء؛ يتم فواتير وقت GPU الفعلي.

للحسابات بدون عملية شراء سابقة: التشغيلات التي تتجاوز 2 رصيد تحتاج إلى إعادة تعبئة.

جديد هنا؟

10 رصيد مجاني (‏0.10 US$) عند التسجيل باستخدام Google

قابل للاستخدام 24 ساعة بعد التسجيل، حتى 5 تشغيل يومياً وبحد أقصى 2 رصيد لكل تشغيل. طرق تسجيل الدخول الأخرى تبدأ بدون رصيد.

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

حول Magicoder S CL 7B

الملخصاعتباراً من 23 سبتمبر 2026

Magicoder S CL 7B هو نموذج من Community في فئة الكود. على Railwail، يكلف Magicoder S CL 7B ≈ ‏0.0924 US$ لكل تشغيل. نافذة السياق تحتوي على 16,384 رموز، والرد الواحد يمكن أن يصل إلى 4,096 رموز.

04

التسعير

الأسعار بالدولار الأمريكي. يتم احتساب الاستخدام من الأرصدة المدفوعة مقدماً.
التشغيل النموذجي (≈ 79 ث على L40S)‏0.0924 US$ لكل تشغيل
وقت GPU (L40S)‏0.00117 US$ لكل ثانية GPU
  • يتم الفرز بناءً على وقت GPU الذي يستغرقه التشغيل فعلياً. عند بدء التشغيل، يتم حجز 3× السعر النموذجي من رصيدك ويتم تسويته لاحقاً.
  • 1 رصيد = ‏0.01 US$

حاسبة التكلفة

حاسبة الأسعار

s

نموذجي وفقاً للمزود: حوالي 79 ث

الإجمالي

‏9.24 US$

924 رصيد

لكل تشغيل

‏0.0924 US$ · 9.24 رصيد

يتم الفرض بناءً على وقت GPU الفعلي؛ هذا تقدير.

05

API

استدعِ Magicoder S CL 7B باستخدام مفتاح Railwail API الخاص بك. استخدم معرّف النموذج هذا في الطلب:

لا يوجد مثال API موثق

API العام يمرر صيغة إدخال مختلفة عما يحتاجه هذا النموذج. استخدم ساحة الاختبار أعلاه.

06

المواصفات

معرّف النموذج
magicoder-s-cl-7b
مطور
Community
الفئة
الكود
الإدخال
نص
الإخراج
نص
نافذة السياق
16,384 رمز
الحد الأقصى للإخراج
4,096 رمز
الفواتير
حسب الاستخدام (الرموز أو وقت GPU)
تم تحديث إدخال الكتالوج
23 سبتمبر 2026

معاملات الإدخال

المدخلات والإعدادات من مخطط إدخال النموذج. يوضح المثال في قسم API أيها تقبل API.

  • promptمطلوب

    Code or instruction

    النوع: نص
    الافتراضي: –
    القيم المسموحة: حتى 8,000 حرف
  • mode
    النوع: اختيار
    الافتراضي: complete
    القيم المسموحة: complete أو explain أو refactor
  • top_p
    النوع: رقم
    الافتراضي: 0.95
    القيم المسموحة: 0 إلى 1
  • stream
    النوع: نعم/لا
    الافتراضي: false
    القيم المسموحة: –
  • language
    النوع: اختيار
    الافتراضي: python
    القيم المسموحة: python أو typescript أو javascript أو rust أو go أو java أو cpp أو csharp أو ruby أو php
  • max_tokens
    النوع: عدد صحيح
    الافتراضي: 1024
    القيم المسموحة: 1 إلى 4,096
  • temperature
    النوع: رقم
    الافتراضي: 0.2
    القيم المسموحة: 0 إلى 2

الوسوم

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

حالات الاستخدام

08

الأسئلة الشائعة

ما هو Magicoder S CL 7B؟

Magicoder S CL 7B هو نموذج من Community في فئة الكود.

كم تكلفة Magicoder S CL 7B على Railwail؟

على Railwail، يكلف Magicoder S CL 7B ≈ ‏0.0924 US$ لكل تشغيل. يتم فرض رسوم عليك مقابل ما تستخدمه كل طلب فعلياً. الاستخدام يُدفع من أرصدة مدفوعة مقدماً؛ 1 رصيد يساوي ‏0.01 US$.

ما حجم نافذة السياق في Magicoder S CL 7B؟

نافذة السياق في Magicoder S CL 7B تحتوي على 16,384 رموز. الرد الواحد يمكن أن يصل إلى 4,096 رموز.

ما سرعة Magicoder S CL 7B؟

لا توجد عمليات تشغيل مقاسة كافية لـ Magicoder S CL 7B على Railwail حتى الآن لتحديد وقت التشغيل. يعتمد على الإدخال والإعدادات والحمل لدى المزود.

هل Magicoder S CL 7B أفضل من Code Llama 13B Instruct؟

هذا يعتمد على المهمة. Magicoder S CL 7B (Community) و Code Llama 13B Instruct (Meta) كلاهما نموذج في فئة الكود. تعرض صفحة المقارنة أسعارهما والمواصفات جنباً إلى جنب.

قارن Magicoder S CL 7B و Code Llama 13B Instruct
09

نماذج قابلة للمقارنة

الكل في هذه الفئة

جميع النماذج عبر API واحدة

مفتاح API واحد لكل نموذج على Railwail. يتم احتساب الاستخدام من الأرصدة المدفوعة مقدماً، 1 رصيد = ‏0.01 US$.