{"schema_version":"1.2.0","id":"unsloth/ERNIE-4.5-21B-A3B-PT-GGUF","snapshot":{"generated":"2026-12-01T12:24:10Z","digest":"cb2802df1d06391d","snapshot_id":12654},"family":{"key":"ernie4521ba3bpt","representative":"baidu/ERNIE-4.5-21B-A3B-PT","members":5,"relation":"mirror"},"architecture":{"value":{"arch":"ernie4_5-moe","model_type":"ernie4_5-moe","layers":28,"hidden":2560,"heads":20,"kv_heads":4,"head_dim":128,"rope_theta":500000.0,"attn":"GQA","gqa_ratio":5.0,"moe_layers":27,"experts":64,"experts_per_tok":6,"shared_experts":2,"moe_intermediate":1536,"is_moe":true,"layer_types":[{"i":0,"attn_kind":"a","mlp_kind":"d","attn":"GQA","heads":20,"kv_heads":4,"head_dim":128,"kv_per_token":2048},{"i":1,"attn_kind":"a","mlp_kind":"m","attn":"GQA","heads":20,"kv_heads":4,"head_dim":128,"experts":64,"experts_per_tok":6,"expert_width":1536,"shared_experts":2,"kv_per_token":2048}],"layer_schedule":"0111111111111111111111111111","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":"full attention","lines":["20 query -> 4 KV heads"],"facts":{"attn_kind":"a","attn":"GQA","heads":20,"kv_heads":4},"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":"full attention","lines":["20 query -> 4 KV heads"],"facts":{"attn_kind":"a","attn":"GQA","heads":20,"kv_heads":4},"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":["6 of 64 experts","width 1536"],"facts":{"mlp_kind":"m","experts":64,"experts_per_tok":6},"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":"GQA","nodes":[{"id":"qkv","kind":"qkv","label":"QKV projection","lines":["20 query heads x 128","4 KV heads"],"facts":{"heads":20,"kv_heads":4,"head_dim":128},"source":"layer_types[0].heads/kv_heads/head_dim/qkv_bias"},{"id":"attention","kind":"attention","label":"full attention","lines":["5:1 query heads share a KV head","2.0 KB per token"],"facts":{"attn":"GQA","kv_per_token":2048},"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"]]},"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":"GQA","nodes":[{"id":"qkv","kind":"qkv","label":"QKV projection","lines":["20 query heads x 128","4 KV heads"],"facts":{"heads":20,"kv_heads":4,"head_dim":128},"source":"layer_types[1].heads/kv_heads/head_dim/qkv_bias"},{"id":"attention","kind":"attention","label":"full attention","lines":["5:1 query heads share a KV head","2.0 KB per token"],"facts":{"attn":"GQA","kv_per_token":2048},"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"]]},"mlp.1":{"kind":"mlp","label":"MoE MLP","nodes":[{"id":"router","kind":"router","label":"router","lines":["top 6/64"],"facts":{"experts_per_tok":6},"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","6 fire per token"],"facts":{"experts":64,"expert_width":1536,"experts_per_tok":6},"ref":"ffn.1","source":"layer_types[1].experts/expert_width/experts_per_tok"},{"id":"shared","kind":"expert","label":"2 shared experts","lines":["always on, every token"],"facts":{"shared_experts":2},"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":"ernie4_5-moe","nodes":[{"id":"text","kind":"text","label":"tokenized text","lines":["up to 128k tokens"],"facts":{"ctx":131072},"source":"spec.ctx"},{"id":"embedding","kind":"embedding","label":"token embedding","lines":["embedding"],"facts":{"hidden":2560},"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":6},"ref":"block.1","count":27,"source":"layer_types[1]"},{"id":"norm","kind":"norm","label":"final norm","lines":["hidden 2560"],"facts":{"hidden":2560},"source":"spec.hidden"},{"id":"head","kind":"head","label":"linear output layer","lines":["vocabulary projection"],"facts":{"hidden":2560},"source":"spec.vocab/hidden"}],"facts":{"params_total":21825437888,"params_active":3352150208,"kv_bytes_per_token":57344,"hidden":2560,"ctx":131072},"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":"unsloth","tier":"C","foundational":false,"excluded_because":"repack","family":"ernie pt","generation":"4.5","size":"21B 3B","role":null,"line":null,"rungs":0,"first_of_line":false,"new_rung":false,"base_of":"baidu/ERNIE-4.5-21B-A3B-PT"},"params":{"total":21825437888,"active":3352150208,"active_ratio":0.1536,"params_per_expert":11796480,"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":57344,"attn_layers":28,"gb_fp16":43.65,"gb_active_fp16":6.7,"ctx":131072},"quants":[{"format":"TQ1_0","bytes":6504202016,"files":1,"path":"ERNIE-4.5-21B-A3B-PT-UD-TQ1_0.gguf"},{"format":"IQ1_S","bytes":7066500896,"files":1,"path":"ERNIE-4.5-21B-A3B-PT-UD-IQ1_S.gguf"},{"format":"IQ1_M","bytes":7235276576,"files":1,"path":"ERNIE-4.5-21B-A3B-PT-UD-IQ1_M.gguf"},{"format":"IQ2_XXS","bytes":7757506336,"files":1,"path":"ERNIE-4.5-21B-A3B-PT-UD-IQ2_XXS.gguf"},{"format":"IQ2_M","bytes":8025599776,"files":1,"path":"ERNIE-4.5-21B-A3B-PT-UD-IQ2_M.gguf"},{"format":"Q2_K","bytes":8152596256,"files":1,"path":"ERNIE-4.5-21B-A3B-PT-Q2_K.gguf"},{"format":"Q2_K_L","bytes":8152596256,"files":1,"path":"ERNIE-4.5-21B-A3B-PT-Q2_K_L.gguf"},{"format":"Q2_K_XL","bytes":8222883616,"files":1,"path":"ERNIE-4.5-21B-A3B-PT-UD-Q2_K_XL.gguf"},{"format":"IQ3_XXS","bytes":9540402976,"files":1,"path":"ERNIE-4.5-21B-A3B-PT-UD-IQ3_XXS.gguf"},{"format":"Q3_K_S","bytes":9639608096,"files":1,"path":"ERNIE-4.5-21B-A3B-PT-Q3_K_S.gguf"},{"format":"Q3_K_M","bytes":10524815136,"files":1,"path":"ERNIE-4.5-21B-A3B-PT-Q3_K_M.gguf"},{"format":"Q3_K_XL","bytes":10577162016,"files":1,"path":"ERNIE-4.5-21B-A3B-PT-UD-Q3_K_XL.gguf"},{"format":"IQ4_XS","bytes":11823021856,"files":1,"path":"ERNIE-4.5-21B-A3B-PT-IQ4_XS.gguf"},{"format":"IQ4_NL","bytes":12475596576,"files":1,"path":"ERNIE-4.5-21B-A3B-PT-IQ4_NL.gguf"},{"format":"Q4_0","bytes":12501360416,"files":1,"path":"ERNIE-4.5-21B-A3B-PT-Q4_0.gguf"},{"format":"Q4_K_S","bytes":12536094496,"files":1,"path":"ERNIE-4.5-21B-A3B-PT-Q4_K_S.gguf"},{"format":"Q4_K_M","bytes":13331015456,"files":1,"path":"ERNIE-4.5-21B-A3B-PT-Q4_K_M.gguf"},{"format":"Q4_K_XL","bytes":13431623456,"files":1,"path":"ERNIE-4.5-21B-A3B-PT-UD-Q4_K_XL.gguf"},{"format":"Q4_1","bytes":13778452256,"files":1,"path":"ERNIE-4.5-21B-A3B-PT-Q4_1.gguf"},{"format":"Q5_K_S","bytes":15142297376,"files":1,"path":"ERNIE-4.5-21B-A3B-PT-Q5_K_S.gguf"},{"format":"Q5_K_M","bytes":15585330976,"files":1,"path":"ERNIE-4.5-21B-A3B-PT-Q5_K_M.gguf"},{"format":"Q5_K_XL","bytes":15710269216,"files":1,"path":"ERNIE-4.5-21B-A3B-PT-UD-Q5_K_XL.gguf"},{"format":"Q6_K","bytes":17972039456,"files":1,"path":"ERNIE-4.5-21B-A3B-PT-Q6_K.gguf"},{"format":"Q6_K_XL","bytes":19260210976,"files":1,"path":"ERNIE-4.5-21B-A3B-PT-UD-Q6_K_XL.gguf"},{"format":"Q8_0","bytes":23205355296,"files":1,"path":"ERNIE-4.5-21B-A3B-PT-Q8_0.gguf"},{"format":"Q8_K_XL","bytes":26643537696,"files":1,"path":"ERNIE-4.5-21B-A3B-PT-UD-Q8_K_XL.gguf"},{"format":"BF16","bytes":43662417664,"files":1,"path":"ERNIE-4.5-21B-A3B-PT-BF16.gguf"}],"evidence":null,"claims":[{"field":"params.total","claim":"21B","derived":21825437888,"delta":-0.0378,"quote":"21B","source":"repo-name","source_url":"https://huggingface.co/unsloth/ERNIE-4.5-21B-A3B-PT-GGUF"},{"field":"params.active","claim":"A3B","derived":3352150208,"delta":-0.1051,"quote":"A3B","source":"repo-name","source_url":"https://huggingface.co/unsloth/ERNIE-4.5-21B-A3B-PT-GGUF"}],"diagrams":{"structure":"/diagrams/unsloth--ERNIE-4.5-21B-A3B-PT-GGUF-structure.svg"},"history":{"points":2,"first":"2026-10-21T12:49:27Z","last":"2026-10-21T12:56:05Z"},"links":{"hf":"https://huggingface.co/unsloth/ERNIE-4.5-21B-A3B-PT-GGUF","papers":[],"license":"apache-2.0"},"counters":{"downloads":8820,"likes":22,"created":"2025-07-18","modified":"2026-01-24"},"flags":{"variant":true,"gated":false,"closed_weights":false}}