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Â $.