LIVE · Thursday 3 December

Best Small Language Models for Air-Gapped and On-Prem Deployment (2026): A Buyer's Guide by Constraint

Granite 4.0 for audits, Qwen3-8B or Gemma 4 for one GPU, Gemma 4 31B or Mistral Small 3.2 for quality per GB, and a fine-tuned small model for narrow tasks, with licence terms and memory sized on total parameters.

By Thomas9 min read

For on-prem or air-gapped deployment in 2026, pick from six permissively licensed small open-weight families by your tightest constraint. Choose IBM Granite 4.0 if an auditor must verify provenance, Qwen3-8B, Gemma 4 E4B or 12B, or gpt-oss-20b for a single 16 to 24 GB GPU, Gemma 4 26B-A4B or 31B, Mistral Small 3.2 or Qwen3-30B-A3B for the most capability on 48 to 80 GB, and a small model fine-tuned inside the gap for a narrow, repeated task. All six (Gemma 4, Qwen3, Granite 4.0, Mistral Small 3.2 and gpt-oss-20b under Apache 2.0, Phi-4 under MIT) can be hosted entirely offline. Independent, like-for-like figures for throughput, users per GPU and task accuracy across them have not been published, so treat this guide as a way to narrow the field to two or three finalists for your own load test.

First, the licence check every option has to pass

Inside an air gap nobody can update terms, revoke access or check a licence server, so the safest licence is one that asks nothing further. As the model cards read on November 17, 2026, all six families meet that bar, with one small addition: gpt-oss-20b carries a two-sentence usage policy whose operative line is "By using OpenAI gpt-oss-20b, you agree to comply with all applicable law."

Gemma needs a version check. Gemma 4, announced April 2, 2026, is under the plain Apache 2.0 text. Gemma 1 through 3n remain under the Gemma Terms of Use, last modified April 1, 2026, which incorporate a Prohibited Use Policy, require restrictions to be passed to downstream recipients, and say "Google reserves the right to restrict (remotely or otherwise) usage." Guides that call Gemma's licence restrictive are describing those older models.

Families outside this list come with more to review. Llama 4's licence requires "Built with Llama" branding, incorporates an Acceptable Use Policy and requires a separate licence above 700 million monthly users. NVIDIA's Open Model License, dated October 24, 2025, terminates automatically if a safety guardrail is bypassed without a substantially similar replacement, and NVIDIA may update it to meet legal requirements.

Second, size memory on total parameters

Every figure below follows one rule: memory is set by total parameters, not active or "effective" ones. A mixture-of-experts model such as Qwen3-30B-A3B runs at the speed of its 3.3 billion active parameters but must hold all 30.5 billion in memory; its bf16 weights are 61.1 GB. Gemma 4 E4B is marketed on 4.5 billion effective parameters but has 8 billion including embeddings. Weights take two bytes per parameter in bf16, one at 8-bit and half a byte at 4-bit, and real use runs higher once the KV cache and runtime are added: Mistral's card says Mistral Small 3.2 needs "~55 GB of GPU RAM in bf16" against 48 GB for its weights.

The options by situation

Situation Start with Licence Weights, bf16 / 4-bit
Auditor must verify provenance Granite 4.0 H-Small or H-Tiny Apache 2.0, signed 64 / 16 GB; 14 / 3.5 GB
One 16 to 24 GB GPU Qwen3-8B or Gemma 4 E4B Apache 2.0 about 16 / 4 GB
One 16 GB GPU, larger MoE model gpt-oss-20b Apache 2.0 plus usage policy ships 4-bit, under 16 GB
Most capability on 48 to 80 GB Gemma 4 31B, Mistral Small 3.2 or Qwen3-30B-A3B Apache 2.0 48 to 61 / 12 to 15 GB
English-only work, mid-size Phi-4 MIT 28 / 7 GB
Edge or smallest footprint Gemma 4 E2B, Granite 4.0 350M or 1B Apache 2.0 E2B 10.2 / 2.6 GB

When governance comes first: Granite 4.0

Granite 4.0 is the only family here whose vendor says it ships signed weights. Every Granite checkpoint on Hugging Face ships with a model.sig file, and IBM's trust page documents the check: model_signing verify sigstore with the identity Granite.Preview@ibm.com and IBM's identity provider, after a full Git LFS checkout. IBM says Granite is the first open language model family accredited under ISO/IEC 42001:2023, which certifies IBM's AI management system rather than any model's outputs, and it runs a HackerOne bug bounty paying up to $100,000. The range runs from 350M and 1B dense models to H-Small, with 32 billion total and 9 billion active parameters and a 128K context. IBM claims its hybrid Mamba-2 and transformer design needs more than 70% less RAM for long inputs and concurrent sessions than conventional transformers, but names no specific models or test conditions, and the figure has not been independently measured. IBM also calls signing experimental, so pin the version of the signing tool you use.

When you have one GPU: Qwen3-8B, Gemma 4 E4B or 12B, gpt-oss-20b

Qwen3-8B (8.2 billion parameters, 32,768 tokens native and 131,072 with YaRN) and Gemma 4 E4B (8 billion in total, 128K context) both need about 16 GB of bf16 weights, which fits a 24 GB card with room for cache, or about 4 GB at 4-bit. Qwen3 starts in a "thinking" mode that writes reasoning before answering; for short extraction or routing calls, the card shows how to switch it off with enable_thinking=False. Google says Gemma 4 12B is "small enough to run locally with just 16GB of VRAM or unified memory," though its post does not give a parameter count. gpt-oss-20b, with 21 billion total and 3.6 billion active parameters, ships with its expert weights already in 4-bit MXFP4 and, per its card, runs "within 16GB of memory"; it only works correctly with OpenAI's harmony prompt format, which the Hugging Face chat template applies.

When quality per GB matters most: Gemma 4 31B or 26B-A4B, Mistral Small 3.2, Qwen3-30B-A3B

These need either one 80 GB card or quantization. Google says bf16 Gemma 4 31B and 26B-A4B fit on a single 80 GB H100, and both have a 256K context. Mistral Small 3.2 (24 billion parameters) needs about 55 GB in bf16, and its card's serving example splits it across two GPUs. Qwen3-30B-A3B's 61 GB of bf16 weights also points to an 80 GB card; at 4-bit its weights fit one 24 GB card, with little room left for cache. Check quantization support before buying: vLLM runs FP8 only on Ada and Hopper GPUs, while INT8, AWQ and GPTQ cover older Turing and Ampere cards.

When the work is English-only: Phi-4

Phi-4, released December 12, 2024 under MIT, has 14 billion parameters and a 16K context. Its card says it is "not intended to support multilingual use," which rules it out for mixed-language corpora but makes it a straightforward mid-size option otherwise.

When the task is narrow and repeated: specialise a small model

For ticket routing, field extraction, document classification or question answering over a fixed corpus, the usual route is to fine-tune a small model on your own examples, and nothing about it needs a connection. Hugging Face's TRL trainer loads weights from a local directory, trains on conversational messages records, and adds a LoRA adapter through one peft_config argument; assistant_only_loss=True trains only on the answers, and tool-calling examples go in a tools column. vLLM serves the adapter beside the base model with --enable-lora --lora-modules, with --max-lora-rank set to the adapter's rank. How much a fine-tuned 1B to 8B model gains, and whether it matches a general 24B to 32B model on the same task, has not been measured independently for this shortlist; measure it on a few hundred held-out examples of your own before and after training.

Parsec, a small language model lab, sells this specialisation as a hosted service, in which its models "run alongside other teams' on an optimized cluster." Its pages do not mention on-prem or VPC deployment or a price for the service, though its inference page says "Weights: Yours. Download them" without naming a licence or file format. That makes it a fit only where data may leave the site for training. Its MIT-licensed open-jev code, which scores options with a local Gemma 3 4B and includes an SDK for fine-tuning small decision models, runs locally, though Gemma 3 is under the Gemma Terms rather than Apache 2.0.

Worked example: how far one 24 GB GPU goes

Take a pilot on a single 24 GB card running Qwen3-8B. The question is how many conversations fit before memory runs out. Hardware prices vary by supplier and are left out; the example counts what one card holds.

  • Usable memory: set vLLM's gpu_memory_utilization to 0.92, its fixed default when the extensible KV cache is off (on NVIDIA and AMD GPUs current vLLM instead sizes the cache from measured memory unless you set a value), so 24 × 0.92 = 22.08 GB.
  • KV cache per token: Qwen3-8B's config has 36 layers, 8 key-value heads and a head dimension of 128. In bf16 each token costs 2 × 36 × 8 × 128 × 2 bytes = 147,456 bytes.
  • Context per conversation: assume 4,096 tokens, about 604 MB of cache each.

With bf16 weights (16.4 GB), 5.68 GB is left: about 38,500 tokens, or 9 conversations at full length. With 8-bit weights (8.2 GB), 13.88 GB is left: about 94,000 tokens, or 23 conversations. With 4-bit weights (4.1 GB), 17.98 GB is left: about 122,000 tokens, or 29 conversations. An fp8 KV cache halves the per-token cost and roughly doubles each count.

The same arithmetic shows why mixture-of-experts models change the hardware order. Qwen3-30B-A3B at 4-bit needs about 15.3 GB for weights alone, so on the same card it leaves under 7 GB for everything else, while in bf16 it needs a second card or an 80 GB one.

These are memory ceilings. They leave out activation memory and say nothing about latency, and the number of users a card serves at a given time to first token has not been measured for any of these models on a common offline stack. Find it with vLLM's load tester: vllm bench serve --dataset-name random --random-input-len 1024 --random-output-len 256 --request-rate inf --max-concurrency 8, raising --max-concurrency until P99 time to first token or time per output token passes your target. Record the GPU, quantization and vLLM version with every run.

The air-gap checklist that applies to every option

  1. On a connected staging machine, run hf download <repo> --revision <commit> --local-dir <dir> and record a checksum for every file.
  2. Verify vendor signatures where they exist (Granite), on the connected side, since Sigstore checks use a public transparency log.
  3. Sign the verified directory with your own key (model_signing sign key) and verify it inside with the public key (model_signing verify key).
  4. Export the vLLM container with podman save -o vllm.tar <image>; the default format loads with docker load.
  5. Inside, set HF_HUB_OFFLINE=1 to stop all Hub calls, and HF_HUB_DISABLE_TELEMETRY=1 and VLLM_NO_USAGE_STATS=1 (or DO_NOT_TRACK=1), since vLLM collects anonymous usage data by default.
  6. Bring every update through the same staging path, re-running your evaluation before it crosses.

Bottom line

If provenance has to be proven, choose Granite 4.0. If you have one 16 to 24 GB card, test Qwen3-8B, Gemma 4 E4B or 12B, and gpt-oss-20b. If you have 48 to 80 GB and want the most capable model, compare Gemma 4 31B or 26B-A4B, Mistral Small 3.2 and Qwen3-30B-A3B. Use Phi-4 for English-only work at mid size, and Gemma 4 E2B or Granite 4.0 350M or 1B for edge hardware. If the job is one narrow task done thousands of times, fine-tune the smallest model that passes your evaluation, inside the gap. Confirm the licence on the model card for the exact version you deploy, and let a load test on your own hardware pick the finalist.

Sources

More in Models

All Models →