{"schema_version":"1.2.0","id":"deepseek-ai/DeepSeek-V4-Flash-DSpark","snapshot":{"generated":"2026-11-27T14:50:55Z","digest":"3e3b3951a5cae62c","snapshot_id":11754},"family":{"key":null,"representative":"deepseek-ai/DeepSeek-V4-Flash-DSpark","members":1,"relation":"original"},"architecture":{"value":{"arch":"DeepseekV4ForCausalLM","model_type":"deepseek_v4","layers":43,"hidden":4096,"heads":64,"kv_heads":1,"head_dim":512,"vocab":129280,"act":"silu","rope_theta":10000,"tied_embeddings":false,"dtype":"bfloat16","attn":"GQA","gqa_ratio":64.0,"moe_layers":43,"experts":256,"experts_per_tok":6,"shared_experts":1,"moe_intermediate":2048,"is_moe":true,"layer_types":[{"i":0,"attn_kind":"s","mlp_kind":"?","attn":"GQA","heads":64,"kv_heads":1,"head_dim":512,"qk_rope_head_dim":64,"window":128,"qkv_bias":false,"norm":"rmsnorm","norm_source":"rms_norm_eps","kv_per_token":2048}],"layer_schedule":"0000000000000000000000000000000000000000000","layer_note":"sliding window 128 on every layer; 43 of 43 MoE \u2014 positions not stated"},"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":"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":["64 query -> 1 KV heads","window 128"],"facts":{"attn_kind":"s","attn":"GQA","heads":64,"kv_heads":1,"window":128},"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"]},"attention.0":{"kind":"attention","label":"GQA","nodes":[{"id":"qkv","kind":"qkv","label":"QKV projection","lines":["64 query heads x 512","1 KV heads","no bias"],"facts":{"heads":64,"kv_heads":1,"head_dim":512,"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":"attention","kind":"attention","label":"sliding attention","lines":["64:1 query heads share a KV head","window 128 tokens - the cache stops there","2.0 KB per token"],"facts":{"attn":"GQA","kv_per_token":2048,"window":128},"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"]]},"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":[]}},"model":{"kind":"model","label":"DeepseekV4ForCausalLM","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":["129,280 x 4096"],"facts":{"vocab":129280,"hidden":4096,"tied_embeddings":false},"source":"spec.vocab/hidden/tied_embeddings"},{"id":"block.0","kind":"use","label":"transformer block","lines":["sliding attention","MLP kind not stated"],"facts":{"attn_kind":"s","mlp_kind":"?","window":128},"ref":"block.0","count":43,"source":"layer_types[0]","withheld":"part of this block's kind is not recognised"},{"id":"norm","kind":"norm","label":"final norm","lines":["hidden 4096"],"facts":{"hidden":4096},"source":"spec.hidden"},{"id":"head","kind":"head","label":"linear output layer","lines":["4096 x 129,280"],"facts":{"vocab":129280,"hidden":4096},"source":"spec.vocab/hidden"}],"facts":{"params_total":304180418494,"params_active":27205359550,"kv_bytes_per_token":0,"kv_window_bytes":11272192,"vocab":129280,"hidden":4096,"ctx":1048576,"native_format":"FP8"},"edges":[["text","embedding"],["embedding","block.0"],["block.0","norm"],["norm","head"]]},"omissions":["1 multi-token-prediction layer on top of the stack (published as `mtp_layers`)"]},"provenance":{"class":"derived","source":"config.json","method":"spec-v1"}},"lineage":{"org":"deepseek-ai","tier":"A","foundational":true,"excluded_because":null,"family":"deepseek","generation":"4","size":"300B-1T","role":null,"line":"flash dspark","ladder":["1","1.3","2","3","3.1","3.2","4","4.1","4.1.1017"],"position":7,"rungs":9,"first_of_line":false,"new_rung":true},"params":{"total":304180418494,"active":27205359550,"active_ratio":0.0894,"params_per_expert":25165824,"mtp_excluded":6442450944,"provenance":{"class":"derived","method":"moe-subtract-mtp-v1","total_from":"safetensors-header-v1","from_base":null},"withheld":null},"inference":{"kv_bytes_per_token":0,"kv_window_bytes":11272192,"max_ctx_sliding":128,"sliding_layers":43,"attn_layers":43,"gb_fp16":608.36,"gb_active_fp16":54.41,"ctx":1048576,"native_format":"FP8"},"quants":null,"evidence":null,"claims":[],"diagrams":{"structure":"/diagrams/deepseek-ai--DeepSeek-V4-Flash-DSpark-structure.svg"},"history":{"points":3,"first":"2026-09-16T15:22:25Z","last":"2026-11-25T21:21:23Z"},"links":{"hf":"https://huggingface.co/deepseek-ai/DeepSeek-V4-Flash-DSpark","papers":["https://arxiv.org/abs/2606.19348"],"license":"mit"},"counters":{"downloads":167674,"likes":307,"created":"2026-06-27","modified":"2026-07-04"},"flags":{"variant":false,"gated":false,"closed_weights":false}}