{"schema_version":"1.2.0","id":"LiquidAI/d1-2B","snapshot":{"generated":"2026-11-27T14:50:55Z","digest":"3e3b3951a5cae62c","snapshot_id":11754},"family":{"key":"d12b","representative":"LiquidAI/d1-2B","members":2,"relation":"original"},"architecture":{"value":{"arch":"D1Model","model_type":"lfm3","layers":24,"hidden":2048,"heads":16,"kv_heads":4,"head_dim":128,"vocab":128000,"tied_embeddings":true,"attn":"GQA","gqa_ratio":4.0,"shared_experts":0,"moe_intermediate":7680,"ffn_dense":7680,"is_moe":false,"hybrid":true,"nested_config":true,"layer_types":[{"i":0,"attn_kind":"l","mlp_kind":"d","ffn_dense":7680,"norm":"layernorm","norm_source":"norm_eps","kv_per_token":0},{"i":1,"attn_kind":"a","mlp_kind":"d","attn":"GQA","heads":16,"kv_heads":4,"head_dim":128,"ffn_dense":7680,"norm":"layernorm","norm_source":"norm_eps","kv_per_token":2048},{"i":2,"attn_kind":"s","mlp_kind":"d","attn":"GQA","heads":16,"kv_heads":4,"head_dim":128,"window":256,"ffn_dense":7680,"norm":"layernorm","norm_source":"norm_eps","kv_per_token":2048}],"layer_schedule":"001020102010201020102010","layer_note":"attention per layer from `layer_types` (5 sliding, 6 full, 13 linear/SSM)"},"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":"dense MLP","lines":["width 7680"],"facts":{"mlp_kind":"d","ffn_dense":7680},"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"]},"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":["16 query -> 4 KV heads"],"facts":{"attn_kind":"a","attn":"GQA","heads":16,"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":"dense MLP","lines":["width 7680"],"facts":{"mlp_kind":"d","ffn_dense":7680},"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":[]},"block.2":{"kind":"block","label":"block type 2","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[2].norm (norm_eps)","derived":"norm_eps"},{"id":"attention","kind":"use","label":"sliding attention","lines":["16 query -> 4 KV heads","window 256"],"facts":{"attn_kind":"s","attn":"GQA","heads":16,"kv_heads":4,"window":256},"ref":"attention.2","source":"layer_types[2].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 7680"],"facts":{"mlp_kind":"d","ffn_dense":7680},"ref":"mlp.2","source":"layer_types[2].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":"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":"dense MLP","nodes":[{"id":"ffn","kind":"ffn","label":"dense FFN","lines":["width 7680"],"facts":{"ffn_dense":7680},"source":"layer_types[].ffn_dense","withheld":"the config states no activation, so the gating shape is not stated either"}],"edges":[]},"attention.1":{"kind":"attention","label":"GQA","nodes":[{"id":"qkv","kind":"qkv","label":"QKV projection","lines":["16 query heads x 128","4 KV heads"],"facts":{"heads":16,"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":["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":"dense MLP","nodes":[{"id":"ffn","kind":"ffn","label":"dense FFN","lines":["width 7680"],"facts":{"ffn_dense":7680},"source":"layer_types[].ffn_dense","withheld":"the config states no activation, so the gating shape is not stated either"}],"edges":[]},"attention.2":{"kind":"attention","label":"GQA","nodes":[{"id":"qkv","kind":"qkv","label":"QKV projection","lines":["16 query heads x 128","4 KV heads"],"facts":{"heads":16,"kv_heads":4,"head_dim":128},"source":"layer_types[2].heads/kv_heads/head_dim/qkv_bias"},{"id":"attention","kind":"attention","label":"sliding attention","lines":["4:1 query heads share a KV head","window 256 tokens - the cache stops there","2.0 KB per token"],"facts":{"attn":"GQA","kv_per_token":2048,"window":256},"source":"layer_types[2].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.2":{"kind":"mlp","label":"dense MLP","nodes":[{"id":"ffn","kind":"ffn","label":"dense FFN","lines":["width 7680"],"facts":{"ffn_dense":7680},"source":"layer_types[].ffn_dense","withheld":"the config states no activation, so the gating shape is not stated either"}],"edges":[]}},"model":{"kind":"model","label":"D1Model","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":["128,000 x 2048","tied to the LM head"],"facts":{"vocab":128000,"hidden":2048,"tied_embeddings":true},"source":"spec.vocab/hidden/tied_embeddings"},{"id":"block.0","kind":"use","label":"block type 0","lines":["linear attention / SSM","dense MLP"],"facts":{"attn_kind":"l","mlp_kind":"d"},"ref":"block.0","count":13,"source":"layer_types[0]"},{"id":"block.1","kind":"use","label":"block type 1","lines":["full attention","dense MLP"],"facts":{"attn_kind":"a","mlp_kind":"d"},"ref":"block.1","count":6,"source":"layer_types[1]"},{"id":"block.2","kind":"use","label":"block type 2","lines":["sliding attention","dense MLP"],"facts":{"attn_kind":"s","mlp_kind":"d","window":256},"ref":"block.2","count":5,"source":"layer_types[2]"},{"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 128,000","tied to the embedding"],"facts":{"vocab":128000,"hidden":2048},"source":"spec.vocab/hidden"}],"facts":{"params_total":1918181888,"params_active":1918181888,"kv_bytes_per_token":12288,"kv_window_bytes":2621440,"vocab":128000,"hidden":2048,"ctx":128000},"edges":[["text","embedding"],["embedding","block.0"],["block.0","block.1"],["block.1","block.2"],["block.2","norm"],["norm","head"]]},"omissions":["this record is a multi-modal checkpoint - the text decoder is shown, the other towers are not sized here","13 layers hold no KV cache (a recurrent state instead)"]},"provenance":{"class":"derived","source":"config.json","method":"spec-v1"}},"lineage":{"org":"LiquidAI","tier":"A","foundational":true,"excluded_because":null,"family":null,"generation":"1","size":"2B","role":null,"line":null,"ladder":["1","2","2.5","3"],"position":1,"rungs":4,"first_of_line":true,"new_rung":false},"params":{"total":1918181888,"active":1918181888,"active_ratio":1.0,"params_per_expert":null,"mtp_excluded":null,"provenance":{"class":"derived","method":"dense-identity-v1","total_from":"safetensors-header-v1","from_base":null},"withheld":null},"inference":{"kv_bytes_per_token":12288,"kv_window_bytes":2621440,"max_ctx_sliding":256,"sliding_layers":5,"attn_layers":11,"gb_fp16":3.84,"gb_q4":1.06,"gb_active_fp16":3.84,"ctx":128000},"quants":null,"evidence":null,"claims":[{"field":"params.total","claim":"2B","derived":1918181888,"delta":0.0427,"quote":"2B","source":"repo-name","source_url":"https://huggingface.co/LiquidAI/d1-2B"}],"diagrams":{"structure":"/diagrams/LiquidAI--d1-2B-structure.svg"},"history":{"points":1,"first":"2026-11-05T12:11:47Z","last":"2026-11-05T12:11:47Z"},"links":{"hf":"https://huggingface.co/LiquidAI/d1-2B","papers":[],"license":"other"},"counters":{"downloads":19565,"likes":370,"created":"2026-10-24","modified":"2026-11-14"},"flags":{"variant":false,"gated":false,"closed_weights":false}}