{"schema_version":"1.2.0","id":"stepfun-ai/GOT-OCR-2.0-hf","snapshot":{"generated":"2026-11-27T14:50:55Z","digest":"3e3b3951a5cae62c","snapshot_id":11754},"family":{"key":"gotocr20","representative":"stepfun-ai/GOT-OCR-2.0-hf","members":2,"relation":"original"},"architecture":{"value":{"arch":"GotOcr2ForConditionalGeneration","model_type":"qwen2","layers":24,"hidden":1024,"heads":16,"kv_heads":16,"head_dim":64,"vocab":151860,"rope_theta":1000000.0,"tied_embeddings":true,"dtype":"bfloat16","attn":"MHA","gqa_ratio":1.0,"shared_experts":0,"moe_intermediate":2816,"ffn_dense":2816,"is_moe":false,"nested_config":true,"layer_types":[{"i":0,"attn_kind":"a","mlp_kind":"d","attn":"MHA","heads":16,"kv_heads":16,"head_dim":64,"ffn_dense":2816,"kv_per_token":4096}],"layer_schedule":"000000000000000000000000","layer_note":""},"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":"full attention","lines":["16 query -> 16 KV heads"],"facts":{"attn_kind":"a","attn":"MHA","heads":16,"kv_heads":16},"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 2816"],"facts":{"mlp_kind":"d","ffn_dense":2816},"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":["16 query heads x 64"],"facts":{"heads":16,"kv_heads":16,"head_dim":64},"source":"layer_types[0].heads/kv_heads/head_dim/qkv_bias"},{"id":"attention","kind":"attention","label":"full attention","lines":["every head has its own K/V","4.0 KB per token"],"facts":{"attn":"MHA","kv_per_token":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 2816"],"facts":{"ffn_dense":2816},"source":"layer_types[].ffn_dense","withheld":"the config states no activation, so the gating shape is not stated either"}],"edges":[]}},"model":{"kind":"model","label":"GotOcr2ForConditionalGeneration","nodes":[{"id":"text","kind":"text","label":"tokenized text","lines":["input"],"source":"spec.ctx"},{"id":"embedding","kind":"embedding","label":"token embedding","lines":["151,860 x 1024","tied to the LM head"],"facts":{"vocab":151860,"hidden":1024,"tied_embeddings":true},"source":"spec.vocab/hidden/tied_embeddings"},{"id":"block.0","kind":"use","label":"transformer block","lines":["full attention","dense MLP"],"facts":{"attn_kind":"a","mlp_kind":"d"},"ref":"block.0","count":24,"source":"layer_types[0]"},{"id":"norm","kind":"norm","label":"final norm","lines":["hidden 1024"],"facts":{"hidden":1024},"source":"spec.hidden"},{"id":"head","kind":"head","label":"linear output layer","lines":["1024 x 151,860","tied to the embedding"],"facts":{"vocab":151860,"hidden":1024},"source":"spec.vocab/hidden"}],"facts":{"params_total":560528640,"params_active":560528640,"kv_bytes_per_token":98304,"vocab":151860,"hidden":1024},"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":"stepfun-ai","tier":"A","foundational":true,"excluded_because":null,"family":"got","generation":"2.0","size":"<1B","role":"ocr","line":null,"ladder":["2.0","3","3.5","3.7"],"position":1,"rungs":4,"first_of_line":true,"new_rung":false},"params":{"total":560528640,"active":560528640,"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":98304,"attn_layers":24,"gb_fp16":1.12,"gb_q4":0.31,"gb_active_fp16":1.12},"quants":null,"evidence":null,"claims":[],"diagrams":{"structure":"/diagrams/stepfun-ai--GOT-OCR-2.0-hf-structure.svg"},"history":{"points":2,"first":"2026-09-22T13:37:33Z","last":"2026-11-19T10:41:27Z"},"links":{"hf":"https://huggingface.co/stepfun-ai/GOT-OCR-2.0-hf","papers":["https://arxiv.org/abs/2409.01704","https://arxiv.org/abs/2405.14295","https://arxiv.org/abs/2312.06109"],"license":"apache-2.0"},"counters":{"downloads":120434,"likes":244,"created":"2024-11-22","modified":"2025-01-31"},"flags":{"variant":false,"gated":false,"closed_weights":false}}