{
  "purpose": "Analytical illustrations and independent capacity arithmetic; no hardware measurements.",
  "units": {"GB": 1000000000, "GiB": 1073741824, "Gb_per_s_to_GB_per_s": "divide by 8", "k_context_tokens": 1024, "multiply_add_flop": 2},
  "standard_kv": {"layers": 32, "kv_heads": 8, "head_dimension": 128, "bytes_per_element": 2, "dtype": "BF16", "formula": "2 * layers * sequences * context_tokens * kv_heads * head_dimension * bytes_per_element", "excludes": ["MLA compressed layout", "sliding-window layers", "padding", "block metadata", "replication", "allocator reserve"]},
  "moe_coverage": {"scope": "one hypothetical MoE layer", "routed_experts": 64, "experts_per_token": 8, "tokens_independent": true, "choices_within_token": "uniform without replacement", "formula": "E * (1 - (1 - k/E)^B)", "not_a_deepseek_configuration": true},
  "roofline": {"effective_bandwidth_bytes_per_second": 600000000000, "effective_linear_compute_flops_per_second": 80000000000000, "weight_bytes_per_parameter": 0.5, "intensity_formula": "2 * B / b_weight", "excludes": ["KV traffic", "activation traffic", "dequantization", "attention FLOPs"]},
  "batching": {"weight_bytes_read_per_step": 4000000000, "linear_flops_per_token": 16000000000, "effective_bandwidth_bytes_per_second": 600000000000, "effective_linear_compute_flops_per_second": 80000000000000, "fixed_seconds_per_step": 0.0002, "active_sequences": [1,128], "static_figure_context_tokens": [128,2048,16384], "formula": "max((W + B * KV_per_sequence) / BW, B * F_linear / C) + t0", "capacity_limit_applied": false, "assumptions": ["all weights read once per step", "all required KV read once per sequence per step", "ideal overlap of modeled compute and memory"], "excludes": ["attention FLOPs", "queueing", "prefill interference", "communication", "dequantization", "additional runtime workspace"]},
  "speculation": {"baseline_target_ms": 10, "draft_ms_per_token": 0.8, "verification_ms": "10 + 0.4*K", "draft_lengths": [2,4,8,12], "conditional_acceptance_alpha": [0,1], "expected_committed_tokens": "1 + alpha + alpha^2 + ... + alpha^K", "speedup": "expected_committed_tokens * baseline_target_ms / (K*draft_ms_per_token + verification_ms)", "assumptions": ["no early EOS", "constant conditional acceptance", "serial draft and verify", "one correction or bonus token"]},
  "kv_transfer": {"links_Gb_per_second": [100,200,400], "effective_payload_fraction": 1, "context_tokens_at_example": 32768, "assumptions": ["complete ordinary KV crosses one bottleneck path", "no protocol overhead", "no contention", "no overlap deducted"], "not_a_ttft_prediction": true},
  "harness_example": {"serial_model_time_fraction": 0.6, "serial_other_time_fraction": 0.4, "model_speedup": 2, "task_speedup": "1/(0.4+0.6/2)"}
}
