{"schema_version":"1.2.0","id":"google/gemma-3-270m","snapshot":{"generated":"2026-11-27T14:50:55Z","digest":"3e3b3951a5cae62c","snapshot_id":11754},"family":{"key":"gemma3270m","representative":"google/gemma-3-270m","members":4,"relation":"original"},"architecture":{"value":{"arch":"Gemma3ForCausalLM","model_type":"gemma3_text","layers":18,"hidden":640,"heads":4,"kv_heads":1,"head_dim":256,"vocab":262144,"rope_theta":1000000.0,"dtype":"bfloat16","attn":"GQA","gqa_ratio":4.0,"shared_experts":0,"moe_intermediate":2048,"ffn_dense":2048,"is_moe":false,"layer_types":[{"i":0,"attn_kind":"s","mlp_kind":"d","attn":"GQA","heads":4,"kv_heads":1,"head_dim":256,"window":512,"qkv_bias":false,"ffn_dense":2048,"norm":"rmsnorm","norm_source":"rms_norm_eps","kv_per_token":1024},{"i":1,"attn_kind":"a","mlp_kind":"d","attn":"GQA","heads":4,"kv_heads":1,"head_dim":256,"qkv_bias":false,"ffn_dense":2048,"norm":"rmsnorm","norm_source":"rms_norm_eps","kv_per_token":1024}],"layer_schedule":"000001000001000001","layer_note":"attention per layer from `layer_types` (15 sliding, 3 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 -> 1 KV heads","window 512"],"facts":{"attn_kind":"s","attn":"GQA","heads":4,"kv_heads":1,"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 -> 1 KV heads"],"facts":{"attn_kind":"a","attn":"GQA","heads":4,"kv_heads":1},"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","1 KV heads","no bias"],"facts":{"heads":4,"kv_heads":1,"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":["4:1 query heads share a KV head","window 512 tokens - the cache stops there","1.0 KB per token"],"facts":{"attn":"GQA","kv_per_token":1024,"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","1 KV heads","no bias"],"facts":{"heads":4,"kv_heads":1,"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":["4: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"],"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":"Gemma3ForCausalLM","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":["262,144 x 640"],"facts":{"vocab":262144,"hidden":640},"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":15,"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":3,"source":"layer_types[1]"},{"id":"norm","kind":"norm","label":"final norm","lines":["hidden 640"],"facts":{"hidden":640},"source":"spec.hidden"},{"id":"head","kind":"head","label":"linear output layer","lines":["640 x 262,144"],"facts":{"vocab":262144,"hidden":640},"source":"spec.vocab/hidden"}],"facts":{"params_total":268098176,"params_active":268098176,"kv_bytes_per_token":3072,"kv_window_bytes":7864320,"vocab":262144,"hidden":640,"ctx":32768},"edges":[["text","embedding"],["embedding","block.0"],["block.0","block.1"],["block.1","norm"],["norm","head"]]},"omissions":[]},"provenance":{"class":"derived","source":"config.json@unsloth/gemma-3-270m-it","method":"spec-v1","inherited_from":"unsloth/gemma-3-270m-it"}},"lineage":{"org":"google","tier":"A","foundational":true,"excluded_because":null,"family":"gemma 270m","generation":"3","size":"<1B","role":null,"line":null,"ladder":["2","3","4"],"position":2,"rungs":3,"first_of_line":false,"new_rung":true},"params":{"total":268098176,"active":268098176,"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":3072,"kv_window_bytes":7864320,"max_ctx_sliding":512,"sliding_layers":15,"attn_layers":18,"gb_fp16":0.54,"gb_q4":0.15,"gb_active_fp16":0.54,"ctx":32768},"quants":null,"evidence":null,"claims":[],"diagrams":{"structure":"/diagrams/google--gemma-3-270m-structure.svg"},"history":{"points":5,"first":"2026-09-16T15:22:25Z","last":"2026-11-02T10:48:45Z"},"links":{"hf":"https://huggingface.co/google/gemma-3-270m","papers":["https://arxiv.org/abs/2503.19786","https://arxiv.org/abs/1905.07830","https://arxiv.org/abs/1905.10044","https://arxiv.org/abs/1911.11641","https://arxiv.org/abs/1705.03551","https://arxiv.org/abs/1911.01547","https://arxiv.org/abs/1907.10641","https://arxiv.org/abs/2311.07911","https://arxiv.org/abs/2311.12022","https://arxiv.org/abs/2411.04368","https://arxiv.org/abs/1904.09728","https://arxiv.org/abs/1903.00161","https://arxiv.org/abs/2009.03300","https://arxiv.org/abs/2304.06364","https://arxiv.org/abs/2103.03874","https://arxiv.org/abs/2110.14168","https://arxiv.org/abs/2108.07732","https://arxiv.org/abs/2107.03374","https://arxiv.org/abs/2403.07974","https://arxiv.org/abs/2305.03111","https://arxiv.org/abs/2405.04520","https://arxiv.org/abs/2210.03057","https://arxiv.org/abs/2106.03193","https://arxiv.org/abs/1910.11856","https://arxiv.org/abs/2502.12404","https://arxiv.org/abs/2502.21228","https://arxiv.org/abs/2404.16816","https://arxiv.org/abs/2104.12756","https://arxiv.org/abs/2311.16502","https://arxiv.org/abs/2203.10244","https://arxiv.org/abs/2404.12390","https://arxiv.org/abs/1810.12440","https://arxiv.org/abs/1908.02660","https://arxiv.org/abs/2310.02255","https://arxiv.org/abs/2312.11805"],"license":"gemma"},"counters":{"downloads":93377,"likes":1164,"created":"2025-08-05","modified":"2025-08-14"},"flags":{"variant":false,"gated":"manual","closed_weights":false}}