{"schema_version":"1.2.0","id":"lmstudio-community/LFM2-24B-A2B-MLX-4bit","snapshot":{"generated":"2026-11-27T14:50:55Z","digest":"3e3b3951a5cae62c","snapshot_id":11754},"family":{"key":"lfm224ba2b","representative":"lmstudio-community/LFM2-24B-A2B-MLX-8bit","members":5,"relation":"mirror"},"architecture":{"value":{"arch":"Lfm2MoeForCausalLM","model_type":"lfm2_moe","layers":40,"hidden":2048,"heads":32,"kv_heads":8,"head_dim":64,"vocab":65536,"attn":"GQA","gqa_ratio":4.0,"moe_layers":40,"experts":64,"experts_per_tok":4,"shared_experts":0,"moe_intermediate":1536,"ffn_dense":11776,"is_moe":true,"hybrid":true,"layer_types":[{"i":0,"attn_kind":"l","mlp_kind":"?","norm":"layernorm","norm_source":"norm_eps","kv_per_token":0},{"i":1,"attn_kind":"a","mlp_kind":"?","attn":"GQA","heads":32,"kv_heads":8,"head_dim":64,"norm":"layernorm","norm_source":"norm_eps","kv_per_token":2048}],"layer_schedule":"0010001000100010001000100010001000100010","layer_note":"attention per layer from `layer_types` (10 full, 30 linear/SSM); 40 of 40 MoE \u2014 positions not stated"},"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":"LayerNorm","lines":["inferred from norm_eps"],"facts":{"norm":"layernorm"},"source":"layer_types[0].norm (norm_eps)","derived":"norm_eps"},{"id":"attention","kind":"use","label":"linear attention / SSM","lines":["a recurrent state, no KV cache"],"facts":{"attn_kind":"l"},"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":"MLP kind not stated","lines":["width not stated"],"facts":{"mlp_kind":"?"},"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":["the SSM's internal shape is not in this record","the config does not say which layers route to experts"]},"block.1":{"kind":"block","label":"block type 1","nodes":[{"id":"in","kind":"io","label":"in","lines":["residual stream"]},{"id":"norm1","kind":"norm","label":"LayerNorm","lines":["inferred from norm_eps"],"facts":{"norm":"layernorm"},"source":"layer_types[1].norm (norm_eps)","derived":"norm_eps"},{"id":"attention","kind":"use","label":"full attention","lines":["32 query -> 8 KV heads"],"facts":{"attn_kind":"a","attn":"GQA","heads":32,"kv_heads":8},"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":"MLP kind not stated","lines":["width not stated"],"facts":{"mlp_kind":"?"},"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":["the config does not say which layers route to experts"]},"attention.0":{"kind":"attention","label":"linear attention / SSM","nodes":[{"id":"ssm","kind":"ssm","label":"linear attention / SSM","lines":["a recurrent state, no KV cache"],"withheld":"the record does not state the SSM's state size, conv width or expand factor"}],"edges":[],"omissions":["the SSM's internal shape is not in this record"]},"mlp.0":{"kind":"mlp","label":"MLP kind not stated","nodes":[{"id":"ffn","kind":"ffn","label":"MLP","lines":["kind not stated"],"withheld":"the config does not say which layers route to experts, so neither shape can be drawn"}],"edges":[]},"attention.1":{"kind":"attention","label":"GQA","nodes":[{"id":"qkv","kind":"qkv","label":"QKV projection","lines":["32 query heads x 64","8 KV heads"],"facts":{"heads":32,"kv_heads":8,"head_dim":64},"source":"layer_types[1].heads/kv_heads/head_dim/qkv_bias"},{"id":"attention","kind":"attention","label":"full attention","lines":["4: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":"MLP kind not stated","nodes":[{"id":"ffn","kind":"ffn","label":"MLP","lines":["kind not stated"],"withheld":"the config does not say which layers route to experts, so neither shape can be drawn"}],"edges":[]}},"model":{"kind":"model","label":"Lfm2MoeForCausalLM","nodes":[{"id":"text","kind":"text","label":"tokenized text","lines":["up to 125k tokens"],"facts":{"ctx":128000},"source":"spec.ctx"},{"id":"embedding","kind":"embedding","label":"token embedding","lines":["65,536 x 2048"],"facts":{"vocab":65536,"hidden":2048},"source":"spec.vocab/hidden/tied_embeddings"},{"id":"block.0","kind":"use","label":"block type 0","lines":["linear attention / SSM","MLP kind not stated"],"facts":{"attn_kind":"l","mlp_kind":"?"},"ref":"block.0","count":30,"source":"layer_types[0]","withheld":"part of this block's kind is not recognised"},{"id":"block.1","kind":"use","label":"block type 1","lines":["full attention","MLP kind not stated"],"facts":{"attn_kind":"a","mlp_kind":"?"},"ref":"block.1","count":10,"source":"layer_types[1]","withheld":"part of this block's kind is not recognised"},{"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 65,536"],"facts":{"vocab":65536,"hidden":2048},"source":"spec.vocab/hidden"}],"facts":{"params_total":23843661440,"params_active":1194419840,"kv_bytes_per_token":20480,"vocab":65536,"hidden":2048,"ctx":128000,"native_format":"4BIT"},"edges":[["text","embedding"],["embedding","block.0"],["block.0","block.1"],["block.1","norm"],["norm","head"]]},"omissions":["30 layers hold no KV cache (a recurrent state instead)"]},"provenance":{"class":"derived","source":"config.json","method":"spec-v1"}},"lineage":{"org":"lmstudio-community","tier":"C","foundational":false,"excluded_because":"repack","family":"lfm 4bit","generation":"2","size":"24B 2B","role":null,"line":null},"params":{"total":23843661440,"active":1194419840,"active_ratio":0.0501,"params_per_expert":9437184,"mtp_excluded":null,"provenance":{"class":"derived","method":"moe-subtract-v1","total_from":"base-borrow-v1","from_base":"LiquidAI/LFM2-24B-A2B"},"withheld":null},"inference":{"kv_bytes_per_token":20480,"attn_layers":10,"gb_fp16":47.69,"gb_active_fp16":2.39,"ctx":128000,"native_format":"4BIT"},"quants":null,"evidence":null,"claims":[{"field":"params.active","claim":"A2B","derived":1194419840,"delta":0.6745,"quote":"A2B","source":"repo-name","source_url":"https://huggingface.co/lmstudio-community/LFM2-24B-A2B-MLX-4bit"}],"diagrams":{"structure":"/diagrams/lmstudio-community--LFM2-24B-A2B-MLX-4bit-structure.svg"},"history":{"points":5,"first":"2026-09-16T15:22:25Z","last":"2026-11-25T21:21:23Z"},"links":{"hf":"https://huggingface.co/lmstudio-community/LFM2-24B-A2B-MLX-4bit","papers":[],"license":"other"},"counters":{"downloads":137167,"likes":4,"created":"2026-02-23","modified":"2026-02-23"},"flags":{"variant":true,"gated":false,"closed_weights":false}}