mirror of
https://github.com/deepseek-ai/DeepInfer.git
synced 2026-10-28 23:07:09 +08:00
At LNC=2 a logical NeuronCore is two physical cores and a kernel launched at grid 1 only has code for one of them. The vllm-neuron#71 _2core kernels split the output columns by program_id; launched at grid 2 they are 1.7-1.9x faster on every decode GEMM shape and bitwise equal on one core (fp8 1x1280x36864 2.22 -> 1.17 ms, fp4 64x5120x4608 0.68 -> 0.40 ms). Used when n % 256 == 0; DEEPINFER_NEURON_BQ_2CORE=0 turns it off. Device profile of a decode attention region (neuron-explorer): 12.9 ms, of which the q_b_proj fp8 GEMM alone is ~1.8 ms of vector-engine dequant. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| _C | ||
| distributed | ||
| engine | ||
| entrypoints | ||
| hugging_face | ||
| model_executor | ||
| neuron_ops | ||
| npu_ops | ||
| structure_output | ||
| ve | ||
| worker | ||
| __init__.py | ||
| attrdict.py | ||
| config.py | ||
| environ.py | ||
| load_class.py | ||
| logger.py | ||
| model_config_loader.py | ||
| multimodal_tokens.py | ||
| platform.py | ||
| py.typed | ||
| sampling_params.py | ||
| sequence.py | ||
| shared_memory.py | ||
| testing.py | ||
| timer.py | ||
| utils.py | ||