{"schema_version":"1.2.0","id":"lmstudio-community/phi-4-GGUF","snapshot":{"generated":"2026-11-27T14:50:55Z","digest":"3e3b3951a5cae62c","snapshot_id":11754},"family":{"key":"phi4","representative":"microsoft/phi-4","members":7,"relation":"mirror"},"architecture":{"value":{"arch":"phi3","model_type":"phi3","layers":40,"hidden":5120,"heads":40,"kv_heads":10,"head_dim":128,"rope_theta":250000.0,"attn":"GQA","gqa_ratio":4.0,"shared_experts":0,"is_moe":false,"layer_types":[{"i":0,"attn_kind":"a","mlp_kind":"d","attn":"GQA","heads":40,"kv_heads":10,"head_dim":128,"qk_rope_head_dim":128,"kv_per_token":5120}],"layer_schedule":"0000000000000000000000000000000000000000","layer_note":""},"graph":{"schema":"osynk-arch/1","root":"model","defs":{"block.0":{"kind":"block","label":"transformer block","nodes":[{"id":"in","kind":"io","label":"in","lines":["residual stream"]},{"id":"norm1","kind":"norm","label":"norm","lines":["type not stated"],"withheld":"no norm key in the config, so the type cannot be told"},{"id":"attention","kind":"use","label":"full attention","lines":["40 query -> 10 KV heads"],"facts":{"attn_kind":"a","attn":"GQA","heads":40,"kv_heads":10},"ref":"attention.0","source":"layer_types[0].attn/kv_lora_rank/heads/kv_heads/window"},{"id":"add1","kind":"add","label":"+","lines":["residual"]},{"id":"norm2","kind":"norm","label":"norm","lines":["same as above"]},{"id":"mlp","kind":"use","label":"dense MLP","lines":["width not stated"],"facts":{"mlp_kind":"d"},"ref":"mlp.0","source":"layer_types[0].mlp_kind/experts/experts_per_tok/ffn_dense"},{"id":"add2","kind":"add","label":"+","lines":["residual"]},{"id":"out","kind":"io","label":"out","lines":["to the next layer"]}],"edges":[["in","norm1"],["norm1","attention"],["attention","add1"],["add1","norm2"],["norm2","mlp"],["mlp","add2"],["add2","out"],["in","add1"],["add1","add2"]],"omissions":[]},"attention.0":{"kind":"attention","label":"GQA","nodes":[{"id":"qkv","kind":"qkv","label":"QKV projection","lines":["40 query heads x 128","10 KV heads"],"facts":{"heads":40,"kv_heads":10,"head_dim":128},"source":"layer_types[0].heads/kv_heads/head_dim/qkv_bias"},{"id":"rope","kind":"rope","label":"rope","lines":["decoupled dim 128"],"facts":{"qk_rope_head_dim":128},"source":"layer_types[0].qk_rope_head_dim"},{"id":"attention","kind":"attention","label":"full attention","lines":["4:1 query heads share a KV head","5.0 KB per token"],"facts":{"attn":"GQA","kv_per_token":5120},"source":"layer_types[0].attn/kv_lora_rank/window/kv_per_token"},{"id":"proj","kind":"proj","label":"output projection","lines":["back to hidden"]}],"edges":[["qkv","attention"],["attention","proj"],["rope","attention"]]},"mlp.0":{"kind":"mlp","label":"dense MLP","nodes":[{"id":"ffn","kind":"ffn","label":"dense FFN","lines":["width not stated"],"source":"layer_types[].ffn_dense/expert_width","withheld":"the config states one FFN width and this model uses it for the experts, so the dense width is unknown"}],"edges":[]}},"model":{"kind":"model","label":"phi3","nodes":[{"id":"text","kind":"text","label":"tokenized text","lines":["up to 16k tokens"],"facts":{"ctx":16384},"source":"spec.ctx"},{"id":"embedding","kind":"embedding","label":"token embedding","lines":["embedding"],"facts":{"hidden":5120},"source":"spec.vocab/hidden/tied_embeddings"},{"id":"block.0","kind":"use","label":"transformer block","lines":["full attention","dense MLP"],"facts":{"attn_kind":"a","mlp_kind":"d"},"ref":"block.0","count":40,"source":"layer_types[0]"},{"id":"norm","kind":"norm","label":"final norm","lines":["hidden 5120"],"facts":{"hidden":5120},"source":"spec.hidden"},{"id":"head","kind":"head","label":"linear output layer","lines":["vocabulary projection"],"facts":{"hidden":5120},"source":"spec.vocab/hidden"}],"facts":{"params_total":14659507200,"params_active":14659507200,"kv_bytes_per_token":204800,"hidden":5120,"ctx":16384},"edges":[["text","embedding"],["embedding","block.0"],["block.0","norm"],["norm","head"]]},"omissions":[]},"provenance":{"class":"derived","source":"gguf-header","method":"spec-v1"}},"lineage":{"org":"lmstudio-community","tier":"C","foundational":false,"excluded_because":"repack","family":"phi","generation":"4","size":"10-30B","role":null,"line":null,"rungs":0,"first_of_line":false,"new_rung":false,"base_of":"microsoft/phi-4"},"params":{"total":14659507200,"active":14659507200,"active_ratio":1.0,"params_per_expert":null,"mtp_excluded":null,"provenance":{"class":"derived","method":"dense-identity-v1","total_from":"gguf-header-v1","from_base":null},"withheld":null},"inference":{"kv_bytes_per_token":204800,"attn_layers":40,"gb_fp16":29.32,"gb_active_fp16":29.32,"ctx":16384},"quants":[{"format":"Q3_K_L","bytes":7930155200,"files":1,"path":"phi-4-Q3_K_L.gguf"},{"format":"Q4_K_M","bytes":9053114560,"files":1,"path":"phi-4-Q4_K_M.gguf"},{"format":"Q6_K","bytes":12030251200,"files":1,"path":"phi-4-Q6_K.gguf"},{"format":"Q8_0","bytes":15580500160,"files":1,"path":"phi-4-Q8_0.gguf"}],"evidence":{"provider_meta":{"open_weights":true,"release_date":"2024-12-11","ctx":16384,"cost_in":0.125,"cost_out":0.5,"reasoning":false,"tool_call":false,"measured_as":"Phi-4"}},"claims":[],"diagrams":{"structure":"/diagrams/lmstudio-community--phi-4-GGUF-structure.svg"},"history":{"points":4,"first":"2026-09-16T15:22:25Z","last":"2026-09-21T09:42:55Z"},"links":{"hf":"https://huggingface.co/lmstudio-community/phi-4-GGUF","papers":[],"license":"mit"},"counters":{"downloads":11321,"likes":56,"created":"2025-01-08","modified":"2025-01-11"},"flags":{"variant":true,"gated":false,"closed_weights":false}}