Granite Code 20B
granite-code-20bIBM Granite 20B Code Instruct. Larger Granite code model balancing quality and inference cost for enterprise CI/CD code-review automation.
- Hinta · 1M sisään/ulos
- 0,12 $ / 0,60 $
- Konteksti
- 8 192 tokenia
- Enint. tuloste
- 8 192 tokenia
- Syöte → tulos
- Teksti → Teksti
- Kehittäjä
- IBM
- Päivitetty
- 24. syyskuuta 2026
Leikkikenttä
Kokeile Granite Code 20B
Syöte ja tulos
Tämä suoritus
enintään 0,0025 $ · 0,25 creditiä varattu
Laskutus todella käytettyjen tokenien mukaan; varauksen käyttämätön osa palautetaan.
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ä. Riittää 40 suoritukseen tästä mallista.
Examples
Prompt
Could you please explain what APR means?
Response
APR stands for Annual Percentage Rate. It is a figure that represents the annual cost of borrowing, including fees and interest. It is used to help consumers compare the costs of different loans and credit products. The higher the APR, the more expensive the loan is.
Settings
system_prompt: You are an expert in finance that knows many concepts related to loans and credit.
Prompt
Now, please explain APR meaning with a simple example, so that even a 5 years old kid can understand you.
Response
Sure, I'd be happy to explain it to a 5-year-old! Let's say you want to buy a toy that costs $10. You ask your parents if you can borrow the money, and they agree. You sign a loan agreement promising to pay them back the $10 plus some extra money, called interest. The interest is calculated as a percentage of the loan amount, and it's called the Annual Percentage Rate, or APR for short. For example, let's say the APR is 5%. This means that you have to pay an extra $0.50 for each dollar you borrow. So, if you borrow $10, you have to pay $10 + ($10 * 0.05) = $10.50 back. The APR is important because it helps you understand how much extra money you'll have to pay back. The higher the APR, the more interest you'll have to pay. So, you want to make sure the APR is as low as possible when you take a loan.
Settings
system_prompt: You are an expert in finance that knows many concepts related to loans and credit.
Tietoja: Granite Code 20B
Granite Code 20B on IBM-kehittäjän malli kategoriasta Koodi. Railwailissa Granite Code 20B maksaa 0,12 $ per 1M syötetokenia ja 0,60 $ per 1M tulostetokenia. Kontekstiikkuna sisältää 8 192 tokenia, ja vastaus voi olla enintään 8 192 tokenia pitkä.
Hinnat
| Syöte | 0,12 $ / 1M tokenia |
|---|---|
| Tuloste | 0,60 $ / 1M tokenia |
- Laskutus perustuu kunkin pyynnön todella käyttämiin tokeneihin.
- 1 krediitti = 0,01 $
Kustannuslaskin
Hintalaskin
Yhteensä
0,05 $
5 krediittiä
Pyynnöllä
0,0005 $ · 0,05 krediittiä
Jokainen pyyntö pyöristetään ylöspäin 0,01 krediittiin.
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
granite-code-20b- Kehittäjä
- IBM
- Kategoria
- Koodi
- Syöte
- Teksti
- Tuloste
- Teksti
- Konteksti-ikkuna
- 8 192 tokenia
- Enimmäistuloste
- 8 192 tokenia
- Laskutus
- Käytön mukaan (tokeneja tai GPU-aikaa)
- Luettelokirjaus päivitetty
- 24. syyskuuta 2026
Tunnisteet
- replicate
- code-generation
- ibm
- granite
- open-weights
- apache-2
Käyttötapaukset
Usein kysytyt kysymykset
Mikä on Granite Code 20B?
Granite Code 20B on IBMn kehittämä malli Koodi-kategoriassa.
Paljonko Granite Code 20B maksaa Railwailissa?
Railwailissa Granite Code 20B maksaa 0,12 $ per 1M syötetokenia ja 0,60 $ per 1M tulostetokenia. Sinua veloitetaan siitä, mitä kukin pyyntö todella käyttää. Käyttö maksetaan ennakkoon ostettujen krediittien avulla; 1 krediitti vastaa 0,01 $.
Mikä on Granite Code 20Bn kontekstiikkuna?
Granite Code 20Bn kontekstiikkuna sisältää 8 192 tokenia. Vastaus voi olla enintään 8 192 tokenia pitkä.
Kuinka nopea Granite Code 20B on?
Granite Code 20Blla ei ole vielä tarpeeksi mitattuja suorituksia Railwailissa suoritusajan ilmoittamiseksi. Se riippuu syötteestä, asetuksista ja palveluntarjoajan kuormituksesta.
Onko Granite Code 20B parempi kuin Code Llama 13B Instruct?
Se riippuu tehtävästä. Granite Code 20B (IBM) ja Code Llama 13B Instruct (Meta) ovat molemmat malleja Koodi-kategoriassa. Vertailussa näkyvät niiden hinnat ja tekniset tiedot rinnakkain.
Vertaa Granite Code 20B ja Code Llama 13B InstructVertailukelpoiset mallit
Kaikki tässä kategoriassaIBM Granite 8B Code Instruct. Trained on permissively-licensed code, strong on multi-language code completion and instruction-following.
Meta'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
Vertaa Granite Code 20B ja Code Llama 13B 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.
≈ 0,0408 $/suoritus
Vertaa Granite Code 20B ja Code Llama 34B Instruct
Kaikki mallit yhden API:n kautta
Yksi API-avain kaikille Railwailin malleille. Käyttö laskutetaan prepaid-krediiteistä, 1 krediitti = 0,01 $.