Microsoft
ChatCodingReasoning3.82B
Chat

Phi-3 Mini 3.8B Instruct

Phi · MIT

Punches above its weight: a 3.8B model that rivals many 7B models on reasoning benchmarks. MIT license. Well suited for resource-constrained setups or as a fast secondary model.

Parameters
3.82B
Architecture
Dense
Context
128,000 tokens
Released
2024-04-23
Engines
llama.cpp, ollama, ONNX Runtime
Builder Tools
Continue, LM Studio

Parameters

3.82B

VRAM

3 GB

Context

125K

Formats

3

GPUs

20

Phi-3 Mini 3.8B Instruct (3.82B) requires 3 GB VRAM at recommended quality (Q5_K_M). At efficient quality (Q4_K_M), it fits in 2.6 GB VRAM, making it compatible with the NVIDIA RTX 4060 Laptop (40-60W). On NVIDIA Grace Blackwell Ultra GB300, expect approximately 550 tok/s at Q8_0. For the best experience, Starter AI Desktop ($582) is recommended.

Source: OwnRig methodology

VRAM (Recommended)

3 GB

Quantization

Q5_K_M

File Size

2.3 GB

Max Context

125K tokens

Primary Use

Chat

Memory

VRAM Requirements

QualityQuantizationVRAMFile Size
fullQ8_04.5 GB3.8 GB
recommendedQ5_K_M3 GB2.3 GB
efficientQ4_K_M2.6 GB1.9 GB
Scaling

Context Length Impact

KV cache VRAM at Q5_K_M quality. Longer context = more memory.

ContextKV CacheTotal VRAM
2K102 MB3.1 GB
4K102 MB3.1 GB
8K307 MB3.3 GB
16K512 MB3.5 GB
32K1 GB4 GB
64K2 GB5 GB

Compatible GPUs

20 devices
NVIDIA Grace Blackwell Ultra GB300Q8_0550 tok/sExcellent
NVIDIA GeForce RTX 3060 12GBQ8_060 tok/sExcellent
NVIDIA GeForce RTX 3080 10GBQ8_0130 tok/sExcellent
NVIDIA GeForce RTX 4060 8GBQ5_K_M52 tok/sExcellent
NVIDIA GeForce RTX 4070 SuperQ8_095 tok/sExcellent
NVIDIA GeForce RTX 4070 Ti 12GBQ8_078 tok/sExcellent
NVIDIA RTX 4080 Laptop (120-150W)Q8_055 tok/sExcellent
NVIDIA GeForce RTX 4090Q8_0130 tok/sExcellent
AMD Radeon Pro W7900Q8_0140 tok/sExcellent
NVIDIA RTX PRO 6000 BlackwellQ8_0257 tok/sExcellent
NVIDIA RTX PRO 6000 Blackwell Max-QQ8_0236 tok/sExcellent
NVIDIA GeForce RTX 5060 8GBQ5_K_M60 tok/sExcellent
Apple M3 Pro (18GB Unified)Q8_032 tok/sGood
NVIDIA RTX 4060 Laptop (40-60W)Q5_K_M31 tok/sGood
NVIDIA RTX 4070 Laptop (80-115W)Q5_K_M36 tok/sGood
AMD Radeon RX 7600Q5_K_M41 tok/sGood
AMD Radeon RX 7900 XTXQ8_0112 tok/sGood
AMD Radeon RX 9070Q8_0Acceptable
AMD Radeon RX 9060 XT 16GBQ8_0Acceptable
AMD Radeon RX 9060 XT 8GBQ8_0Acceptable

Showing 20 of 20 entries

Builder Context

Phi-3 Mini 3.8B Instruct is commonly used with Continue, LM Studio. For an AI coding workflow, pair it with an embedding model like nomic-embed-text for local RAG.

Hardware

Recommended Builds

Complete PC builds that can run Phi-3 Mini 3.8B Instruct.

FAQ

Frequently Asked Questions

How much VRAM does Phi-3 Mini 3.8B Instruct need?
Phi-3 Mini 3.8B Instruct requires 3 GB VRAM at recommended quality (Q5_K_M). At lower quality settings, it can fit in as little as 2.6 GB.
What is the best GPU for Phi-3 Mini 3.8B Instruct?
The NVIDIA Grace Blackwell Ultra GB300 delivers the best performance for Phi-3 Mini 3.8B Instruct, achieving 550 tok/s at Q8_0 with an excellent rating.
What quantization should I use for Phi-3 Mini 3.8B Instruct?
For the best quality, use Q5_K_M (3 GB VRAM). If your GPU has limited VRAM, Q4_K_M (2.6 GB) is the most efficient option with acceptable quality.
Is Phi-3 Mini 3.8B Instruct good for coding?
Yes. Phi-3 Mini 3.8B Instruct is used with Continue, LM Studio for local AI coding. For the best coding experience, pair it with an embedding model for local RAG.
All models

Data confidence: verified. Source

VRAM requirements are calculated from model parameters and may vary by inference engine, context length, and batch size. Performance estimates are based on community benchmarks and should be verified for your specific configuration.Phi is a trademark of its respective owner. OwnRig is not affiliated with or endorsed by the model creator.