GGUF·MLX 양자화 가이드 (Q4 vs Q8 vs FP16)
Qwen 3.8 27B 실제 계산으로 Q4는 24GB GPU에 들어가고 Q8은 40GB 이상 필요한 이유 설명.
추정 공식 및 가용 메모리 계수
weights_gb ≈ params_total_b × (bits_per_param / 8) × 1.05
Qwen 3.8 27B (27B dense)
| Configuration | Result | 상태 |
|---|---|---|
| Q4_K_M (~4.8 bit/param) | 17.0 GB weights → min 24 GB RAM / VRAM | 추정 |
| Q8_0 (~8.5 bit/param) | 30.0 GB weights → min 40 GB RAM / VRAM | 추정 |
| FP16 (16 bit/param) | 56.7 GB weights → min 64 GB RAM / VRAM | 추정 |
- Dropping from FP16 (56.7 GB) to Q4_K_M (17.0 GB estimated) cuts weight memory by ~70%, moving Qwen 3.8 27B from 64 GB workstations down to a single 24 GB GPU.
- Because consumer local inference is memory-bandwidth bound, smaller quantized weights directly increase tokens/sec proportionally to bytes read per token.
- Always leave ≥25% usable headroom above minRamGb (Fits threshold) so KV cache and runtime buffers do not force CPU offload.
FAQ
Does Q4_K_M fit Qwen 3.8 27B on an RTX 4090 24GB?
On 24GB discrete VRAM, 90% usable memory equals 21.6GB. Against a 24GB minRamGb threshold, our algorithm marks Qwen 3.8 27B as Tight/borderline unless context is kept compact; 32GB (RTX 5090 or 32GB+ unified memory) moves it into comfortable headroom.
Why does the formula multiply by 1.05?
The 1.05 multiplier approximates non-quantized metadata, embedding/norm tensors, and container overhead inside GGUF or MLX weight shards.
관련 모델
Qwen 3.8 27B
dense · 27B 권장 양자화 Q4_K_M
가중치 크기 17GB
최소 메모리 24GB
— 모델 상세 →
Gemma 4 31B
dense · 31B 권장 양자화 Q4_K_M
가중치 크기 19.5GB
최소 메모리 24GB
Gemma Terms 모델 상세 →
Qwen 3.5 4B
dense · 4B 권장 양자화 MLX-4bit
가중치 크기 2.8GB
최소 메모리 8GB
— 모델 상세 →