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 $/הרצה
- הקשר
- 16,384 טוקנים
- פלט מקסימלי
- 4,096 טוקנים
- קלט → פלט
- טקסט → טקסט
- מפתח
- Meta
- עודכן
- 23 בספטמבר 2026
Playground
נסה את Code Llama 34B Instruct
קלט ותוצאה
הריצה הזו
בערך 0.0408 $ · 4.08 קרדיטים
0.1224 $ (12.24 קרדיטים) מסוכנים בתחילת הריצה; זמן ה-GPU בפועל יחויב.
לחשבונות ללא רכישה קודמת: ריצות מעל 2 קרדיטים דורשות טעינה.
חדש כאן?
10 קרדיטים חינם (0.10 $) כשאתה נרשם עם 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 $ להרצה. חלון ההקשר מכיל 16,384 טוקנים, והתשובה יכולה להיות עד 4,096 טוקנים.
תמחור
| הרצה טיפוסית (≈ 35 s ב-L40S) | 0.0408 $ להרצה |
|---|---|
| זמן GPU (L40S) | 0.00117 $ לשנייה של GPU |
- חיוב לפי זמן ה-GPU שההרצה בעצם לוקחת. כשההרצה מתחילה, 3× המחיר הטיפוסי מוזמן מהיתרה שלך ומסולק לאחר מכן.
- 1 קרדיט = 0.01 $
מחשבון עלויות
מחשבון מחירים
טיפוסי לפי הספק: כ-34.9 שנ׳
סה״כ
4.08 $
408 קרדיטים
לכל הרצה
0.0408 $ · 4.08 קרדיטים
חיוב לפי זמן ה-GPU בפועל; זו הערכה.
API
אין דוגמה API מאומתת
ה-API הציבורי מעביר פורמט קלט שונה מזה שהדגם הזה צריך. השתמש בגובה המשחק למעלה.
מפרטים
- ID מודל
codellama-34b-instruct- מפתח
- Meta
- קטגוריה
- קוד
- קלט
- טקסט
- פלט
- טקסט
- חלון הקשר
- 16,384 טוקנים
- פלט מקסימלי
- 4,096 טוקנים
- חיוב
- לפי שימוש (טוקנים או זמן GPU)
- רשומת הקטלוג עודכנה
- 23 בספטמבר 2026
פרמטרים קלט
קלטים והגדרות מסכימת הקלט של המודל. הדוגמה בסעיף 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 $ להרצה. אתה משלם על מה שכל בקשה בעצם משתמשת. השימוש משולם מקרדיטים שנרכשו מראש; 1 קרדיט שווה 0.01 $.
מה גודל חלון ההקשר של 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 אשראי = 0.01 $.