{"schema_version":"1.2.0","id":"google/gemma-3-4b-pt","snapshot":{"generated":"2026-11-27T14:50:55Z","digest":"3e3b3951a5cae62c","snapshot_id":11754},"family":{"key":"gemma34bpt","representative":"google/gemma-3-4b-pt","members":2,"relation":"original"},"architecture":{"value":{"arch":"Gemma3ForConditionalGeneration","model_type":"gemma3_text","layers":34,"hidden":2560,"rope_theta":{"factor":8.0,"rope_type":"linear"},"dtype":"bfloat16","attn":"MHA","shared_experts":0,"moe_intermediate":10240,"ffn_dense":10240,"is_moe":false,"nested_config":true,"layer_types":[{"i":0,"attn_kind":"s","mlp_kind":"d","attn":"MHA","window":1024,"ffn_dense":10240}],"layer_schedule":"0000000000000000000000000000000000","layer_note":"sliding window 1024 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":"norm","lines":["type not stated"],"withheld":"no norm key in the config, so the type cannot be told"},{"id":"attention","kind":"use","label":"sliding attention","lines":["grouping not stated","window 1024"],"facts":{"attn_kind":"s","attn":"MHA","window":1024},"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 10240"],"facts":{"mlp_kind":"d","ffn_dense":10240},"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":"MHA","nodes":[{"id":"qkv","kind":"qkv","label":"QKV projection","lines":["head count not stated"],"source":"layer_types[0].heads/kv_heads/head_dim/qkv_bias"},{"id":"attention","kind":"attention","label":"sliding attention","lines":["grouping not stated","window 1024 tokens - the cache stops there"],"facts":{"attn":"MHA","window":1024},"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 10240"],"facts":{"ffn_dense":10240},"source":"layer_types[].ffn_dense","withheld":"the config states no activation, so the gating shape is not stated either"}],"edges":[]}},"model":{"kind":"model","label":"Gemma3ForConditionalGeneration","nodes":[{"id":"text","kind":"text","label":"tokenized text","lines":["input"],"source":"spec.ctx"},{"id":"embedding","kind":"embedding","label":"token embedding","lines":["embedding"],"facts":{"hidden":2560},"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":1024},"ref":"block.0","count":34,"source":"layer_types[0]"},{"id":"norm","kind":"norm","label":"final norm","lines":["hidden 2560"],"facts":{"hidden":2560},"source":"spec.hidden"},{"id":"head","kind":"head","label":"linear output layer","lines":["vocabulary projection"],"facts":{"hidden":2560},"source":"spec.vocab/hidden"}],"facts":{"params_total":4300079472,"params_active":4300079472,"hidden":2560},"edges":[["text","embedding"],["embedding","block.0"],["block.0","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@mlx-community/gemma-3-4b-it-8bit","method":"spec-v1","inherited_from":"mlx-community/gemma-3-4b-it-8bit"}},"lineage":{"org":"google","tier":"A","foundational":true,"excluded_because":null,"family":"gemma pt","generation":"3","size":"4B","role":null,"line":null,"ladder":["2","3","4"],"position":2,"rungs":3,"predecessor":{"repo":"google/gemma-2-9b","generation":"2","size":"9B"},"delta":["layers 42\u219234","heads 16x8x256\u2192not stated"],"first_of_line":false,"new_rung":false},"params":{"total":4300079472,"active":4300079472,"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":{"max_ctx_sliding":1024,"sliding_layers":34,"attn_layers":34,"gb_fp16":8.6,"gb_q4":2.37,"gb_active_fp16":8.6},"quants":null,"evidence":{"provider_meta":{"open_weights":true,"release_date":"2025-03-12","ctx":131072,"cost_in":0.04,"cost_out":0.05,"reasoning":false,"tool_call":false,"measured_as":"Gemma 3 4B IT"}},"claims":[{"field":"params.total","claim":"4b","derived":4300079472,"delta":-0.0698,"quote":"4b","source":"repo-name","source_url":"https://huggingface.co/google/gemma-3-4b-pt"}],"diagrams":{"structure":"/diagrams/google--gemma-3-4b-pt-structure.svg"},"history":{"points":3,"first":"2026-09-22T13:37:33Z","last":"2026-10-31T14:45:36Z"},"links":{"hf":"https://huggingface.co/google/gemma-3-4b-pt","papers":["https://arxiv.org/abs/1905.07830","https://arxiv.org/abs/1905.10044","https://arxiv.org/abs/1911.11641","https://arxiv.org/abs/1904.09728","https://arxiv.org/abs/1705.03551","https://arxiv.org/abs/1911.01547","https://arxiv.org/abs/1907.10641","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/2311.12022","https://arxiv.org/abs/2108.07732","https://arxiv.org/abs/2107.03374","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/2312.11805"],"license":"gemma"},"counters":{"downloads":102864,"likes":180,"created":"2025-02-20","modified":"2025-03-21"},"flags":{"variant":false,"gated":"manual","closed_weights":false}}