Code Llama 34B Instruct
codellama-34b-instructMeta'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
- تم التحديث
- ٢٣ سبتمبر ٢٠٢٦
Playground
جرّب Code Llama 34B Instruct
الإدخال والإخراج
هذا التشغيل
حوالي 0.0408 US$ · 4.08 رصيد
يتم حجز 0.1224 US$ (12.24 رصيد) عند البدء؛ يتم فواتير وقت GPU الفعلي.
للحسابات بدون عملية شراء سابقة: التشغيلات التي تتجاوز 2 رصيد تحتاج إلى إعادة تعبئة.
جديد هنا؟
10 رصيد مجاني (0.10 US$) عند التسجيل باستخدام Google
قابل للاستخدام 24 ساعة بعد التسجيل، حتى 5 تشغيل يومياً وبحد أقصى 2 رصيد لكل تشغيل. طرق تسجيل الدخول الأخرى تبدأ بدون رصيد.
Examples
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.
حول Code Llama 34B Instruct
Code Llama 34B Instruct هو نموذج من Meta في فئة الكود. على Railwail، يكلف Code Llama 34B Instruct ≈ 0.0408 US$ لكل تشغيل. نافذة السياق تحتوي على 16,384 رموز، والرد الواحد يمكن أن يصل إلى 4,096 رموز.
التسعير
| التشغيل النموذجي (≈ 35 ث على L40S) | 0.0408 US$ لكل تشغيل |
|---|---|
| وقت GPU (L40S) | 0.00117 US$ لكل ثانية GPU |
- يتم الفرز بناءً على وقت GPU الذي يستغرقه التشغيل فعلياً. عند بدء التشغيل، يتم حجز 3× السعر النموذجي من رصيدك ويتم تسويته لاحقاً.
- 1 رصيد = ٠٫٠١ US$
حاسبة التكلفة
حاسبة الأسعار
نموذجي وفقاً للمزود: حوالي 34.9 ث
الإجمالي
4.08 US$
408 رصيد
لكل تشغيل
0.0408 US$ · 4.08 رصيد
يتم الفرض بناءً على وقت GPU الفعلي؛ هذا تقدير.
API
لا يوجد مثال API موثق
API العام يمرر صيغة إدخال مختلفة عما يحتاجه هذا النموذج. استخدم ساحة الاختبار أعلاه.
المواصفات
- معرّف النموذج
codellama-34b-instruct- مطور
- Meta
- الفئة
- الكود
- الإدخال
- نص
- الإخراج
- نص
- نافذة السياق
- 16,384 رمز
- الحد الأقصى للإخراج
- 4,096 رمز
- الفواتير
- حسب الاستخدام (الرموز أو وقت GPU)
- تم تحديث إدخال الكتالوج
- ٢٣ سبتمبر ٢٠٢٦
معاملات الإدخال
المدخلات والإعدادات من مخطط إدخال النموذج. يوضح المثال في قسم API أيها تقبل API.
promptمطلوبCoding prompt
النوع: نصالافتراضي: –القيم المسموحة: –max_tokensالنوع: عدد صحيحالافتراضي:1024القيم المسموحة: 1 إلى 4,096temperatureالنوع: رقمالافتراضي:0.2القيم المسموحة: 0 إلى 2system_promptOptional system instruction
النوع: نصالافتراضي: –القيم المسموحة: –
الوسوم
- meta
- code-llama
- coding
- instruct
- open-weights
- replicate
حالات الاستخدام
الأسئلة الشائعة
ما هو 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نماذج قابلة للمقارنة
الكل في هذه الفئة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.
Meta'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.
Meta's smallest Code Llama at 7B parameters, tuned for instruction following. The cheapest and fastest member of the family for quick code generation, completion, and infilling. Served on Replicate per call.
جميع النماذج عبر API واحدة
مفتاح API واحد لكل نموذج على Railwail. يتم احتساب الاستخدام من الأرصدة المدفوعة مقدماً، 1 رصيد = ٠٫٠١ US$.