Model Deployment Guide
llamaindex/OCRia-nano-1 Hardware, Architecture, and Deployment Guide
Llama 3.x remains the default open-weight baseline most teams measure against: broad tooling support, permissive-enough licensing for most products, and predictable instruction-following at 8B and 70B. At roughly 7B parameters this is a mid-sized model that balances quality and cost, running on a single 16–24 GB GPU in FP16 or comfortably in 4-bit on smaller cards. This page covers what OCRia-nano-1 is for, what its architecture implies for memory, how much VRAM to budget across precisions, and when quantization or an alternative model makes more sense.
Overview
Llama 3.x remains the default open-weight baseline most teams measure against: broad tooling support, permissive-enough licensing for most products, and predictable instruction-following at 8B and 70B. At roughly 7B parameters this is a mid-sized model that balances quality and cost, running on a single 16–24 GB GPU in FP16 or comfortably in 4-bit on smaller cards. This page covers what OCRia-nano-1 is for, what its architecture implies for memory, how much VRAM to budget across precisions, and when quantization or an alternative model makes more sense.
Architecture
The detected architecture is Unknown, reporting 32 layers, 32 attention heads, 32 key-value heads, and a context window of 4,096 tokens. It uses standard multi-head attention (32 heads), so the KV cache scales with the full head count — a factor to watch at long context. The config describes a dense transformer rather than a mixture-of-experts, so every parameter is active on every token.
Hardware Requirements
Budget about 15 GB for FP16/BF16, 7.6 GB for 8-bit, and 3.8 GB for 4-bit weights. Its 4,096-token context suits chat, extraction, and short-document tasks; for long documents you would chunk input or use retrieval. These are weight-plus-overhead planning numbers; add the KV cache for your real context length, since it is stored in FP16 even when the weights are quantized.
Deployment Advice
The 8B variants serve comfortably on a single 24 GB consumer card and are the usual starting point for self-hosted chat, RAG, and extraction; 70B needs a 48–80 GB card in 4-bit or two GPUs with tensor parallelism. For a mid-tier model like this, a single consumer GPU is practical only when the chosen precision plus the KV cache fits with safety margin. If the FP16 estimate exceeds your GPU by more than a small margin, plan for quantization, CPU offload, or tensor-parallel serving before committing.
Quantization Guidance
Llama quantizes gracefully. GGUF for llama.cpp and AWQ/GPTQ for vLLM are both well-trodden paths, and 4-bit typically holds instruction-following quality well enough for production chat. GGUF suits llama.cpp and local desktop workflows, AWQ is common for efficient GPU serving, and GPTQ remains useful when prebuilt kernels and model availability match your stack.
Comparison Notes
Compare OCRia-nano-1 against nearby sizes in the Llama family and against adjacent open families before committing: DeepSeek R1 for reasoning-heavy workloads, Qwen for multilingual and coding breadth, Gemma for compact deployment, and Llama for the broadest ecosystem support. The right choice depends on whether your constraint is quality, latency, license, or GPU budget.
| Deployment Question | Practical Answer |
|---|---|
| Best first hardware check | Compare FP16, INT8, and INT4 estimates against available VRAM with room for KV cache. |
| When to use tensor parallelism | Use it when the model plus runtime overhead does not fit one GPU or latency improves with sharding. |
| When to quantize | Quantize after creating a full-precision quality baseline and rerunning representative prompts. |