{"as_of":"2026-11-19","license":"CC-BY-4.0","license_url":"https://creativecommons.org/licenses/by/4.0/","cite_as":"The Local Bench (thelocalbench.com), data as of 2026-11-19, CC BY 4.0","source_url":"https://thelocalbench.com","model":{"id":"phi-4","name":"Phi-4","org":"Microsoft","task":"general","hf_repo":"microsoft/phi-4","gguf_repo":"unsloth/phi-4-GGUF","license":{"value":"MIT","flag":"verified","source":"https://opensource.org/license/mit"},"datasheet":"TLB-M-0018","rev":"2026.11","as_of":"2026-11-25","summary":"14.66B dense with a 16K context. Q4_K_M is 8.89 GB, comfortable on a 16 GB card.","arch":{"params_total":{"value":14.66,"flag":"verified","unit":"B","source":"https://huggingface.co/api/models/microsoft/phi-4","note":"safetensors.total from the HF API. The model card says 14B."},"params_active":{"value":14.66,"flag":"verified","unit":"B","source":"https://huggingface.co/api/models/microsoft/phi-4","note":"Dense: all parameters active."},"layers":{"value":40,"flag":"verified","source":"https://huggingface.co/microsoft/phi-4/blob/main/config.json"},"kv_heads":{"value":10,"flag":"verified","source":"https://huggingface.co/microsoft/phi-4/blob/main/config.json"},"q_heads":{"value":40,"flag":"verified","source":"https://huggingface.co/microsoft/phi-4/blob/main/config.json"},"head_dim":{"value":128,"flag":"verified","source":"https://huggingface.co/microsoft/phi-4/blob/main/config.json","note":"config.json does not set head_dim; hidden_size / num_attention_heads = 128."},"hidden_size":{"value":5120,"flag":"verified","source":"https://huggingface.co/microsoft/phi-4/blob/main/config.json"},"context":{"value":16384,"flag":"verified","unit":"tokens","source":"https://huggingface.co/microsoft/phi-4/blob/main/config.json","note":"max_position_embeddings. The model card says 16K tokens."}},"quants":{"Q3_K_M":{"bpw":3.91,"file_gb":{"value":7.19,"flag":"verified","unit":"GB","source":"https://huggingface.co/unsloth/phi-4-GGUF/tree/main","note":"Sum of GGUF file sizes (Q3_K_M) from the HF API tree listing."}},"Q4_K_M":{"bpw":4.85,"file_gb":{"value":8.89,"flag":"verified","unit":"GB","source":"https://huggingface.co/unsloth/phi-4-GGUF/tree/main","note":"Sum of GGUF file sizes (Q4_K_M) from the HF API tree listing."}},"Q5_K_M":{"bpw":5.69,"file_gb":{"value":10.41,"flag":"verified","unit":"GB","source":"https://huggingface.co/unsloth/phi-4-GGUF/tree/main","note":"Sum of GGUF file sizes (Q5_K_M) from the HF API tree listing."}},"Q6_K":{"bpw":6.56,"file_gb":{"value":12.03,"flag":"verified","unit":"GB","source":"https://huggingface.co/unsloth/phi-4-GGUF/tree/main","note":"Sum of GGUF file sizes (Q6_K) from the HF API tree listing."}},"Q8_0":{"bpw":8.5,"file_gb":{"value":15.58,"flag":"verified","unit":"GB","source":"https://huggingface.co/unsloth/phi-4-GGUF/tree/main","note":"Sum of GGUF file sizes (Q8_0) from the HF API tree listing."}},"F16":{"bpw":16,"file_gb":{"value":29.32,"flag":"verified","unit":"GB","source":"https://huggingface.co/unsloth/phi-4-GGUF/tree/main","note":"Sum of GGUF file sizes (F16) from the HF API tree listing."}}},"quality":{"arena_text":{"value":1216.7,"flag":"sourced","source":"https://huggingface.co/datasets/lmarena-ai/leaderboard-dataset","note":"LMArena text, overall, entry 'Phi-4': 1216.7 (95% CI 1212.1–1221.3, 24,126 votes), leaderboard published 2026-11-22. CC-BY-4.0."}}},"runs":[]}