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.
- Hinta
- ≈ 0,0408 $/suoritus
- Konteksti
- 16 384 tokenia
- Enint. tuloste
- 4 096 tokenia
- Syöte → tulos
- Teksti → Teksti
- Kehittäjä
- Meta
- Päivitetty
- 23. syyskuuta 2026
Leikkikenttä
Kokeile Code Llama 34B Instruct
Syöte ja tulos
Tämä suoritus
noin 0,0408 $ · 4,08 creditiä
Alussa varataan 0,1224 $ (12,24 creditiä); todellinen GPU-aika laskutetaan.
Tileille ilman ostoja: yli 2 creditin suoritukset vaativat latauksen.
Uusi täällä?
10 ilmaista creditiä (0,10 $) kun rekisteröidyt Googlella
Käytettävissä 24 tuntia rekisteröinnin jälkeen, enintään 5 suoritusta päivässä ja enintään 2 creditiä suoritusta kohti. Muut kirjautumismenetelmät alkavat ilman creditejä.
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.
Tietoja: Code Llama 34B Instruct
Code Llama 34B Instruct on Meta-kehittäjän malli kategoriasta Koodi. Railwailissa Code Llama 34B Instruct maksaa ≈ 0,0408 $ per suoritus. Kontekstiikkuna sisältää 16 384 tokenia, ja vastaus voi olla enintään 4 096 tokenia pitkä.
Hinnat
| Tyypillinen suoritus (≈ 35 s L40S:lla) | 0,0408 $ per suoritus |
|---|---|
| GPU-aika (L40S) | 0,00117 $ per GPU-sekunti |
- Laskutus perustuu suorituksen todelliseen GPU-aikaan. Kun suoritus alkaa, 3-kertainen tyypillinen hinta varataan saldostasi ja selvitetään jälkikäteen.
- 1 krediitti = 0,01 $
Kustannuslaskin
Hintalaskin
Palveluntarjoajan mukaan tyypillinen: noin 34,9 s
Yhteensä
4,08 $
408 krediittiä
Suoritusta kohti
0,0408 $ · 4,08 krediittiä
Laskutus perustuu todelliseen GPU-aikaan; tämä on arvio.
API
Ei vahvistettua API-esimerkkiä
Julkinen API välittää eri syötemuotoa kuin tämä malli tarvitsee. Käytä yllä olevaa leikkikenttää.
Tekniset tiedot
- Mallin tunnus
codellama-34b-instruct- Kehittäjä
- Meta
- Kategoria
- Koodi
- Syöte
- Teksti
- Tuloste
- Teksti
- Konteksti-ikkuna
- 16 384 tokenia
- Enimmäistuloste
- 4 096 tokenia
- Laskutus
- Käytön mukaan (tokeneja tai GPU-aikaa)
- Luettelokirjaus päivitetty
- 23. syyskuuta 2026
Syöteparametrit
Mallin syötökaavion syötteet ja asetukset. API-osion esimerkki näyttää, mitkä niistä API hyväksyy.
promptpakollinenCoding prompt
Tyyppi: TekstiOletus: –Sallitut arvot: –max_tokensTyyppi: KokonaislukuOletus:1024Sallitut arvot: 1–4 096temperatureTyyppi: LukuOletus:0.2Sallitut arvot: 0–2system_promptOptional system instruction
Tyyppi: TekstiOletus: –Sallitut arvot: –
Tunnisteet
- meta
- code-llama
- coding
- instruct
- open-weights
- replicate
Käyttötapaukset
Usein kysytyt kysymykset
Mikä on Code Llama 34B Instruct?
Code Llama 34B Instruct on Metan kehittämä malli Koodi-kategoriassa.
Paljonko Code Llama 34B Instruct maksaa Railwailissa?
Railwailissa Code Llama 34B Instruct maksaa ≈ 0,0408 $ per suoritus. Sinua veloitetaan siitä, mitä kukin pyyntö todella käyttää. Käyttö maksetaan ennakkoon ostettujen krediittien avulla; 1 krediitti vastaa 0,01 $.
Mikä on Code Llama 34B Instructn kontekstiikkuna?
Code Llama 34B Instructn kontekstiikkuna sisältää 16 384 tokenia. Vastaus voi olla enintään 4 096 tokenia pitkä.
Kuinka nopea Code Llama 34B Instruct on?
Code Llama 34B Instructlla ei ole vielä tarpeeksi mitattuja suorituksia Railwailissa suoritusajan ilmoittamiseksi. Se riippuu syötteestä, asetuksista ja palveluntarjoajan kuormituksesta.
Onko Code Llama 34B Instruct parempi kuin Code Llama 13B Instruct?
Se riippuu tehtävästä. Code Llama 34B Instruct (Meta) ja Code Llama 13B Instruct (Meta) ovat molemmat malleja Koodi-kategoriassa. Vertailussa näkyvät niiden hinnat ja tekniset tiedot rinnakkain.
Vertaa Code Llama 34B Instruct ja Code Llama 13B InstructVertailukelpoiset mallit
Kaikki tässä kategoriassaMeta'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 $/suoritus
84 % halvempi yksikköä kohti
Vertaa Code Llama 34B Instruct ja Code Llama 13B InstructMeta'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 $/suoritus
24 % kalliimpi yksikköä kohti
Vertaa Code Llama 34B Instruct ja Code Llama 70B 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.
≈ 0,0074 $/suoritus
82 % halvempi yksikköä kohti
Vertaa Code Llama 34B Instruct ja Code Llama 7B Instruct
Kaikki mallit yhden API:n kautta
Yksi API-avain kaikille Railwailin malleille. Käyttö laskutetaan prepaid-krediiteistä, 1 krediitti = 0,01 $.