{"schema_version":"1.2.0","id":"mlx-community/gemma-3-12b-it-4bit","snapshot":{"generated":"2026-11-27T14:50:55Z","digest":"3e3b3951a5cae62c","snapshot_id":11754},"family":{"key":"gemma312bpt","representative":"google/gemma-3-12b-pt","members":2,"relation":"role"},"architecture":{"value":{"arch":"Gemma3ForConditionalGeneration","model_type":"gemma3_text","layers":48,"hidden":3840,"heads":16,"kv_heads":8,"head_dim":240,"rope_theta":{"factor":8.0,"rope_type":"linear"},"dtype":"bfloat16","attn":"GQA","gqa_ratio":2.0,"shared_experts":0,"moe_intermediate":15360,"ffn_dense":15360,"is_moe":false,"nested_config":true,"layer_types":[{"i":0,"attn_kind":"s","mlp_kind":"d","attn":"GQA","heads":16,"kv_heads":8,"head_dim":240,"window":1024,"ffn_dense":15360,"kv_per_token":7680}],"layer_schedule":"000000000000000000000000000000000000000000000000","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":["16 query -> 8 KV heads","window 1024"],"facts":{"attn_kind":"s","attn":"GQA","heads":16,"kv_heads":8,"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 15360"],"facts":{"mlp_kind":"d","ffn_dense":15360},"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 240","8 KV heads"],"facts":{"heads":16,"kv_heads":8,"head_dim":240},"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 1024 tokens - the cache stops there","7.5 KB per token"],"facts":{"attn":"GQA","kv_per_token":7680,"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 15360"],"facts":{"ffn_dense":15360},"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":3840},"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":48,"source":"layer_types[0]"},{"id":"norm","kind":"norm","label":"final norm","lines":["hidden 3840"],"facts":{"hidden":3840},"source":"spec.hidden"},{"id":"head","kind":"head","label":"linear output layer","lines":["vocabulary projection"],"facts":{"hidden":3840},"source":"spec.vocab/hidden"}],"facts":{"params_total":12187325040,"params_active":12187325040,"kv_bytes_per_token":0,"kv_window_bytes":377487360,"hidden":3840},"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","method":"spec-v1"}},"lineage":{"org":"mlx-community","tier":"C","foundational":false,"excluded_because":"repack","family":"gemma 4bit","generation":"3","size":"12B","role":"it","line":null,"rungs":0,"first_of_line":false,"new_rung":false,"base_of":"google/gemma-3-12b-pt"},"params":{"total":12187325040,"active":12187325040,"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-3-12b-pt"},"withheld":null},"inference":{"kv_bytes_per_token":0,"kv_window_bytes":377487360,"max_ctx_sliding":1024,"sliding_layers":48,"attn_layers":48,"gb_fp16":24.37,"gb_active_fp16":24.37},"quants":null,"evidence":{"provider_meta":{"open_weights":true,"release_date":"2025-03-12","ctx":131072,"cost_in":0.04,"cost_out":0.12,"reasoning":false,"tool_call":true,"measured_as":"Gemma 3 12B IT"}},"claims":[{"field":"params.total","claim":"12b","derived":12187325040,"delta":-0.0154,"quote":"12b","source":"repo-name","source_url":"https://huggingface.co/mlx-community/gemma-3-12b-it-4bit"}],"diagrams":{"structure":"/diagrams/mlx-community--gemma-3-12b-it-4bit-structure.svg"},"history":{"points":3,"first":"2026-09-22T13:37:33Z","last":"2026-09-22T19:46:58Z"},"links":{"hf":"https://huggingface.co/mlx-community/gemma-3-12b-it-4bit","papers":[],"license":"gemma"},"counters":{"downloads":15592,"likes":8,"created":"2025-03-12","modified":"2025-03-19"},"flags":{"variant":true,"gated":false,"closed_weights":false}}