Code Llama 7B Instruct
codellama-7b-instructMeta'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.
- Preis
- ca. $ 0,0074/Lauf
- Kontext
- 16 384 Token
- Max. Ausgabe
- 4 096 Token
- Eingabe → Ausgabe
- Text → Text
- Entwickler
- Meta
- Aktualisiert
- 23. September 2026
Playground
Code Llama 7B Instruct ausprobieren
Eingabe & Ergebnis
Dieser Lauf
ca. $ 0,0074 · 0,74 Credits
Beim Start werden $ 0,022 (2,2 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 javascript function that calculates euclidean distance between two coordinates of any dimension
Antwort
Here is an example of how you could define such a function in JavaScript: function computeEuclideanDistance(coord1, coord2) { // Get the dimensions of both coordinate arrays var dim1 = coord1.length; var dim2 = coord2.length; // Initialize the sum of squared differences var sumOfSquaredDifferences = 0; // Iterate over each element in both coordinate arrays and calculate the difference and square it to get the squared difference and then add up all these squared differences to get the total sum of squared differences. for ( var i = 0; i < Math.min(dim1, dim2)); i++) { sumOfSquaredDifferences += Math.pow((coord1[i]) - ((coord2[i]))), 2); } return Math.sqrt(sumOfSquaredDifferences)), dim1 + dim2)); }
Über Code Llama 7B Instruct
Code Llama 7B Instruct ist ein Modell von Meta aus der Kategorie Code. Über Railwail kostet Code Llama 7B Instruct ca. $ 0,0074 pro Lauf. Das Kontextfenster umfasst 16 384 Token, eine Antwort bis zu 4 096 Token.
Preise
| Typischer Lauf (ca. 6 s auf L40S) | $ 0,0074 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. 6,3 s
Gesamt
$ 0,74
74 Credits
Je Lauf
$ 0,0074 · 0,74 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-7b-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
- lightweight
- replicate
Einsatzgebiete
Häufige Fragen
Was ist Code Llama 7B Instruct?
Code Llama 7B Instruct ist ein Modell von Meta aus der Kategorie Code.
Was kostet Code Llama 7B Instruct bei Railwail?
Über Railwail kostet Code Llama 7B Instruct ca. $ 0,0074 pro Lauf. Abgerechnet wird, was jede Anfrage tatsächlich verbraucht. Bezahlt wird mit vorab gekauften Credits; 1 Credit entspricht $ 0,01.
Wie groß ist das Kontextfenster von Code Llama 7B Instruct?
Das Kontextfenster von Code Llama 7B Instruct umfasst 16 384 Token. Eine Antwort kann bis zu 4 096 Token lang sein.
Wie schnell ist Code Llama 7B Instruct?
Für Code Llama 7B 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 7B Instruct besser als Code Llama 13B Instruct?
Das hängt von der Aufgabe ab. Code Llama 7B Instruct (Meta) und Code Llama 13B Instruct (Meta) sind beide Modelle aus der Kategorie Code. Die Vergleichsseite zeigt Preise und Spezifikationen nebeneinander.
Code Llama 7B 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
12 % günstiger je Einheit
Code Llama 7B Instruct und Code Llama 13B Instruct vergleichenMeta'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.
ca. $ 0,0408/Lauf
451 % teurer je Einheit
Code Llama 7B Instruct und Code Llama 34B 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
581 % teurer je Einheit
Code Llama 7B Instruct und Code Llama 70B 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.