phi-4 on RTX 4060 Ti: Fits (Sep 2026)
Conditional memory judgement for one configuration. Change context, quant, or engine and the conclusion can change. Configuration used on this page: GGUF Q5_K_M (Unsloth), 8,192 cached tokens, 1 sequence, engine llama.cpp. Status: Likely fits. Software: Not verified..
Verdict on GeForce RTX 4060 Ti 16GB (desktop)
Yes, run Q5_K_M. The calculator puts it at 11.4 GiB–12.1 GiB at 8,192 tokens, inside 15.0 GiB of usable VRAM (after the driver reserve). Q8_0 is the next step up and does not clear the bar (16.2 GiB–17.0 GiB).
With Q5_K_M, the longest context that still counts as a fit is about 15,231 tokens of a 16,384-token native window, one sequence, fp16 KV cache.
| GGUF quant | File weights | KV cache | Estimated total | Verdict |
|---|---|---|---|---|
| Q8_0 | 14.5 GiB | 1.6 GiB | 16.2 GiB–17.0 GiB | Does not fit |
| Q6_K | 11.2 GiB | 1.6 GiB | 12.9 GiB–13.6 GiB | Tight |
| Q5_K_M (recommended) | 9.7 GiB | 1.6 GiB | 11.4 GiB–12.1 GiB | Fits |
| Q4_K_M | 8.3 GiB | 1.6 GiB | 10.0 GiB–10.6 GiB | Fits |
Engine llama.cpp, one sequence, fp16 KV. File weights are the published GGUF sizes in the catalog. Totals come from the same calculator that powers the tool below; they are estimates, not a measurement of this setup.
Fixed page configuration
GGUF Q5_K_M needs 11.4 GiB-12.1 GiB at 8,192 tokens against 15.00 GiB net on GeForce RTX 4060 Ti 16GB (desktop). Q8_0, Q6_K are tight or over budget.
- Modelphi-4
- HardwareGeForce RTX 4060 Ti 16GB (desktop)
- QuantizationGGUF Q5_K_M (Unsloth)
- Context length (cached tokens)8,192
- Engine
llama.cpp - Concurrent sequences1
- KV cache typefp16
Technical identifiers and share data
- Model
phi-4 - Hardware
nvidia-geforce-rtx-4060-ti-16gb-desktop - Quantization
gguf-q5_k_m - Share fragment for this identity
v2.eyJzY2hlbWFWZXJzaW9uIjoyLCJjYWxjdWxhdG9yVmVyc2lvbiI6IjAuMy4wIiwiZGF0YXNldFZlcnNpb24iOiIyMDI2LTEwLTAyLjEiLCJjb25maWciOnsibW9kZWxJZCI6InBoaS00IiwiaGFyZHdhcmVJZCI6Im52aWRpYS1nZWZvcmNlLXJ0eC00MDYwLXRpLTE2Z2ItZGVza3RvcCIsImRldmljZUNvdW50IjoxLCJxdWFudGl6YXRpb25JZCI6ImdndWYtcTVfa19tIiwiY29udGV4dFRva2VucyI6ODE5MiwiY29uY3VycmVudFNlcXVlbmNlcyI6MSwiZW5naW5lIjoibGxhbWEuY3BwIiwia3ZUeXBlIjoiZnAxNiJ9fQ
Memory breakdown
- Weight artifact
- 9.70 GiB (10,412,707,392 bytes)
- Raw KV cache
- 1.56 GiB (1,677,721,600 bytes)
- Engine extras / workspace
- 0.13 GiB–0.80 GiB
- Total estimated demand
- 11.39 GiB–12.06 GiB
- Net calculator budget
- 15.00 GiB
- OS / display reserve
- 1.00 GiB
- Remaining vs net budget
- 2.94 GiB–3.61 GiB
12.06 GiB high estimate vs 15.00 GiB net
Enough memory does not mean this engine, quant, and OS will run. Support does not mean it will be fast.
Other published files on this device
Same model, device and context (8,192 tokens, 1 sequence, FP16 KV). Each row is one published weight-file set with its usual engine, sorted by memory.
| Quantization | Engine | Estimated memory | Fit |
|---|---|---|---|
| BF16 safetensors | vllm | 29.49 GiB–31.41 GiB | Does not fit |
| GGUF Q8_0 (Microsoft) | llama.cpp | 16.20 GiB–16.97 GiB | Does not fit |
| GGUF Q6_K (Microsoft) | llama.cpp | 12.89 GiB–13.60 GiB | Tight fit |
| GGUF Q5_K_M (Unsloth) This page | llama.cpp | 11.39 GiB–12.06 GiB | Fits |
| GGUF Q4_K_M (Unsloth) | llama.cpp | 9.97 GiB–10.62 GiB | Fits |
Assumptions that affect this result
- Requested context is within the recorded native window of 16384 tokens.
- Full-resident weight estimates use total parameters, including inactive MoE experts.
- Weight bytes come from the selected weight files only, not from every file in the repository.
- Download file size is not peak GPU memory. Runtime layout, allocator padding, and KV are extra.
- Counted files: phi-4-Q5_K_M.gguf.
- Context budget is the number of cached tokens per sequence (prompt plus reserved generation).
- Concurrent sequences share one model replica; weights are not multiplied by sequence count.
- KV dtype is independent of weight quantization unless you change it.
Related pages
Sources
- phi-4 model card
- config.json — revision 2db69c1c3e91a05d2c64a3185acfbaf36f744e25
- safetensors index — metadata.total_size=29319014400
- Artifact repo microsoft/phi-4-GGUF
- Artifact repo unsloth/phi-4-GGUF
- NVIDIA GeForce RTX 40 Series specs — RTX 4060 Ti Memory Size 16 GB / 8 GB — this record is the 16 GB SKU only
Calculator
This combo page keeps the route model and device. Customize to change them on the main calculator; the share then keeps that identity.
Loading catalog snapshot…
Search or pick a catalog checkpoint to see memory demand.