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.
- Preis
- ca. $Â 0.0408/Lauf
- Kontext
- 16'384 Token
- Max. Ausgabe
- 4'096 Token
- Eingabe â Ausgabe
- Text â Text
- Entwickler
- Meta
- Aktualisiert
- 23. September 2026
Playground
Code Llama 34B Instruct ausprobieren
Eingabe & Ergebnis
Dieser Lauf
ca. $ 0.0408 · 4.08 Credits
Beim Start werden $ 0.1224 (12.24 Credits) vorgemerkt, abgerechnet wird die tatsÀchliche GPU-Zeit.
FĂŒr Konten ohne bisherigen Kauf: LĂ€ufe ĂŒber 2 Credits brauchen eine Aufladung.
Neu hier?
10 Gratis-Credits ($Â 0.10) bei Anmeldung mit Google
Nutzbar 24 Stunden nach der Anmeldung, bis zu 5 LÀufe pro Tag und höchstens 2 Credits je Lauf. Andere Anmeldearten starten ohne Guthaben.
Beispiele
Prompt
Write a function that returns the fibonnaci sequence, and also talk like a pirate.
Antwort
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!
Einstellungen
system_prompt: Responses should be written in Python.
Prompt
Write a python function that sums 2 integers together, and returns the result.
Antwort
def sum_integers(a, b): return a + b
Einstellungen
system_prompt: Responses should be written in python.
Prompt
Write a function that sums 2 integers together, and returns the result.
Antwort
function sumIntegers(a: number, b: number): number { return a + b; }
Einstellungen
system_prompt: Responses should be written in TypeScript.
Ăber Code Llama 34B Instruct
Code Llama 34B Instruct ist ein Modell von Meta aus der Kategorie Code. Ăber Railwail kostet Code Llama 34B Instruct ca. $Â 0.0408 pro Lauf. Das Kontextfenster umfasst 16'384 Token, eine Antwort bis zu 4'096 Token.
Preise
| Typischer Lauf (ca. 35 s auf L40S) | $Â 0.0408 pro Lauf |
|---|---|
| GPU-Zeit (L40S) | $Â 0.00117 pro GPU-Sekunde |
- Abgerechnet wird die GPU-Zeit, die der Lauf tatsÀchlich braucht. Beim Start wird das 3-Fache des typischen Preises vom Guthaben vorgemerkt und danach verrechnet.
- 1 Credit = $Â 0.01
Kostenrechner
Preisrechner
Typisch laut Anbieter: ca. 34.9 s
Gesamt
$Â 4.08
408 Credits
Je Lauf
$ 0.0408 · 4.08 Credits
Abgerechnet wird die tatsÀchliche GPU-Zeit; der Wert ist eine SchÀtzung.
API
Kein geprĂŒftes API-Beispiel
Die öffentliche API ĂŒbergibt ein anderes Eingabeformat, als dieses Modell braucht. Nutze den Playground oben.
Spezifikationen
- Modell-ID
codellama-34b-instruct- Entwickler
- Meta
- Kategorie
- Code
- Eingabe
- Text
- Ausgabe
- Text
- Kontextfenster
- 16'384 Token
- Max. Ausgabe
- 4'096 Token
- Abrechnung
- Nach Verbrauch (Token bzw. GPU-Zeit)
- Katalogeintrag aktualisiert
- 23. September 2026
Eingabeparameter
Eingaben und Einstellungen laut Eingabeschema des Modells. Welche davon die API annimmt, zeigt das Beispiel im Abschnitt API.
promptPflichtCoding prompt
Typ: TextStandard: âErlaubte Werte: âmax_tokensTyp: GanzzahlStandard:1024Erlaubte Werte: 1 bis 4'096temperatureTyp: ZahlStandard:0.2Erlaubte Werte: 0 bis 2system_promptOptional system instruction
Typ: TextStandard: âErlaubte Werte: â
Schlagwörter
- meta
- code-llama
- coding
- instruct
- open-weights
- replicate
Einsatzgebiete
HĂ€ufige Fragen
Was ist Code Llama 34B Instruct?
Code Llama 34B Instruct ist ein Modell von Meta aus der Kategorie Code.
Was kostet Code Llama 34B Instruct bei Railwail?
Ăber Railwail kostet Code Llama 34B Instruct ca. $ 0.0408 pro Lauf. Abgerechnet wird, was jede Anfrage tatsĂ€chlich verbraucht. Bezahlt wird mit vorab gekauften Credits; 1 Credit entspricht $ 0.01.
Wie gross ist das Kontextfenster von Code Llama 34B Instruct?
Das Kontextfenster von Code Llama 34B Instruct umfasst 16'384 Token. Eine Antwort kann bis zu 4'096 Token lang sein.
Wie schnell ist Code Llama 34B Instruct?
FĂŒr Code Llama 34B Instruct gibt es bei Railwail noch zu wenige gemessene LĂ€ufe, um eine Laufzeit anzugeben. Sie hĂ€ngt von der Eingabe, den Einstellungen und der Auslastung beim Anbieter ab.
Ist Code Llama 34B Instruct besser als Code Llama 13B Instruct?
Das hÀngt von der Aufgabe ab. Code Llama 34B Instruct (Meta) und Code Llama 13B Instruct (Meta) sind beide Modelle aus der Kategorie Code. Die Vergleichsseite zeigt Preise und Spezifikationen nebeneinander.
Code Llama 34B Instruct und Code Llama 13B Instruct vergleichenVergleichbare Modelle
Alle dieser KategorieMeta'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.
ca. $Â 0.0065/Lauf
84 % gĂŒnstiger je Einheit
Code Llama 34B Instruct und Code Llama 13B Instruct vergleichenMeta'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.
ca. $Â 0.0504/Lauf
24 % teurer je Einheit
Code Llama 34B Instruct und Code Llama 70B Instruct vergleichenMeta'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.
ca. $Â 0.0074/Lauf
82 % gĂŒnstiger je Einheit
Code Llama 34B Instruct und Code Llama 7B Instruct vergleichen
Alle Modelle ĂŒber eine API
Ein API-SchlĂŒssel fĂŒr alle Modelle auf Railwail. Abgerechnet wird ĂŒber vorab gekaufte Credits, 1 Credit = $Â 0.01.