{"schema_version":"1.2.0","id":"tencent/Hy4-flash","snapshot":{"generated":"2026-11-27T14:50:55Z","digest":"3e3b3951a5cae62c","snapshot_id":11754},"family":{"key":"hy4flash","representative":"tencent/Hy4-flash","members":2,"relation":"original"},"architecture":{"value":{"arch":"HYV4FlashForCausalLM","model_type":"hy_v4_flash","layers":42,"hidden":3072,"heads":32,"kv_heads":32,"head_dim":64,"vocab":120832,"act":"silu","tied_embeddings":false,"attn":"MLA","gqa_ratio":1.0,"experts":512,"experts_per_tok":16,"shared_experts":1,"moe_intermediate":1536,"ffn_dense":13824,"is_moe":true,"nested_config":true,"layer_types":[{"i":0,"attn_kind":"a","mlp_kind":"?","attn":"MLA","heads":32,"kv_heads":32,"head_dim":64,"kv_lora_rank":512,"qk_rope_head_dim":64,"sparse":true,"index_n_heads":16,"index_head_dim":128,"index_topk":2048,"qkv_bias":false,"norm":"rmsnorm","norm_source":"rms_norm_eps","kv_per_token":1152},{"i":1,"attn_kind":"s","mlp_kind":"?","attn":"MLA","heads":32,"kv_heads":32,"head_dim":64,"kv_lora_rank":512,"qk_rope_head_dim":64,"window":512,"qkv_bias":false,"norm":"rmsnorm","norm_source":"rms_norm_eps","kv_per_token":1152}],"layer_schedule":"001110111011101110111011101110111011101110","layer_note":"attention per layer from `layer_types` (30 sliding, 12 full); expert positions not stated (layout not modelled)"},"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":"attention - MLA + sparse","lines":["latent 512 + rope 64","selects a sparse subset of keys"],"facts":{"attn_kind":"a","attn":"MLA","heads":32,"kv_heads":32},"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":"MLP kind not stated","lines":["width not stated","silu"],"facts":{"mlp_kind":"?"},"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":["the config does not say which layers route to experts"]},"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":"attention - MLA","lines":["latent 512 + rope 64","window 512"],"facts":{"attn_kind":"s","attn":"MLA","heads":32,"kv_heads":32,"window":512},"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":"MLP kind not stated","lines":["width not stated","silu"],"facts":{"mlp_kind":"?"},"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":["the config does not say which layers route to experts"]},"attention.0":{"kind":"attention","label":"MLA","nodes":[{"id":"qkv","kind":"qkv","label":"QKV projection","lines":["32 query heads x 64","no bias"],"facts":{"heads":32,"kv_heads":32,"head_dim":64,"qkv_bias":false},"source":"layer_types[0].heads/kv_heads/head_dim/qkv_bias"},{"id":"rope","kind":"rope","label":"rope","lines":["decoupled dim 64"],"facts":{"qk_rope_head_dim":64},"source":"layer_types[0].qk_rope_head_dim"},{"id":"indexer","kind":"indexer","label":"sparse indexer","lines":["16 heads - dim 128","selects 2,048 keys"],"facts":{"index_n_heads":16,"index_head_dim":128,"index_topk":2048},"source":"layer_types[0].index_n_heads/index_head_dim/index_topk"},{"id":"attention","kind":"attention","label":"attention - MLA + sparse","lines":["latent 512 + rope 64","a learned latent, not full K/V","1.1 KB per token"],"facts":{"attn":"MLA","kv_lora_rank":512,"kv_per_token":1152},"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"],["rope","attention"],["indexer","attention"]]},"mlp.0":{"kind":"mlp","label":"MLP kind not stated","nodes":[{"id":"ffn","kind":"ffn","label":"MLP","lines":["kind not stated"],"withheld":"the config does not say which layers route to experts, so neither shape can be drawn"}],"edges":[]},"attention.1":{"kind":"attention","label":"MLA","nodes":[{"id":"qkv","kind":"qkv","label":"QKV projection","lines":["32 query heads x 64","no bias"],"facts":{"heads":32,"kv_heads":32,"head_dim":64,"qkv_bias":false},"source":"layer_types[1].heads/kv_heads/head_dim/qkv_bias"},{"id":"rope","kind":"rope","label":"rope","lines":["decoupled dim 64"],"facts":{"qk_rope_head_dim":64},"source":"layer_types[1].qk_rope_head_dim"},{"id":"attention","kind":"attention","label":"attention - MLA","lines":["latent 512 + rope 64","a learned latent, not full K/V","window 512 tokens - the cache stops there","1.1 KB per token"],"facts":{"attn":"MLA","kv_lora_rank":512,"kv_per_token":1152,"window":512},"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"],["rope","attention"]]},"mlp.1":{"kind":"mlp","label":"MLP kind not stated","nodes":[{"id":"ffn","kind":"ffn","label":"MLP","lines":["kind not stated"],"withheld":"the config does not say which layers route to experts, so neither shape can be drawn"}],"edges":[]}},"model":{"kind":"model","label":"HYV4FlashForCausalLM","nodes":[{"id":"text","kind":"text","label":"tokenized text","lines":["up to 1024k tokens"],"facts":{"ctx":1048576},"source":"spec.ctx"},{"id":"embedding","kind":"embedding","label":"token embedding","lines":["120,832 x 3072"],"facts":{"vocab":120832,"hidden":3072,"tied_embeddings":false},"source":"spec.vocab/hidden/tied_embeddings"},{"id":"block.0","kind":"use","label":"block type 0","lines":["full attention","MLP kind not stated"],"facts":{"attn_kind":"a","mlp_kind":"?"},"ref":"block.0","count":12,"source":"layer_types[0]","withheld":"part of this block's kind is not recognised"},{"id":"block.1","kind":"use","label":"block type 1","lines":["sliding attention","MLP kind not stated"],"facts":{"attn_kind":"s","mlp_kind":"?","window":512},"ref":"block.1","count":30,"source":"layer_types[1]","withheld":"part of this block's kind is not recognised"},{"id":"norm","kind":"norm","label":"final norm","lines":["hidden 3072"],"facts":{"hidden":3072},"source":"spec.hidden"},{"id":"head","kind":"head","label":"linear output layer","lines":["3072 x 120,832"],"facts":{"vocab":120832,"hidden":3072},"source":"spec.vocab/hidden"}],"facts":{"params_total":220251201958,"kv_bytes_per_token":13824,"kv_window_bytes":17694720,"vocab":120832,"hidden":3072,"ctx":1048576},"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":"tencent","tier":"A","foundational":true,"excluded_because":null,"family":"hy","generation":"4","size":"100-300B","role":null,"line":"flash","ladder":["2","3","4"],"position":3,"rungs":3,"first_of_line":false,"new_rung":true},"params":{"total":220251201958,"active":null,"active_ratio":null,"params_per_expert":null,"mtp_excluded":null,"provenance":{"class":"derived","method":"moe-subtract-v1","total_from":"safetensors-header-v1","from_base":null},"withheld":[{"field":"params.active","reason":"unmodelled expert layout (hybrid/grouped/partial-layer MoE)"}]},"inference":{"kv_bytes_per_token":13824,"kv_window_bytes":17694720,"max_ctx_sliding":512,"sliding_layers":30,"attn_layers":42,"gb_fp16":440.5,"gb_q4":121.14,"ctx":1048576},"quants":null,"evidence":{"provider_meta":{"open_weights":true,"release_date":"2026-11-16","ctx":1048576,"cost_in":0.07142857,"cost_out":0.28571429,"reasoning":true,"tool_call":true,"measured_as":"Hy4 flash"}},"claims":[],"diagrams":{"structure":"/diagrams/tencent--Hy4-flash-structure.svg"},"history":{"points":1,"first":"2026-11-24T12:09:39Z","last":"2026-11-24T12:09:39Z"},"links":{"hf":"https://huggingface.co/tencent/Hy4-flash","papers":[],"license":"other"},"counters":{"downloads":12933,"likes":750,"created":"2026-11-17","modified":"2026-11-26"},"flags":{"variant":false,"gated":false,"closed_weights":false}}