Granite Code 34B Instruct on NVIDIA L4
Can the NVIDIA L4 run Granite Code 34B Instruct?
Yes, it runs well
Runs well. At Q3_K_M it needs about 18.7 GB of 24.0 GB usable, with an estimated speed of 14.1 tok/s.
- Best quant
Q3_K_M- Generation speed
- 14.1 tok/s
- Prompt processing
- 647 tok/s
- First token (1K prompt)
- 1.6 s
- Largest safe context
- 8K
Best app to run it on the NVIDIA L4
On Linux
- One command with Ollama’s own build of this model.
- Serves an OpenAI-compatible API that other apps and coding tools can use.
ollama run granite-code:34b-instruct-q3_K_MOn Windows
- One command with Ollama’s own build of this model.
- Serves an OpenAI-compatible API that other apps and coding tools can use.
ollama run granite-code:34b-instruct-q3_K_MDownload Granite Code 34B Instruct
Recommended for the NVIDIA L4: Q3_K_M. Every other quantization has its own download link in the table below.
Quickest · Ollama
One command downloads a ready-to-run version and starts a chat.
ollama run granite-code:34b-instruct-q3_K_MQuantized files · GGUF
Works in LM Studio, llama.cpp, Jan and Ollama. No sign-in needed.
huggingface.co/ibm-granite/granite-34b-code-instruct-8k-GGUF (opens in a new tab)
ollama run hf.co/ibm-granite/granite-34b-code-instruct-8k-GGUFOriginal weights · Hugging Face
Full-precision files from IBM, for fine-tuning, vLLM, Transformers.
huggingface.co/ibm-granite/granite-34b-code-instruct-8k (opens in a new tab)
How it’s rated
Match score
To order lists, each result also gets a match score out of 100 from four parts. It favors the most capable model that still runs well.
| Model quality | 15.1 / 45 | |
|---|---|---|
| Memory fit | 25.0 / 25 | |
| Speed | 8.9 / 15 | |
| Memory use | 15.0 / 15 | |
| Match score | 64.0 / 100 |
Every quantization on the NVIDIA L4
| Quant | Memory needed | Available | Speed | Runs | Quality | Download |
|---|---|---|---|---|---|---|
Q2_K | 15.7 GB | 24.0 GB | 17.9 tok/s | Runs well | 28Basic quality (D) · 28 of 100: how capable the model is at Q2_K, whatever it runs on. Match score 62/100 (quality, fit, speed and memory use) sets the ranking. | |
Q3_K_M | 18.7 GB | 24.0 GB | 14.1 tok/s | Runs well | 33Basic quality (D) · 33 of 100: how capable the model is at Q3_K_M, whatever it runs on. Match score 64/100 (quality, fit, speed and memory use) sets the ranking. | |
Q4_K_M | 22.7 GB | 24.0 GB | 10.9 tok/s | Runs welltight fit | 38Basic quality (D) · 38 of 100: how capable the model is at Q4_K_M, whatever it runs on. Match score 63/100 (quality, fit, speed and memory use) sets the ranking. | GGUF (opens in a new tab) |
Q5_K_M | 26.1 GB | 24.0 GB | 6.9 tok/s | Slowoffloads to RAM | 38Basic quality (D) · 38 of 100: how capable the model is at Q5_K_M, whatever it runs on. Match score 48/100 (quality, fit, speed and memory use) sets the ranking. | |
Q6_K | 29.8 GB | 24.0 GB | 4.4 tok/s | Slowoffloads to RAM | 39Basic quality (D) · 39 of 100: how capable the model is at Q6_K, whatever it runs on. Match score 47/100 (quality, fit, speed and memory use) sets the ranking. | |
Q8_0 | 37.9 GB | 24.0 GB | 2.4 tok/s | Very slowheavy RAM offload | 40Fair quality (C) · 40 of 100: how capable the model is at Q8_0, whatever it runs on. Match score 40/100 (quality, fit, speed and memory use) sets the ranking. | |
F16 | 69.6 GB | 24.0 GB | — | Won't run | 40Fair quality (C) · 40 of 100: how capable the model is at F16, whatever it runs on. Match score 5/100 (quality, fit, speed and memory use) sets the ranking. | Original weights (opens in a new tab) |
Memory figures assume 8K of context. Longer conversations or documents grow the KV cache.
Other hardware that runs it
-
38Basic quality (D) · 38 of 100: how capable the model is at Q5_K_M, whatever it runs on. Match score 72/100 (quality, fit, speed and memory use) sets the ranking.
NVIDIA GeForce RTX 5090
-
38Basic quality (D) · 38 of 100: how capable the model is at Q4_K_M, whatever it runs on. Match score 70/100 (quality, fit, speed and memory use) sets the ranking.
NVIDIA GeForce RTX 4090
-
33Basic quality (D) · 33 of 100: how capable the model is at Q3_K_M, whatever it runs on. Match score 70/100 (quality, fit, speed and memory use) sets the ranking.
NVIDIA GeForce RTX 3090
-
33Basic quality (D) · 33 of 100: how capable the model is at Q3_K_M, whatever it runs on. Match score 69/100 (quality, fit, speed and memory use) sets the ranking.
AMD Radeon RX 7900 XTX
-
28Basic quality (D) · 28 of 100: how capable the model is at Q2_K, whatever it runs on. Match score 66/100 (quality, fit, speed and memory use) sets the ranking.
NVIDIA GeForce RTX 4070 Ti SUPER
-
28Basic quality (D) · 28 of 100: how capable the model is at Q2_K, whatever it runs on. Match score 66/100 (quality, fit, speed and memory use) sets the ranking.
NVIDIA GeForce RTX 4080 SUPER
Quick answers
How much memory does Granite Code 34B Instruct need on the NVIDIA L4 24GB?
At Q3_K_M it needs about 18.7 GB. The NVIDIA L4 24GB has 24.0 GB usable.
How fast is Granite Code 34B Instruct on the NVIDIA L4 24GB?
About 14.1 tok/s at Q3_K_M, an estimate from the hardware’s memory bandwidth and the size of the model.
Which quantization of Granite Code 34B Instruct should I use on the NVIDIA L4 24GB?
Q3_K_M. Of the versions that fit, it is the one that runs best; when two run equally well, the check prefers the higher-rated one.
Estimates come from published hardware specs and our open formulas, not from running the model on your machine. Real speed varies with runtime, drivers and settings. Numbers marked “Measured” come from a linked benchmark.