mirror of
https://github.com/deepseek-ai/DeepInfer.git
synced 2026-10-28 23:07:09 +08:00
- nki_attention._chunk_attention: a prompt chunk run as a decode step gathers a dense compressed-KV scope once (every token's list is a prefix of the longest) and masks it per row; top-k and SWA scopes stay per row. The per-row gather was [128, 8192, 512] for a ratio-2 layer of the full model: 3.8 GB moved per call and a 3 GB NEFF (model code) that ran HBM out. - decode_part_timer: the decode timers are no-ops inside region graphs. Their f-string labels read layer_idx, so Dynamo guarded on it and retraced every layer instead of every layer kind. Tiny V4.1 on a NeuronCore, bucket 128: short 9/9, long 9/9 (logit cos >= 0.997). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| attn.py | ||
| builder.py | ||
| compress.py | ||
| containers.py | ||
| cross_layer.py | ||
| engram_metadata.py | ||
| engram_parameters.py | ||
| engram.py | ||
| hc_blocks.py | ||
| hc_lazy.py | ||
| hc.py | ||
| heads.py | ||
| index_attn.py | ||
| linear.py | ||
| mhc_modeling.py | ||
| mhc_ops.py | ||
| mla_attn.py | ||
| mlp.py | ||
| moe.py | ||
| norm.py | ||
| rope.py | ||
| utils.py | ||
| yoco.py | ||