whn09 32abff6662 Neuron: skip the vacuous candidate-block filter; mask padding rows in static MoE (#26)
- When runtime_max_model_len <= candidate_topk_blocks * candidate_block_size,
  the candidate blocks hold every position, so the filter keeps them all and
  the dense indexer logits give the same top-k. On Neuron the candidate path
  gathers all candidate keys per query token: [128, 16384] rows a layer for a
  prompt chunk, the NEFF that still ran HBM out in rg16.
- static_moe_forward takes the decode metadata's valid_token_mask: padding rows
  select no expert.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 05:25:28 +08:00
..
__init__.py initial commit 2026-10-20 12:09:42 +08:00
attn.py Neuron: one KV gather per chunk for dense attention; no layer_idx guards (#26) 2026-10-23 04:32:20 +08:00
builder.py initial commit 2026-10-20 12:09:42 +08:00
compress.py initial commit 2026-10-20 12:09:42 +08:00
containers.py initial commit 2026-10-20 12:09:42 +08:00
cross_layer.py initial commit 2026-10-20 12:09:42 +08:00
engram_metadata.py initial commit 2026-10-20 12:09:42 +08:00
engram_parameters.py initial commit 2026-10-20 12:09:42 +08:00
engram.py Neuron: full DeepSeek-V4.1-Flash load + decode region graphs at EP=64 (issues #21, #25) 2026-10-23 01:39:22 +08:00
hc_blocks.py initial commit 2026-10-20 12:09:42 +08:00
hc_lazy.py initial commit 2026-10-20 12:09:42 +08:00
hc.py Neuron: per-layer region graphs + vllm-neuron#71 NKI kernels (issues #10, #11, #13, #25) 2026-10-22 17:36:54 +08:00
heads.py initial commit 2026-10-20 12:09:42 +08:00
index_attn.py Neuron: skip the vacuous candidate-block filter; mask padding rows in static MoE (#26) 2026-10-23 05:25:28 +08:00
linear.py initial commit 2026-10-20 12:09:42 +08:00
mhc_modeling.py Neuron: per-layer region graphs + vllm-neuron#71 NKI kernels (issues #10, #11, #13, #25) 2026-10-22 17:36:54 +08:00
mhc_ops.py Neuron: per-layer region graphs + vllm-neuron#71 NKI kernels (issues #10, #11, #13, #25) 2026-10-22 17:36:54 +08:00
mla_attn.py initial commit 2026-10-20 12:09:42 +08:00
mlp.py Neuron: skip the vacuous candidate-block filter; mask padding rows in static MoE (#26) 2026-10-23 05:25:28 +08:00
moe.py initial commit 2026-10-20 12:09:42 +08:00
norm.py initial commit 2026-10-20 12:09:42 +08:00
rope.py initial commit 2026-10-20 12:09:42 +08:00
utils.py Neuron: one KV gather per chunk for dense attention; no layer_idx guards (#26) 2026-10-23 04:32:20 +08:00
yoco.py initial commit 2026-10-20 12:09:42 +08:00