{"schema_version":"1.2.0","id":"lmstudio-community/ERNIE-4.5-21B-A3B-MLX-6bit","snapshot":{"generated":"2026-11-27T14:50:55Z","digest":"3e3b3951a5cae62c","snapshot_id":11754},"family":{"key":"ernie4521ba3bpt","representative":"baidu/ERNIE-4.5-21B-A3B-PT","members":4,"relation":"mirror"},"architecture":{"value":{"arch":"Ernie4_5_MoeForCausalLM","model_type":"ernie4_5_moe","layers":28,"hidden":2560,"heads":20,"kv_heads":4,"head_dim":128,"vocab":103424,"act":"silu","rope_theta":500000,"tied_embeddings":true,"dtype":"bfloat16","attn":"GQA","gqa_ratio":5.0,"shared_experts":0,"moe_intermediate":1536,"ffn_dense":12288,"is_moe":false,"layer_types":[{"i":0,"attn_kind":"a","mlp_kind":"d","attn":"GQA","heads":20,"kv_heads":4,"head_dim":128,"ffn_dense":12288,"ffn_gate":"swiglu","ffn_gate_source":"hidden_act: silu","norm":"rmsnorm","norm_source":"rms_norm_eps","kv_per_token":2048}],"layer_schedule":"0000000000000000000000000000","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":"RMSNorm","lines":["inferred from rms_norm_eps"],"facts":{"norm":"rmsnorm"},"source":"layer_types[0].norm (rms_norm_eps)","derived":"rms_norm_eps"},{"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 12288","silu"],"facts":{"mlp_kind":"d","ffn_dense":12288},"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":["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 12288","silu"],"facts":{"ffn_dense":12288,"ffn_gate":"swiglu","act":"silu"},"source":"layer_types[].ffn_gate (hidden_act: silu)","derived":"hidden_act: silu"}],"edges":[]}},"model":{"kind":"model","label":"Ernie4_5_MoeForCausalLM","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":["103,424 x 2560","tied to the LM head"],"facts":{"vocab":103424,"hidden":2560,"tied_embeddings":true},"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":28,"source":"layer_types[0]"},{"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":["2560 x 103,424","tied to the embedding"],"facts":{"vocab":103424,"hidden":2560},"source":"spec.vocab/hidden"}],"facts":{"params_total":21948655808,"kv_bytes_per_token":57344,"vocab":103424,"hidden":2560,"ctx":131072,"native_format":"PACKED"},"edges":[["text","embedding"],["embedding","block.0"],["block.0","norm"],["norm","head"]]},"omissions":["1 multi-token-prediction layer on top of the stack (published as `mtp_layers`)"]},"provenance":{"class":"derived","source":"config.json","method":"spec-v1"}},"lineage":{"org":"lmstudio-community","tier":"C","foundational":false,"excluded_because":"repack","family":"ernie 6bit","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":21948655808,"active":null,"active_ratio":null,"params_per_expert":null,"mtp_excluded":null,"provenance":{"class":"derived","method":"moe-subtract-v1","total_from":"base-borrow-v1","from_base":"baidu/ERNIE-4.5-21B-A3B-PT"},"withheld":[{"field":"params.active","reason":"the repo's own name claims 3B active of a 21.9487B checkpoint and the config describes no experts, so neither figure is publishable"},{"field":"params.active","reason":"would include 1 MTP head layer(s) that never run per token"}]},"inference":{"kv_bytes_per_token":57344,"attn_layers":28,"gb_fp16":43.9,"ctx":131072,"native_format":"PACKED"},"quants":null,"evidence":{"provider_meta":{"open_weights":true,"release_date":"2025-06-30","ctx":120000,"cost_in":0.07,"cost_out":0.28,"reasoning":false,"tool_call":true,"measured_as":"ERNIE 4.5 21B A3B"}},"claims":[{"field":"params.total","claim":"21B","derived":21948655808,"delta":-0.0432,"quote":"21B","source":"repo-name","source_url":"https://huggingface.co/lmstudio-community/ERNIE-4.5-21B-A3B-MLX-6bit"},{"field":"params.active","claim":"A3B","derived":null,"delta":null,"quote":"A3B","source":"repo-name","source_url":"https://huggingface.co/lmstudio-community/ERNIE-4.5-21B-A3B-MLX-6bit"}],"diagrams":{"structure":"/diagrams/lmstudio-community--ERNIE-4.5-21B-A3B-MLX-6bit-structure.svg"},"history":{"points":3,"first":"2026-09-16T15:22:25Z","last":"2026-10-02T11:07:06Z"},"links":{"hf":"https://huggingface.co/lmstudio-community/ERNIE-4.5-21B-A3B-MLX-6bit","papers":[],"license":"apache-2.0"},"counters":{"downloads":14219,"likes":1,"created":"2025-07-10","modified":"2025-07-10"},"flags":{"variant":true,"gated":false,"closed_weights":false}}