Microsoft / Phi-3

Phi-3 Mini 128K

A compact long-context model suited to laptops, small GPUs, and low-cost endpoints.

3.8B parameters
ArchitectureDense transformer
Native context128K tokens
LicenseMIT
Q4 · 8K estimate7.1 GiB
Verified public config

Architecture values were refreshed from the official model config.

Evidence · Nov 26, 2026 ↗
Memory envelope

What changes the fit.

Weights establish the floor. Context, concurrent sequences, cache precision, and runtime overhead determine whether the deployment remains stable.

Efficient

4-bit · 8K

7.1 GiB

Useful starting point for local evaluation and cost-sensitive inference.

Quality-first

BF16 · 8K

12.3 GiB

Preserves original weight precision and establishes a conservative serving baseline.

Interactive plan

Tune Phi-3.

The worksheet starts with this model selected. Adjust context, precision, cache, and GPU count for your workload.

Deployment worksheetMODEL / GPU FIT
Calculated estimate · v1.0.0
01
MicrosoftDense transformerDetails ↗
02
Weight format
Lower precision reduces weight memory but requires a compatible checkpoint and runtime.
Context
Maximum active tokens per sequence; longer context increases KV cache.
Concurrent sequences
Requests kept active at once; cache memory scales with this value.
GPU count
Tensor-parallel devices sharing model weights and supported cache shards.
03

FP8 halves cache memory where supported.

Recommended VRAM
8.3 GiBper GPU × 1

Includes 15% operating headroom for the selected runtime profile.

Estimated allocation per GPU7.1 GiB each
Weights 2.1 GiBKV cache 3.0 GiBRuntime 2.0 GiB

Formula v1.0.0 · official model configurations checked Nov 26, 2026. GPU-hour figures use the Flatkey price index where available, updated Nov 26, 2026, 3:00 PM; unsupported profiles remain labeled references.

How to read this result
1. Recommended VRAM

The estimated workload divided by the 85% planning ceiling, leaving 15% runtime headroom.

2. Memory allocation

Weights, KV cache and runtime workspace explain what consumes memory before headroom.

3. Example cloud fits

Capacity and price-index shortlists—not performance benchmarks or availability guarantees.

Command template · vLLMvllm serve YOUR_COMPATIBLE_QUANTIZED_MODEL_ID --tensor-parallel-size 1 --max-model-len 8192 --quantization YOUR_MATCHING_BACKEND

4-bit is a memory assumption, not a checkpoint choice. Replace both placeholders with a compatible quantized artifact and its vLLM backend.