Model comparison
GLM-OCR vs Llama-3.2-1B-Instruct
At Q4_K_M, GLM-OCR is the smaller download — 548,515,136 bytes against 807,690,688. At long context the gap widens: Llama-3.2-1B-Instruct's KV cache at 32K is 2.0× smaller, which usually matters more than the difference in weights.
From the file· summed bytes, KV per layer
Side by side
| GLM-OCR | Llama-3.2-1B-Instruct | |
|---|---|---|
| Parameters | 1.3B | 1.2B |
| Architecture | glm4 | llama |
| Layers | 16 | 16 |
| Native context | 131,072 | 131,072 |
| Mixture of experts | no | no |
| Quantizations published | 30 | 39 |
| Smallest quantization | 0.34 GiB | 0.39 GiB |
| Q4_K_M | 0.51 GiB | 0.75 GiB |
| Licence | — | — |
KV cache by context
the term that decides long-context viability
| Context | GLM-OCR | Llama-3.2-1B-Instruct | Ratio |
|---|---|---|---|
| 4,096 | 0.25 GiB | 0.13 GiB | 2.00× |
| 8,192 | 0.50 GiB | 0.25 GiB | 2.00× |
| 16,384 | 1.00 GiB | 0.50 GiB | 2.00× |
| 32,768 | 2.00 GiB | 1.00 GiB | 2.00× |
| 65,536 | 4.00 GiB | 2.00 GiB | 2.00× |
| 131,072 | 8.00 GiB | 4.00 GiB | 2.00× |