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.
- Verð
- ≈ 0,0408 USD/keyrsla
- Samhengi
- 16.384 tákn
- Hámarksúttak
- 4.096 tákn
- Inntak → úttak
- Texti → Texti
- Þróunaraðili
- Meta
- Uppfært
- 23. september 2026
Leiksvæði
Prófaðu Code Llama 34B Instruct
Inntak og úttak
Þessi keyrsla
um 0,0408 USD · 4,08 inneign
0,1224 USD (12,24 inneign) eru fráteknar við upphaf; raunverulegur GPU-tími er innheimtaður.
Fyrir reikninga án kaupa: keyrslur yfir 2 inneign þurfa áfyllingu.
Nýr hér?
10 ókeypis inneign (0,10 USD) þegar þú skráir þig með Google
Hægt að nota 24 klst. eftir skráningu, allt að 5 keyrslur á dag og að hámarki 2 inneign á keyrslu. Aðrar innskráningaraðferðir byrja án inneignar.
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.
Um Code Llama 34B Instruct
Code Llama 34B Instruct er módel frá Meta í flokknum Kóði. Á Railwail kostar Code Llama 34B Instruct ≈ 0,0408 USD fyrir hverja keyrslu. Samhengisgluggi geymir 16.384 tákn og ein svör getur verið allt að 4.096 tákn löng.
Verðlagning
| Dæmigerð keyrsla (≈ 35 s á L40S) | 0,0408 USD fyrir hverja keyrslu |
|---|---|
| GPU-tími (L40S) | 0,00117 USD fyrir hverja GPU-sekúndu |
- Reikningsfærðir eru GPU-tíminn sem keyrslan tekur í raun. Þegar keyrslan hefst er 3× dæmigerðu verðinu frátekin frá inneign þinni og jöfnuð síðar.
- 1 inneign = 0,01 USD
Kostnaðarreiknir
Verðreiknir
Dæmigert samkvæmt veitanda: um 34,9 s
Samtals
4,08 USD
408 inneign
Fyrir hverja keyrslu
0,0408 USD · 4,08 inneign
Innheimt er fyrir raunverulegan GPU-tíma; þetta er mat.
API
Engin staðfest API-dæmi
Opinbera API sendir annað inntakssnið en þetta módel þarf. Notaðu leiksvæðið hér að ofan.
Forskriftir
- Módel-auðkenni
codellama-34b-instruct- Þróunaraðili
- Meta
- Flokkur
- Kóði
- Inntak
- Texti
- Úttak
- Texti
- Samhengisglugginn
- 16.384 tákn
- Hámark úttak
- 4.096 tákn
- Reikningur
- Eftir notkun (tókar eða GPU-tími)
- Vörulistafærsla uppfærð
- 23. september 2026
Inntaksbreytur
Inntak og stillingar úr inntakskerfi módelsins. Dæmið í API-hlutanum sýnir hverjar þeirra API samþykkir.
promptnauðsynlegtCoding prompt
Tegund: TextiSjálfgefið: –Leyfðir gildir: –max_tokensTegund: HeiltalaSjálfgefið:1024Leyfðir gildir: 1 til 4.096temperatureTegund: TalaSjálfgefið:0.2Leyfðir gildir: 0 til 2system_promptOptional system instruction
Tegund: TextiSjálfgefið: –Leyfðir gildir: –
Merki
- meta
- code-llama
- coding
- instruct
- open-weights
- replicate
Notkunartilvik
Algengar spurningar
Hvað er Code Llama 34B Instruct?
Code Llama 34B Instruct er módel frá Meta í flokknum Kóði.
Hvað kostar Code Llama 34B Instruct á Railwail?
Á Railwail kostar Code Llama 34B Instruct ≈ 0,0408 USD fyrir hverja keyrslu. Þér er rukkað fyrir það sem hver beiðni notar í raun. Notkun er greidd úr fyrirframgreiddum inneign; 1 inneign jafngildir 0,01 USD.
Hversu stór er samhengisgluggi Code Llama 34B Instruct?
Samhengisgluggi Code Llama 34B Instruct geymir 16.384 tákn. Ein svör getur verið allt að 4.096 tákn löng.
Hversu hratt er Code Llama 34B Instruct?
Það eru ekki nóg mældar keyrslur af Code Llama 34B Instruct á Railwail ennþá til að tilgreina keyrslutíma. Það fer eftir inntakinu, stillingum og álagi hjá veitandanum.
Er Code Llama 34B Instruct betra en Code Llama 13B Instruct?
Það fer eftir verkefninu. Code Llama 34B Instruct (Meta) og Code Llama 13B Instruct (Meta) eru bæði módel í flokknum Kóði. Samanburðarsíðan sýnir verð og forskriftir þeirra hlið við hlið.
Bera saman Code Llama 34B Instruct og Code Llama 13B InstructSambærileg módel
Öll í þessum flokkiMeta'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.
≈ 0,0065 USD/keyrsla
84 % ódýrara á einingu
Bera Code Llama 34B Instruct og Code Llama 13B Instruct samanMeta'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.
≈ 0,0504 USD/keyrsla
24 % dýrara á einingu
Bera Code Llama 34B Instruct og Code Llama 70B Instruct samanMeta'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.
≈ 0,0074 USD/keyrsla
82 % ódýrara á einingu
Bera Code Llama 34B Instruct og Code Llama 7B Instruct saman
Öll módel í gegnum eina API
Einn API-lykil fyrir öll módel á Railwail. Notkun er rukkuð frá fyrirframgreiddum inneign, 1 inneign = 0,01 USD.