Code Llama 34B Instruct

الكودمتاح
من Metaمعرّف النموذج: codellama-34b-instruct

Meta'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 US$/تشغيل
السياق
16,384 رمز
الحد الأقصى للإخراج
4,096 رمز
Input → output
نص → نص
مطور
Meta
تم التحديث
٢٣ سبتمبر ٢٠٢٦
01

Playground

جرّب Code Llama 34B Instruct

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

≈ ‏0.0408 US$/تشغيل
جرّب Code Llama 34B Instruct
إعدادات متقدمة (3)
النتيجة
تظهر الإجابة هنا.

هذا التشغيل

حوالي ‏0.0408 US$ · 4.08 رصيد

يتم حجز ‏0.1224 US$ (12.24 رصيد) عند البدء؛ يتم فواتير وقت 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 function that returns the fibonnaci sequence, and also talk like a pirate.

    Response

    Arrgh, here be me code for ye, matey: ``` def fibonacci(n): if n <= 1: return n else: return fibonacci(n-1) + fibonacci(n-2) ``` Now, let's break down the code and talk like pirates, savvy? The function starts with a simple check: if the input `n` is less than or equal to 1, we just return it as the first two numbers in the sequence are 0 and 1. This be called the "base case." ``` if n <= 1: return n ``` But if the input `n` be greater than 1, we have a bit more work to do. We use a recursive call to find the previous two numbers in the sequence by calling the function again with `n-1`. This be called the "recursive case." ``` else: return fibonacci(n-1) + fibonacci(n-2) ``` Now, let's talk like pirates. The first two numbers in the sequence be 0 and 1, just like on the high seas. The next number be 1+1=2, which be like a ship with two masts. Then it be 1+2=3, which be like a ship with three masts. And so on and so forth. ``` 0, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987, 1597, 2584, 4181, 6765 ``` So there ye have it, me hearty. The fibonacci sequence be a series of numbers that start with 0 and 1, and each number after that be the sum of the two before it. And if ye ever find yerself lost at sea, just remember: fibonacci be the answer to all yer problems!

    Settings

    system_prompt: Responses should be written in Python.

  • Prompt

    Write a python function that sums 2 integers together, and returns the result.

    Response

    def sum_integers(a, b): return a + b

    Settings

    system_prompt: Responses should be written in python.

  • Prompt

    Write a function that sums 2 integers together, and returns the result.

    Response

    function sumIntegers(a: number, b: number): number { return a + b; }

    Settings

    system_prompt: Responses should be written in TypeScript.

03

حول Code Llama 34B Instruct

الملخصاعتباراً من ٢٣ سبتمبر ٢٠٢٦

Code Llama 34B Instruct هو نموذج من Meta في فئة الكود. على Railwail، يكلف Code Llama 34B Instruct ≈ ‏0.0408 US$ لكل تشغيل. نافذة السياق تحتوي على 16,384 رموز، والرد الواحد يمكن أن يصل إلى 4,096 رموز.

Code Llama 34B Instruct sits in the middle-upper range of Meta's Code Llama family. It generates and edits code from natural-language instructions and was a popular open-weights choice for self-hosted coding assistants before newer families arrived.
04

التسعير

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

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

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

s

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

الإجمالي

‏4.08 US$

408 رصيد

لكل تشغيل

‏0.0408 US$ · 4.08 رصيد

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

05

API

استدعِ Code Llama 34B Instruct باستخدام مفتاح Railwail API الخاص بك. استخدم معرّف النموذج هذا في الطلب:

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

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

06

المواصفات

معرّف النموذج
codellama-34b-instruct
مطور
Meta
الفئة
الكود
الإدخال
نص
الإخراج
نص
نافذة السياق
16,384 رمز
الحد الأقصى للإخراج
4,096 رمز
الفواتير
حسب الاستخدام (الرموز أو وقت GPU)
تم تحديث إدخال الكتالوج
٢٣ سبتمبر ٢٠٢٦

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

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

  • promptمطلوب

    Coding prompt

    النوع: نص
    الافتراضي: –
    القيم المسموحة: –
  • max_tokens
    النوع: عدد صحيح
    الافتراضي: 1024
    القيم المسموحة: 1 إلى 4,096
  • temperature
    النوع: رقم
    الافتراضي: 0.2
    القيم المسموحة: 0 إلى 2
  • system_prompt

    Optional system instruction

    النوع: نص
    الافتراضي: –
    القيم المسموحة: –

الوسوم

  • meta
  • code-llama
  • coding
  • instruct
  • open-weights
  • replicate
07

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

08

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

ما هو Code Llama 34B Instruct؟

Code Llama 34B Instruct هو نموذج من Meta في فئة الكود.

كم تكلفة Code Llama 34B Instruct على Railwail؟

على Railwail، يكلف Code Llama 34B Instruct ≈ ‏0.0408 US$ لكل تشغيل. يتم فرض رسوم عليك مقابل ما تستخدمه كل طلب فعلياً. الاستخدام يُدفع من أرصدة مدفوعة مقدماً؛ 1 رصيد يساوي ‏٠٫٠١ US$.

ما حجم نافذة السياق في Code Llama 34B Instruct؟

نافذة السياق في Code Llama 34B Instruct تحتوي على 16,384 رموز. الرد الواحد يمكن أن يصل إلى 4,096 رموز.

ما سرعة Code Llama 34B Instruct؟

لا توجد عمليات تشغيل مقاسة كافية لـ Code Llama 34B Instruct على Railwail حتى الآن لتحديد وقت التشغيل. يعتمد على الإدخال والإعدادات والحمل لدى المزود.

هل Code Llama 34B Instruct أفضل من Code Llama 13B Instruct؟

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

قارن Code Llama 34B Instruct و Code Llama 13B Instruct
09

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

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

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

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