granite 3b code base 2k
Runs as your own dedicated GPU deployment, ready to launch from the wizard. Data stays in Europe.
$ curl https://hostyourai.com/api/v1/chat/completions \
-H "Authorization: Bearer hyai-..." \
-H "Content-Type: application/json" \
-d '{
"model": "ibm-granite/granite-3b-code-base-2k",
"messages": [{"role": "user", "content": "Hello!"}]
}'
Call it now
Drop-in replacement for OpenAI: change only the base URL and API key. The Anthropic format (/v1/messages) is supported too.
text->text · ibm-granite · sovereign EU
Runs on EU infrastructure operated by European companies, from your request to the GPU. See the full chain
New applications/projects should use the latest mainline Granite language model family, whose code capabilities supercede this model. This model is being made available strictly for historical/scientific purposes. Please see our Granite Collections for the latest Granite releases...
- Router
- Router · on request
- Dedicated
- Dedicated · available
Specifications
| Parameters | 3.5B |
|---|---|
| Context window | 2,048 tokens |
| Minimum VRAM | 16 GB |
| Architecture | LlamaForCausalLM (vLLM) |
| License | apache-2.0 |
| Modality | text->text |
| Released | April 2024 |
| Publisher | ibm-granite ↗ |
Pricing
Shared router · per token
Dedicated GPU · per hour
Shared EU router, you pay only per token. Dedicated GPU deployments are billed per minute, see pricing.
Bench index
Bench is our quality index for every model, 0 to 100. It rests on public measurements (Epoch AI with about 40 benchmarks, LiveBench, LMArena and more) and is refreshed every morning. Where nobody measures, it shows an estimate with a range.
No public benchmark yet: estimated from size and release date.
Base (pretrained) model: weaker in a chat than the estimate.
Range 0.0 to 20.9
Sources: Epoch AI ↗ · LiveBench ↗ · LMArena ↗ · Refreshed daily, last on 18-11-2026
Frequently asked questions
Can I run granite 3b code base 2k in the EU?
Yes. HostYourAI runs granite 3b code base 2k on GPUs in European datacenters via vLLM. Prompts and outputs never leave the EU and there is no US cloud provider in the chain.
Is hosting granite 3b code base 2k GDPR-compliant?
Yes. All processing happens inside the EU, a Data Processing Agreement (DPA) is available and the subprocessor list is public. Open-source weights also mean: no training on your data.
How much does granite 3b code base 2k cost?
granite 3b code base 2k is available on request: through the shared EU router after a quick chat, or as your own dedicated GPU deployment billed per minute. Tell us your use case and we will set it up for you.
Is the API OpenAI-compatible?
Yes. You use the standard OpenAI SDKs with a custom base URL (https://hostyourai.com/api/v1). The Anthropic Messages API is supported as a drop-in as well.
More models from Ibm-granite
One platform, four layers
Start with one layer and add the others when the work asks for it. They share one key, one balance and one Activity view.
Try granite 3b code base 2k for free
Creating an account takes a minute. Test granite 3b code base 2k straight away in the playground.







