moelanoby·Phi 3·Phi3ForCausalLM

Phi 3 M3 Coder — Hardware Requirements & GPU Compatibility

ChatCode

Phi 3 M3 Coder is a 3.8B-parameter open language model from moelanoby in the Phi 3 family. It supports a context window of up to 4,096 tokens. At Q4_K_M it needs about 3.40 GB of VRAM — see which GPUs and Macs can run it below.

15 downloads 48 likes4K context

Specifications

Publisher
moelanoby
Family
Phi 3
Parameters
3.8B
Architecture
Phi3ForCausalLM
Context Length
4,096 tokens
Vocabulary Size
32,064
Release Date
2025-06-29

Get Started

How Much VRAM Does Phi 3 M3 Coder Need?

Select a quantization to see compatible GPUs below.

QuantizationBitsVRAM
Q2_Kest.3.402.7 GB
Q3_K_Mest.3.903.0 GB
Q4_K_Mest.4.803.4 GB
Q5_K_Mest.5.703.8 GB
Q6_Kest.6.604.3 GB
Q8_0est.8.004.9 GB
BF16est.16.008.8 GB

est.= calculated VRAM estimate; no published GGUF file found for that quantization yet. Other rows are verified against real community uploads.

Which GPUs Can Run Phi 3 M3 Coder?

Q4_K_M · 3.4 GB

Phi 3 M3 Coder (Q4_K_M) requires 3.4 GB of VRAM to load the model weights. For comfortable inference with headroom for KV cache and system overhead, 5+ GB is recommended. Using the full 4K context window can add up to 0.8 GB, bringing total usage to 4.2 GB. 50 GPUs can run it, including NVIDIA GeForce RTX 5090, NVIDIA GeForce RTX 3090 Ti.

Runs great

Plenty of headroom
NVIDIA GeForce RTX 5090~343 tok/sNVIDIA GeForce RTX 3090 Ti~193 tok/sNVIDIA GeForce RTX 4090~193 tok/sNVIDIA GeForce RTX 5080~184 tok/sNVIDIA GeForce RTX 3090~179 tok/sNVIDIA GeForce RTX 3080 Ti~174 tok/sNVIDIA GeForce RTX 5070 Ti~171 tok/sNVIDIA GeForce RTX 5090 Laptop GPU~171 tok/sAMD Radeon RX 7900 XTX~155 tok/sNVIDIA GeForce RTX 3080~145 tok/sNVIDIA GeForce RTX 4080 SUPER~141 tok/sNVIDIA GeForce RTX 4080~137 tok/sAMD Radeon RX 7900 XT~129 tok/sNVIDIA GeForce RTX 4070 Ti SUPER~129 tok/sNVIDIA GeForce RTX 5070~129 tok/sNVIDIA TITAN RTX~129 tok/sNVIDIA GeForce RTX 2080 Ti~118 tok/sNVIDIA GeForce RTX 3070 Ti~116 tok/sNVIDIA GeForce RTX 4090 Laptop GPU~110 tok/sAMD Radeon RX 9070~104 tok/sAMD Radeon RX 9070 XT~104 tok/sAMD Radeon RX 7800 XT~101 tok/sNVIDIA GeForce RTX 4070~96 tok/sNVIDIA GeForce RTX 4070 SUPER~96 tok/sNVIDIA GeForce RTX 4070 Ti~96 tok/sAMD Radeon RX 7900 GRE~93 tok/sNVIDIA GeForce GTX 1080 Ti~93 tok/sNVIDIA GeForce RTX 3060 Ti~86 tok/sNVIDIA GeForce RTX 3070~86 tok/sNVIDIA GeForce RTX 5060~86 tok/sNVIDIA GeForce RTX 5060 Ti 16GB~86 tok/sNVIDIA GeForce RTX 5060 Ti 8GB~86 tok/sAMD Radeon RX 6800~83 tok/sAMD Radeon RX 6800 XT~83 tok/sAMD Radeon RX 6900 XT~83 tok/sIntel Arc A770 16GB~82 tok/sIntel Arc A750~75 tok/sAMD Radeon RX 7700 XT~70 tok/sNVIDIA GeForce RTX 3060 12GB~69 tok/sIntel Arc B580~67 tok/sAMD Radeon RX 6700 XT~62 tok/sIntel Arc B570~56 tok/sNVIDIA GeForce RTX 4060 Ti 16GB~55 tok/sNVIDIA GeForce RTX 4060 Ti 8GB~55 tok/sNVIDIA GeForce RTX 4060~52 tok/sAMD Radeon RX 9060 XT 16GB~52 tok/sAMD Radeon RX 7600~47 tok/sAMD Radeon RX 7600 XT~47 tok/sNVIDIA GeForce RTX 3060 8GB~46 tok/sNVIDIA GeForce RTX 3050 8GB~43 tok/s

Which Devices Can Run Phi 3 M3 Coder?

Q4_K_M · 3.4 GB

59 devices with unified memory can run Phi 3 M3 Coder, including NVIDIA DGX H100, NVIDIA DGX A100 640GB, iPhone 17.

Runs great

Plenty of headroom
NVIDIA DGX H100~5124 tok/sNVIDIA DGX A100 640GB~3119 tok/sMac Studio (M3 Ultra, 256GB)~169 tok/sMac Studio (M3 Ultra, 512GB)~169 tok/sMac Studio (M3 Ultra, 96GB)~169 tok/sMac Pro M2 Ultra (192 GB)~165 tok/sMac Studio M2 Ultra (192 GB)~165 tok/sMacBook Pro 16" M5 Max (128 GB)~126 tok/sMac Studio M4 Max (128 GB)~112 tok/sMac Studio M4 Max (64 GB)~112 tok/sMacBook Pro 16" M4 Max (48 GB)~112 tok/sMacBook Pro 16" M4 Max (64 GB)~112 tok/sMac Studio M4 Max (36 GB)~84 tok/sMacBook Pro 14" M4 Max (36 GB)~84 tok/sMacBook Pro 16" M3 Max (48 GB)~84 tok/sMacBook Pro 14-inch (M5 Pro)~63 tok/sMac Mini M4 Pro (24 GB)~56 tok/sMac Mini M4 Pro (48 GB)~56 tok/sMacBook Pro 14" M4 Pro (24 GB)~56 tok/sMacBook Pro 16" M4 Pro (24 GB)~56 tok/sASUS Ascent GX10~52 tok/sNVIDIA DGX Spark~52 tok/sNVIDIA Jetson AGX Thor Developer Kit~52 tok/sAsus ROG Flow Z13 (2025, Ryzen AI Max+ 395, 128 GB)~49 tok/sBeelink GTR9 Pro (Ryzen AI Max+ 395, 128 GB)~49 tok/sFramework Desktop (Ryzen AI Max+ 395, 128 GB)~49 tok/sGMKtec EVO-X2 (Ryzen AI Max+ 395, 128 GB)~49 tok/sHP Z2 Mini G1a (Ryzen AI Max+ PRO 395, 128 GB)~49 tok/sHP ZBook Ultra G1a 14 (Ryzen AI Max+ PRO 395, 128 GB)~49 tok/sMinisforum MS-S1 MAX (Ryzen AI Max+ 395, 128 GB)~49 tok/sSnapdragon X2 Elite Extreme Copilot+ PC~44 tok/sNVIDIA Jetson AGX Orin 32GB~39 tok/sNVIDIA Jetson AGX Orin 64GB~39 tok/sMacBook Pro 14-inch (M5)~32 tok/siPad Pro M5 13" (16 GB)~32 tok/sSnapdragon X Elite Copilot+ PC~26 tok/sMac Mini M4 (16 GB)~25 tok/sMac Mini M4 (32 GB)~25 tok/sMacBook Air 13" M4 (16 GB)~25 tok/sMacBook Air 13" M4 (24 GB)~25 tok/sMacBook Air 15" M4 (16 GB)~25 tok/sMacBook Air 15" M4 (24 GB)~25 tok/sMacBook Pro 14" M4 (16 GB)~25 tok/siPad Pro M4 13" (16 GB)~25 tok/sMacBook Air 13" M3 (16 GB)~21 tok/sMacBook Air 13" M3 (24 GB)~21 tok/sMacBook Air 13" M3 (8 GB)~21 tok/sIntel Core Ultra 9 288V (Lunar Lake) Laptop~20 tok/sNVIDIA Jetson Orin NX 16GB~20 tok/sNVIDIA Jetson Orin Nano 8GB (Super)~20 tok/sAMD Ryzen AI 9 HX 370 (Strix Point) Laptop~19 tok/sApple iPhone 17 Pro~16 tok/siPhone 17 Pro Max~16 tok/siPhone Air~14 tok/siPhone 15 ProiPhone 15 Pro MaxiPhone 16 ProiPhone 16 Pro Max

Decent

Enough memory, may be tight

Related Models

Frequently Asked Questions

How much VRAM does Phi 3 M3 Coder need?

Phi 3 M3 Coder requires 3.4 GB of VRAM at Q4_K_M, or 8.8 GB at BF16. Full 4K context adds up to 0.8 GB (4.2 GB total).

VRAM = Weights + KV Cache + Overhead

Weights = 3.8B × 4.8 bits ÷ 8 = 2.3 GB

KV Cache + Overhead 1.1 GB (at 2K context + ~0.3 GB framework)

KV Cache + Overhead 1.9 GB (at full 4K context)

VRAM usage by quantization

3.4 GB
4.2 GB

Learn more about VRAM estimation →

What's the best quantization for Phi 3 M3 Coder?

For Phi 3 M3 Coder, Q4_K_M (3.4 GB) offers the best balance of quality and VRAM usage. Q5_K_M (3.8 GB) provides better quality if you have the VRAM. The smallest option is Q2_K at 2.7 GB.

VRAM requirement by quantization

Q2_K
2.7 GB
Q4_K_M
3.4 GB
Q5_K_M
3.8 GB
Q6_K
4.3 GB
Q8_0
4.9 GB
BF16
8.8 GB

★ Recommended — best balance of quality and VRAM usage.

Learn more about quantization →

Can I run Phi 3 M3 Coder on a Mac?

Phi 3 M3 Coder requires at least 2.7 GB at Q2_K, which exceeds the unified memory of most consumer Macs. You would need a Mac Studio or Mac Pro with a high-memory configuration.

Can I run Phi 3 M3 Coder locally?

Yes — Phi 3 M3 Coder can run locally on consumer hardware. At Q4_K_M quantization it needs 3.4 GB of VRAM. Popular tools include Ollama, LM Studio, and llama.cpp.

How fast is Phi 3 M3 Coder?

At Q4_K_M, Phi 3 M3 Coder can reach ~1294 tok/s on AMD Instinct MI350X. On NVIDIA GeForce RTX 4090: ~193 tok/s. Speed depends mainly on GPU memory bandwidth. Real-world results typically within ±20%.

tok/s = (bandwidth GB/s ÷ model GB) × efficiency

Example: NVIDIA B2008000 ÷ 3.4 × 0.65 = ~1529 tok/s

Estimated speed at Q4_K_M (3.4 GB)

~1529 tok/s
~193 tok/s
~1529 tok/s
~1294 tok/s

Real-world results typically within ±20%. Speed depends on batch size, quantization kernel, and software stack.

Learn more about tok/s estimation →

What's the download size of Phi 3 M3 Coder?

At Q4_K_M, the download is about 2.29 GB. The full-precision BF16 version is 7.65 GB. The smallest option (Q2_K) is 1.63 GB.

Which GPUs can run Phi 3 M3 Coder?

50 consumer GPUs can run Phi 3 M3 Coder at Q4_K_M (3.4 GB). Top options include AMD Radeon RX 6700 XT, AMD Radeon RX 6800, AMD Radeon RX 6800 XT. 50 GPUs have plenty of headroom for comfortable inference.

Which devices can run Phi 3 M3 Coder?

59 devices with unified memory can run Phi 3 M3 Coder at Q4_K_M (3.4 GB), including AMD Ryzen AI 9 HX 370 (Strix Point) Laptop, ASUS Ascent GX10, Apple iPhone 17 Pro, Asus ROG Flow Z13 (2025, Ryzen AI Max+ 395, 128 GB). Apple Silicon Macs use unified memory shared between CPU and GPU, making them well-suited for local LLM inference.