{"schema_version":"1.2.0","id":"bartowski/zai-org_GLM-4.7-Flash-GGUF","snapshot":{"generated":"2026-11-27T14:50:55Z","digest":"3e3b3951a5cae62c","snapshot_id":11754},"family":{"key":"glm47flash","representative":"zai-org/GLM-4.7-Flash","members":7,"relation":"mirror"},"architecture":{"value":{"arch":"deepseek2","model_type":"deepseek2","layers":47,"hidden":2048,"heads":20,"kv_heads":1,"head_dim":576,"vocab":154880,"rope_theta":1000000.0,"attn":"MLA","gqa_ratio":20.0,"moe_layers":46,"experts":64,"experts_per_tok":4,"shared_experts":1,"moe_intermediate":1536,"is_moe":true,"layer_types":[{"i":0,"attn_kind":"a","mlp_kind":"d","attn":"MLA","heads":20,"kv_heads":1,"head_dim":576,"kv_lora_rank":512,"qk_rope_head_dim":64,"kv_per_token":1152},{"i":1,"attn_kind":"a","mlp_kind":"m","attn":"MLA","heads":20,"kv_heads":1,"head_dim":576,"kv_lora_rank":512,"qk_rope_head_dim":64,"experts":64,"experts_per_tok":4,"expert_width":1536,"shared_experts":1,"kv_per_token":1152}],"layer_schedule":"01111111111111111111111111111111111111111111111","layer_note":"experts from the sparse-step rule"},"graph":{"schema":"osynk-arch/1","root":"model","defs":{"block.0":{"kind":"block","label":"block type 0","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":"attention - MLA","lines":["latent 512 + rope 64"],"facts":{"attn_kind":"a","attn":"MLA","heads":20,"kv_heads":1},"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":[]},"block.1":{"kind":"block","label":"block type 1","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":"attention - MLA","lines":["latent 512 + rope 64"],"facts":{"attn_kind":"a","attn":"MLA","heads":20,"kv_heads":1},"ref":"attention.1","source":"layer_types[1].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":"MoE MLP","lines":["4 of 64 experts","width 1536"],"facts":{"mlp_kind":"m","experts":64,"experts_per_tok":4},"ref":"mlp.1","source":"layer_types[1].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":"MLA","nodes":[{"id":"qkv","kind":"qkv","label":"QKV projection","lines":["20 query heads x 576","1 KV heads"],"facts":{"heads":20,"kv_heads":1,"head_dim":576},"source":"layer_types[0].heads/kv_heads/head_dim/qkv_bias"},{"id":"rope","kind":"rope","label":"rope","lines":["decoupled dim 64"],"facts":{"qk_rope_head_dim":64},"source":"layer_types[0].qk_rope_head_dim"},{"id":"attention","kind":"attention","label":"attention - MLA","lines":["latent 512 + rope 64","a learned latent, not full K/V","1.1 KB per token"],"facts":{"attn":"MLA","kv_lora_rank":512,"kv_per_token":1152},"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":[]},"attention.1":{"kind":"attention","label":"MLA","nodes":[{"id":"qkv","kind":"qkv","label":"QKV projection","lines":["20 query heads x 576","1 KV heads"],"facts":{"heads":20,"kv_heads":1,"head_dim":576},"source":"layer_types[1].heads/kv_heads/head_dim/qkv_bias"},{"id":"rope","kind":"rope","label":"rope","lines":["decoupled dim 64"],"facts":{"qk_rope_head_dim":64},"source":"layer_types[1].qk_rope_head_dim"},{"id":"attention","kind":"attention","label":"attention - MLA","lines":["latent 512 + rope 64","a learned latent, not full K/V","1.1 KB per token"],"facts":{"attn":"MLA","kv_lora_rank":512,"kv_per_token":1152},"source":"layer_types[1].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.1":{"kind":"mlp","label":"MoE MLP","nodes":[{"id":"router","kind":"router","label":"router","lines":["top 4/64"],"facts":{"experts_per_tok":4},"source":"layer_types[1].router_*/experts_per_tok","withheld":"the config does not state the score function or the top-k normalisation"},{"id":"experts","kind":"use","label":"64 experts","lines":["width 1536 each","4 fire per token"],"facts":{"experts":64,"expert_width":1536,"experts_per_tok":4},"ref":"ffn.1","source":"layer_types[1].experts/expert_width/experts_per_tok"},{"id":"shared","kind":"expert","label":"1 shared expert","lines":["always on, every token"],"facts":{"shared_experts":1},"source":"layer_types[1].shared_experts/shared_width"}],"edges":[["router","experts"],["router","shared"]]},"ffn.1":{"kind":"ffn","label":"the expert FFN","edges":[],"nodes":[{"id":"ffn","kind":"ffn","label":"feed-forward","lines":["up -> gate * act -> down","width 1536"],"facts":{"expert_width":1536},"source":"layer_types[].expert_width","withheld":"the config states no activation, so the gating shape is not stated either"}]}},"model":{"kind":"model","label":"deepseek2","nodes":[{"id":"text","kind":"text","label":"tokenized text","lines":["up to 198k tokens"],"facts":{"ctx":202752},"source":"spec.ctx"},{"id":"embedding","kind":"embedding","label":"token embedding","lines":["154,880 x 2048"],"facts":{"vocab":154880,"hidden":2048},"source":"spec.vocab/hidden/tied_embeddings"},{"id":"block.0","kind":"use","label":"block type 0","lines":["full attention","dense MLP"],"facts":{"attn_kind":"a","mlp_kind":"d"},"ref":"block.0","count":1,"source":"layer_types[0]"},{"id":"block.1","kind":"use","label":"block type 1","lines":["full attention","MoE MLP"],"facts":{"attn_kind":"a","mlp_kind":"m","experts":64,"experts_per_tok":4},"ref":"block.1","count":46,"source":"layer_types[1]"},{"id":"norm","kind":"norm","label":"final norm","lines":["hidden 2048"],"facts":{"hidden":2048},"source":"spec.hidden"},{"id":"head","kind":"head","label":"linear output layer","lines":["2048 x 154,880"],"facts":{"vocab":154880,"hidden":2048},"source":"spec.vocab/hidden"}],"facts":{"params_total":29943393920,"params_active":3896766080,"kv_bytes_per_token":54144,"vocab":154880,"hidden":2048,"ctx":202752},"edges":[["text","embedding"],["embedding","block.0"],["block.0","block.1"],["block.1","norm"],["norm","head"]]},"omissions":[]},"provenance":{"class":"derived","source":"gguf-header","method":"spec-v1"}},"lineage":{"org":"bartowski","tier":"C","foundational":false,"excluded_because":"repack","family":"zai glm","generation":"4.7","size":"10-30B","role":null,"line":"flash","rungs":0,"first_of_line":false,"new_rung":false,"base_of":"zai-org/GLM-4.7-Flash"},"params":{"total":29943393920,"active":3896766080,"active_ratio":0.1301,"params_per_expert":9437184,"mtp_excluded":null,"provenance":{"class":"derived","method":"moe-subtract-v1","total_from":"gguf-header-v1","from_base":null},"withheld":null},"inference":{"kv_bytes_per_token":54144,"attn_layers":47,"gb_fp16":59.89,"gb_active_fp16":7.79,"ctx":202752},"quants":[{"format":"IQ2_XXS","bytes":7622864768,"files":1,"path":"zai-org_GLM-4.7-Flash-IQ2_XXS.gguf"},{"format":"IQ2_XS","bytes":8671883136,"files":1,"path":"zai-org_GLM-4.7-Flash-IQ2_XS.gguf"},{"format":"IQ2_S","bytes":8784471936,"files":1,"path":"zai-org_GLM-4.7-Flash-IQ2_S.gguf"},{"format":"IQ2_M","bytes":9852364672,"files":1,"path":"zai-org_GLM-4.7-Flash-IQ2_M.gguf"},{"format":"Q2_K","bytes":11042348928,"files":1,"path":"zai-org_GLM-4.7-Flash-Q2_K.gguf"},{"format":"Q2_K_L","bytes":11352108928,"files":1,"path":"zai-org_GLM-4.7-Flash-Q2_K_L.gguf"},{"format":"IQ3_XXS","bytes":12249931648,"files":1,"path":"zai-org_GLM-4.7-Flash-IQ3_XXS.gguf"},{"format":"IQ3_XS","bytes":12710244224,"files":1,"path":"zai-org_GLM-4.7-Flash-IQ3_XS.gguf"},{"format":"Q3_K_S","bytes":13479014272,"files":1,"path":"zai-org_GLM-4.7-Flash-Q3_K_S.gguf"},{"format":"IQ3_M","bytes":13980757888,"files":1,"path":"zai-org_GLM-4.7-Flash-IQ3_M.gguf"},{"format":"Q3_K_M","bytes":14072672128,"files":1,"path":"zai-org_GLM-4.7-Flash-Q3_K_M.gguf"},{"format":"Q3_K_L","bytes":14499262336,"files":1,"path":"zai-org_GLM-4.7-Flash-Q3_K_L.gguf"},{"format":"Q3_K_XL","bytes":14776807296,"files":1,"path":"zai-org_GLM-4.7-Flash-Q3_K_XL.gguf"},{"format":"IQ4_XS","bytes":16250044288,"files":1,"path":"zai-org_GLM-4.7-Flash-IQ4_XS.gguf"},{"format":"IQ4_NL","bytes":17149157248,"files":1,"path":"zai-org_GLM-4.7-Flash-IQ4_NL.gguf"},{"format":"Q4_0","bytes":17393999744,"files":1,"path":"zai-org_GLM-4.7-Flash-Q4_0.gguf"},{"format":"Q4_K_S","bytes":17775705984,"files":1,"path":"zai-org_GLM-4.7-Flash-Q4_K_S.gguf"},{"format":"Q4_K_M","bytes":18474983296,"files":1,"path":"zai-org_GLM-4.7-Flash-Q4_K_M.gguf"},{"format":"Q4_K_L","bytes":18710400896,"files":1,"path":"zai-org_GLM-4.7-Flash-Q4_K_L.gguf"},{"format":"Q4_1","bytes":18950668160,"files":1,"path":"zai-org_GLM-4.7-Flash-Q4_1.gguf"},{"format":"Q5_K_S","bytes":20848074624,"files":1,"path":"zai-org_GLM-4.7-Flash-Q5_K_S.gguf"},{"format":"Q5_K_M","bytes":21566252928,"files":1,"path":"zai-org_GLM-4.7-Flash-Q5_K_M.gguf"},{"format":"Q5_K_L","bytes":21762021248,"files":1,"path":"zai-org_GLM-4.7-Flash-Q5_K_L.gguf"},{"format":"Q6_K","bytes":24825851776,"files":1,"path":"zai-org_GLM-4.7-Flash-Q6_K.gguf"},{"format":"Q6_K_L","bytes":24979492736,"files":1,"path":"zai-org_GLM-4.7-Flash-Q6_K_L.gguf"},{"format":"Q8_0","bytes":31842799488,"files":1,"path":"zai-org_GLM-4.7-Flash-Q8_0.gguf"},{"format":"BF16","bytes":59908837184,"files":2,"path":"zai-org_GLM-4.7-Flash-bf16/zai-org_GLM-4.7-Flash-bf16-00001-of-00002.gguf"}],"evidence":{"provider_meta":{"open_weights":true,"release_date":"2026-01-19","ctx":200000,"cost_in":0.07,"cost_out":0.4,"reasoning":true,"tool_call":true,"measured_as":"GLM 4.7 Flash"}},"claims":[],"diagrams":{"structure":"/diagrams/bartowski--zai-org_GLM-4.7-Flash-GGUF-structure.svg"},"history":{"points":3,"first":"2026-09-16T15:22:25Z","last":"2026-09-21T09:56:34Z"},"links":{"hf":"https://huggingface.co/bartowski/zai-org_GLM-4.7-Flash-GGUF","papers":[],"license":"mit"},"counters":{"downloads":29705,"likes":58,"created":"2026-01-20","modified":"2026-01-21"},"flags":{"variant":true,"gated":false,"closed_weights":false}}