mirror of
https://github.com/deepseek-ai/DeepInfer.git
synced 2026-10-28 23:07:09 +08:00
- deep_select.topk on a NeuronCore with k >= 1024 (the sampler's force_topk 4096 over the 129280 vocab) uses nkilib's rotational_topk: torch.topk with that k does not compile on the device (NCC_IXCG857). 8.4 ms on one core, values identical to torch.topk. - EngramBuffer on Neuron: the ranks of a trn2 instance share one host, so the table shards are written into /dev/shm-backed tables (unlinked once mapped) and every rank gathers its own rows: no all-to-all and no host sync on split sizes per fetch. DEEPINFER_NEURON_ENGRAM_SHARED=0 restores the sharded path. Host EP=2 tiny: logits bitwise equal to the sharded path. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| nki | ||
| vendor | ||
| __init__.py | ||
| fp8_guard.py | ||
| fp8.py | ||
| neuron_compile.py | ||
| NEURON_PORT.md | ||
| nki_attention.py | ||
| nki_gemm.py | ||
| nki_hc.py | ||
| nki_norm.py | ||
| nki_topk.py | ||
| regions.py | ||
| static_moe.py | ||
| transfer_to_neuron.py | ||