{"schema_version":"1.2.0","id":"unsloth/gemma-2-9b-it-bnb-4bit","snapshot":{"generated":"2026-11-27T14:50:55Z","digest":"3e3b3951a5cae62c","snapshot_id":11754},"family":{"key":"gemma29b","representative":"google/gemma-2-9b-it","members":8,"relation":"mirror"},"architecture":{"value":{"arch":"Gemma2ForCausalLM","model_type":"gemma2","layers":42,"hidden":3584,"heads":16,"kv_heads":8,"head_dim":256,"vocab":256000,"act":"gelu_pytorch_tanh","rope_theta":10000.0,"dtype":"bfloat16","attn":"GQA","gqa_ratio":2.0,"shared_experts":0,"moe_intermediate":14336,"ffn_dense":14336,"is_moe":false,"layer_types":[{"i":0,"attn_kind":"s","mlp_kind":"d","attn":"GQA","heads":16,"kv_heads":8,"head_dim":256,"window":4096,"qkv_bias":false,"ffn_dense":14336,"ffn_gate":"geglu","ffn_gate_source":"hidden_act: gelu_pytorch_tanh","norm":"rmsnorm","norm_source":"rms_norm_eps","kv_per_token":8192}],"layer_schedule":"000000000000000000000000000000000000000000","layer_note":"sliding window 4096 on every layer"},"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":"sliding attention","lines":["16 query -> 8 KV heads","window 4096"],"facts":{"attn_kind":"s","attn":"GQA","heads":16,"kv_heads":8,"window":4096},"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 14336","gelu_pytorch_tanh"],"facts":{"mlp_kind":"d","ffn_dense":14336},"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":["16 query heads x 256","8 KV heads","no bias"],"facts":{"heads":16,"kv_heads":8,"head_dim":256,"qkv_bias":false},"source":"layer_types[0].heads/kv_heads/head_dim/qkv_bias"},{"id":"attention","kind":"attention","label":"sliding attention","lines":["2:1 query heads share a KV head","window 4096 tokens - the cache stops there","8.0 KB per token"],"facts":{"attn":"GQA","kv_per_token":8192,"window":4096},"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 14336","gelu_pytorch_tanh"],"facts":{"ffn_dense":14336,"ffn_gate":"geglu","act":"gelu_pytorch_tanh"},"source":"layer_types[].ffn_gate (hidden_act: gelu_pytorch_tanh)","derived":"hidden_act: gelu_pytorch_tanh"}],"edges":[]}},"model":{"kind":"model","label":"Gemma2ForCausalLM","nodes":[{"id":"text","kind":"text","label":"tokenized text","lines":["up to 8k tokens"],"facts":{"ctx":8192},"source":"spec.ctx"},{"id":"embedding","kind":"embedding","label":"token embedding","lines":["256,000 x 3584"],"facts":{"vocab":256000,"hidden":3584},"source":"spec.vocab/hidden/tied_embeddings"},{"id":"block.0","kind":"use","label":"transformer block","lines":["sliding attention","dense MLP"],"facts":{"attn_kind":"s","mlp_kind":"d","window":4096},"ref":"block.0","count":42,"source":"layer_types[0]"},{"id":"norm","kind":"norm","label":"final norm","lines":["hidden 3584"],"facts":{"hidden":3584},"source":"spec.hidden"},{"id":"head","kind":"head","label":"linear output layer","lines":["3584 x 256,000"],"facts":{"vocab":256000,"hidden":3584},"source":"spec.vocab/hidden"}],"facts":{"params_total":9241705984,"params_active":9241705984,"kv_bytes_per_token":0,"kv_window_bytes":1409286144,"vocab":256000,"hidden":3584,"ctx":8192,"native_format":"BITSANDBYTES"},"edges":[["text","embedding"],["embedding","block.0"],["block.0","norm"],["norm","head"]]},"omissions":[]},"provenance":{"class":"derived","source":"config.json","method":"spec-v1"}},"lineage":{"org":"unsloth","tier":"C","foundational":false,"excluded_because":"repack","family":"gemma 4bit","generation":"2","size":"9B","role":"it","line":null,"rungs":0,"first_of_line":false,"new_rung":false,"base_of":"google/gemma-2-9b"},"params":{"total":9241705984,"active":9241705984,"active_ratio":1.0,"params_per_expert":null,"mtp_excluded":null,"provenance":{"class":"derived","method":"dense-identity-v1","total_from":"base-borrow-v1","from_base":"google/gemma-2-9b-it"},"withheld":null},"inference":{"kv_bytes_per_token":0,"kv_window_bytes":1409286144,"max_ctx_sliding":4096,"sliding_layers":42,"attn_layers":42,"gb_fp16":18.48,"gb_active_fp16":18.48,"ctx":8192,"native_format":"BITSANDBYTES"},"quants":null,"evidence":null,"claims":[{"field":"params.total","claim":"9b","derived":9241705984,"delta":-0.0262,"quote":"9b","source":"repo-name","source_url":"https://huggingface.co/unsloth/gemma-2-9b-it-bnb-4bit"}],"diagrams":{"structure":"/diagrams/unsloth--gemma-2-9b-it-bnb-4bit-structure.svg"},"history":{"points":2,"first":"2026-09-22T13:37:33Z","last":"2026-09-22T19:46:58Z"},"links":{"hf":"https://huggingface.co/unsloth/gemma-2-9b-it-bnb-4bit","papers":[],"license":"gemma"},"counters":{"downloads":8913,"likes":32,"created":"2024-07-03","modified":"2024-11-22"},"flags":{"variant":true,"gated":false,"closed_weights":false}}