{"schema_version":"1.2.0","id":"ibm-granite/granite-3.1-1b-a400m-base","snapshot":{"generated":"2026-11-28T10:24:03Z","digest":"8f91d0b53659d964","snapshot_id":11946},"family":{"key":"granite311ba400m","representative":"ibm-granite/granite-3.1-1b-a400m-base","members":3,"relation":"original"},"architecture":{"value":{"arch":"GraniteMoeForCausalLM","model_type":"granitemoe","layers":24,"hidden":1024,"heads":16,"kv_heads":8,"head_dim":64,"vocab":49152,"act":"silu","rope_theta":1500000.0,"tied_embeddings":true,"dtype":"bfloat16","attn":"GQA","gqa_ratio":2.0,"moe_layers":24,"experts":32,"experts_per_tok":8,"shared_experts":0,"moe_intermediate":512,"is_moe":true,"layer_types":[{"i":0,"attn_kind":"a","mlp_kind":"?","attn":"GQA","heads":16,"kv_heads":8,"head_dim":64,"qkv_bias":false,"norm":"rmsnorm","norm_source":"rms_norm_eps","kv_per_token":2048}],"layer_schedule":"000000000000000000000000","layer_note":"24 of 24 MoE \u2014 positions not stated"},"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":["16 query -> 8 KV heads"],"facts":{"attn_kind":"a","attn":"GQA","heads":16,"kv_heads":8},"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","silu"],"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 config does not say which layers route to experts"]},"attention.0":{"kind":"attention","label":"GQA","nodes":[{"id":"qkv","kind":"qkv","label":"QKV projection","lines":["16 query heads x 64","8 KV heads","no bias"],"facts":{"heads":16,"kv_heads":8,"head_dim":64,"qkv_bias":false},"source":"layer_types[0].heads/kv_heads/head_dim/qkv_bias"},{"id":"attention","kind":"attention","label":"full attention","lines":["2: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":"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":"GraniteMoeForCausalLM","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":["49,152 x 1024","tied to the LM head"],"facts":{"vocab":49152,"hidden":1024,"tied_embeddings":true},"source":"spec.vocab/hidden/tied_embeddings"},{"id":"block.0","kind":"use","label":"transformer block","lines":["full attention","MLP kind not stated"],"facts":{"attn_kind":"a","mlp_kind":"?"},"ref":"block.0","count":24,"source":"layer_types[0]","withheld":"part of this block's kind is not recognised"},{"id":"norm","kind":"norm","label":"final norm","lines":["hidden 1024"],"facts":{"hidden":1024},"source":"spec.hidden"},{"id":"head","kind":"head","label":"linear output layer","lines":["1024 x 49,152","tied to the embedding"],"facts":{"vocab":49152,"hidden":1024},"source":"spec.vocab/hidden"}],"facts":{"params_total":1334625280,"params_active":428655616,"kv_bytes_per_token":49152,"vocab":49152,"hidden":1024,"ctx":131072},"edges":[["text","embedding"],["embedding","block.0"],["block.0","norm"],["norm","head"]]},"omissions":[]},"provenance":{"class":"derived","source":"config.json","method":"spec-v1"}},"lineage":{"org":"ibm-granite","tier":"A","foundational":true,"excluded_because":null,"family":"granite a400m","generation":"3.1","size":"1B","role":"base","line":null,"ladder":["3.1","4.0","4.1","4.2"],"position":1,"rungs":4,"first_of_line":true,"new_rung":false},"params":{"total":1334625280,"active":428655616,"active_ratio":0.3212,"params_per_expert":1572864,"mtp_excluded":null,"provenance":{"class":"derived","method":"moe-subtract-v1","total_from":"safetensors-header-v1","from_base":null},"withheld":null},"inference":{"kv_bytes_per_token":49152,"attn_layers":24,"gb_fp16":2.67,"gb_q4":0.73,"gb_active_fp16":0.86,"ctx":131072},"quants":null,"evidence":null,"claims":[{"field":"params.total","claim":"1b","derived":1334625280,"delta":-0.2507,"quote":"1b","source":"repo-name","source_url":"https://huggingface.co/ibm-granite/granite-3.1-1b-a400m-base"}],"diagrams":{"structure":"/diagrams/ibm-granite--granite-3.1-1b-a400m-base-structure.svg"},"history":{"points":2,"first":"2026-11-26T10:19:23Z","last":"2026-11-28T10:24:03Z"},"links":{"hf":"https://huggingface.co/ibm-granite/granite-3.1-1b-a400m-base","papers":["https://arxiv.org/abs/0000.00000"],"license":"apache-2.0"},"counters":{"downloads":11482,"likes":14,"created":"2024-12-06","modified":"2025-01-31"},"flags":{"variant":false,"gated":false,"closed_weights":false}}