{"schema_version":"1.2.0","id":"ibm-granite/granite-4.0-h-350m","snapshot":{"generated":"2026-11-28T11:18:51Z","digest":"91371c7cad9fefcb","snapshot_id":11955},"family":{"key":null,"representative":"ibm-granite/granite-4.0-h-350m","members":1,"relation":"original"},"architecture":{"value":{"arch":"GraniteMoeHybridForCausalLM","model_type":"granitemoehybrid","layers":32,"hidden":768,"heads":12,"kv_heads":4,"head_dim":64,"vocab":100352,"act":"silu","rope_theta":10000,"tied_embeddings":true,"dtype":"bfloat16","attn":"GQA","gqa_ratio":3.0,"experts":0,"experts_per_tok":0,"shared_experts":0,"moe_intermediate":2048,"ffn_dense":2048,"is_moe":false,"hybrid":true,"layer_types":[{"i":0,"attn_kind":"l","mlp_kind":"d","ffn_dense":2048,"ffn_gate":"swiglu","ffn_gate_source":"hidden_act: silu","norm":"rmsnorm","norm_source":"rms_norm_eps","kv_per_token":0},{"i":1,"attn_kind":"a","mlp_kind":"d","attn":"GQA","heads":12,"kv_heads":4,"head_dim":64,"qkv_bias":false,"ffn_dense":2048,"ffn_gate":"swiglu","ffn_gate_source":"hidden_act: silu","norm":"rmsnorm","norm_source":"rms_norm_eps","kv_per_token":1024}],"layer_schedule":"00000000001001000100000000010000","layer_note":"attention per layer from `layer_types` (4 full, 28 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":"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":"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 2048","silu"],"facts":{"mlp_kind":"d","ffn_dense":2048},"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":"RMSNorm","lines":["inferred from rms_norm_eps"],"facts":{"norm":"rmsnorm"},"source":"layer_types[1].norm (rms_norm_eps)","derived":"rms_norm_eps"},{"id":"attention","kind":"use","label":"full attention","lines":["12 query -> 4 KV heads"],"facts":{"attn_kind":"a","attn":"GQA","heads":12,"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 2048","silu"],"facts":{"mlp_kind":"d","ffn_dense":2048},"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":"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 2048","silu"],"facts":{"ffn_dense":2048,"ffn_gate":"swiglu","act":"silu"},"source":"layer_types[].ffn_gate (hidden_act: silu)","derived":"hidden_act: silu"}],"edges":[]},"attention.1":{"kind":"attention","label":"GQA","nodes":[{"id":"qkv","kind":"qkv","label":"QKV projection","lines":["12 query heads x 64","4 KV heads","no bias"],"facts":{"heads":12,"kv_heads":4,"head_dim":64,"qkv_bias":false},"source":"layer_types[1].heads/kv_heads/head_dim/qkv_bias"},{"id":"attention","kind":"attention","label":"full attention","lines":["3:1 query heads share a KV head","1.0 KB per token"],"facts":{"attn":"GQA","kv_per_token":1024},"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 2048","silu"],"facts":{"ffn_dense":2048,"ffn_gate":"swiglu","act":"silu"},"source":"layer_types[].ffn_gate (hidden_act: silu)","derived":"hidden_act: silu"}],"edges":[]}},"model":{"kind":"model","label":"GraniteMoeHybridForCausalLM","nodes":[{"id":"text","kind":"text","label":"tokenized text","lines":["up to 32k tokens"],"facts":{"ctx":32768},"source":"spec.ctx"},{"id":"embedding","kind":"embedding","label":"token embedding","lines":["100,352 x 768","tied to the LM head"],"facts":{"vocab":100352,"hidden":768,"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":28,"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":4,"source":"layer_types[1]"},{"id":"norm","kind":"norm","label":"final norm","lines":["hidden 768"],"facts":{"hidden":768},"source":"spec.hidden"},{"id":"head","kind":"head","label":"linear output layer","lines":["768 x 100,352","tied to the embedding"],"facts":{"vocab":100352,"hidden":768},"source":"spec.vocab/hidden"}],"facts":{"params_total":340332224,"params_active":340332224,"kv_bytes_per_token":4096,"vocab":100352,"hidden":768,"ctx":32768},"edges":[["text","embedding"],["embedding","block.0"],["block.0","block.1"],["block.1","norm"],["norm","head"]]},"omissions":["28 layers hold no KV cache (a recurrent state instead)"]},"provenance":{"class":"derived","source":"config.json","method":"spec-v1"}},"lineage":{"org":"ibm-granite","tier":"A","foundational":true,"excluded_because":null,"family":"granite h 350m","generation":"4.0","size":"<1B","role":null,"line":null,"ladder":["3.1","4.0","4.1","4.2"],"position":2,"rungs":4,"first_of_line":false,"new_rung":true},"params":{"total":340332224,"active":340332224,"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":4096,"attn_layers":4,"gb_fp16":0.68,"gb_q4":0.19,"gb_active_fp16":0.68,"ctx":32768},"quants":null,"evidence":null,"claims":[],"diagrams":{"structure":"/diagrams/ibm-granite--granite-4.0-h-350m-structure.svg"},"history":{"points":1,"first":"2026-11-28T11:18:51Z","last":"2026-11-28T11:18:51Z"},"links":{"hf":"https://huggingface.co/ibm-granite/granite-4.0-h-350m","papers":["https://arxiv.org/abs/0000.00000"],"license":"apache-2.0"},"counters":{"downloads":8123,"likes":115,"created":"2025-10-07","modified":"2025-10-23"},"flags":{"variant":false,"gated":false,"closed_weights":false}}