{"schema_version":"1.2.0","id":"google/gemma-4-E4B-it-assistant","snapshot":{"generated":"2026-11-27T14:50:55Z","digest":"3e3b3951a5cae62c","snapshot_id":11754},"family":{"key":null,"representative":"google/gemma-4-E4B-it-assistant","members":1,"relation":"original"},"architecture":{"value":{"arch":"gemma4_text","model_type":"gemma4_text","layers":4,"hidden":256,"heads":4,"kv_heads":2,"head_dim":256,"vocab":262144,"tied_embeddings":true,"attn":"GQA","gqa_ratio":2.0,"shared_experts":0,"moe_intermediate":2048,"ffn_dense":2048,"is_moe":false,"nested_config":true,"layer_types":[{"i":0,"attn_kind":"s","mlp_kind":"d","attn":"GQA","heads":4,"kv_heads":2,"head_dim":256,"window":512,"qkv_bias":false,"ffn_dense":2048,"norm":"rmsnorm","norm_source":"rms_norm_eps","kv_per_token":2048},{"i":1,"attn_kind":"a","mlp_kind":"d","attn":"GQA","heads":4,"kv_heads":2,"head_dim":256,"qkv_bias":false,"ffn_dense":2048,"norm":"rmsnorm","norm_source":"rms_norm_eps","kv_per_token":2048}],"layer_schedule":"0001","layer_note":"attention per layer from `layer_types` (3 sliding, 1 full)"},"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":"sliding attention","lines":["4 query -> 2 KV heads","window 512"],"facts":{"attn_kind":"s","attn":"GQA","heads":4,"kv_heads":2,"window":512},"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"],"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":[]},"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":["4 query -> 2 KV heads"],"facts":{"attn_kind":"a","attn":"GQA","heads":4,"kv_heads":2},"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"],"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":"GQA","nodes":[{"id":"qkv","kind":"qkv","label":"QKV projection","lines":["4 query heads x 256","2 KV heads","no bias"],"facts":{"heads":4,"kv_heads":2,"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 512 tokens - the cache stops there","2.0 KB per token"],"facts":{"attn":"GQA","kv_per_token":2048,"window":512},"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 2048"],"facts":{"ffn_dense":2048},"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":["4 query heads x 256","2 KV heads","no bias"],"facts":{"heads":4,"kv_heads":2,"head_dim":256,"qkv_bias":false},"source":"layer_types[1].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[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"],"facts":{"ffn_dense":2048},"source":"layer_types[].ffn_dense","withheld":"the config states no activation, so the gating shape is not stated either"}],"edges":[]}},"model":{"kind":"model","label":"gemma4_text","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":["262,144 x 256","tied to the LM head"],"facts":{"vocab":262144,"hidden":256,"tied_embeddings":true},"source":"spec.vocab/hidden/tied_embeddings"},{"id":"block.0","kind":"use","label":"block type 0","lines":["sliding attention","dense MLP"],"facts":{"attn_kind":"s","mlp_kind":"d","window":512},"ref":"block.0","count":3,"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":1,"source":"layer_types[1]"},{"id":"norm","kind":"norm","label":"final norm","lines":["hidden 256"],"facts":{"hidden":256},"source":"spec.hidden"},{"id":"head","kind":"head","label":"linear output layer","lines":["256 x 262,144","tied to the embedding"],"facts":{"vocab":262144,"hidden":256},"source":"spec.vocab/hidden"}],"facts":{"params_total":78779908,"params_active":78779908,"kv_bytes_per_token":2048,"kv_window_bytes":3145728,"vocab":262144,"hidden":256,"ctx":131072},"edges":[["text","embedding"],["embedding","block.0"],["block.0","block.1"],["block.1","norm"],["norm","head"]]},"omissions":["this record is a multi-modal checkpoint - the text decoder is shown, the other towers are not sized here"]},"provenance":{"class":"derived","source":"config.json","method":"spec-v1"}},"lineage":{"org":"google","tier":"A","foundational":false,"excluded_because":"role","family":"gemma e4b assistant","generation":"4","size":"<1B","role":"it","line":null,"ladder":["2","3","4"],"position":3,"rungs":3,"first_of_line":false,"new_rung":false},"params":{"total":78779908,"active":78779908,"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":2048,"kv_window_bytes":3145728,"max_ctx_sliding":512,"sliding_layers":3,"attn_layers":4,"gb_fp16":0.16,"gb_q4":0.04,"gb_active_fp16":0.16,"ctx":131072},"quants":null,"evidence":null,"claims":[],"diagrams":{"structure":"/diagrams/google--gemma-4-E4B-it-assistant-structure.svg"},"history":{"points":3,"first":"2026-09-16T15:22:25Z","last":"2026-09-22T19:46:58Z"},"links":{"hf":"https://huggingface.co/google/gemma-4-E4B-it-assistant","papers":["https://arxiv.org/abs/2607.02770"],"license":"apache-2.0"},"counters":{"downloads":20323,"likes":138,"created":"2026-04-23","modified":"2026-07-15"},"flags":{"variant":false,"gated":false,"closed_weights":false}}