mirror of
https://github.com/deepseek-ai/DeepInfer.git
synced 2026-10-28 23:07:09 +08:00
- PrepareArgs.prompt_as_decode: decode-layout metadata for a prompt chunk; input_ids are the prompt's own tokens instead of last token + MTP drafts. - DEEPINFER_NEURON_PREFILL_BUCKET adds one graph size; the model runner pads a prompt chunk to it with the decode placeholders (every EP rank takes the same bucket, so the static collectives match). Sampling still sees a prompt step. - nki_attention.paged_mqa_logits: one gather + one kernel call for a chunk (one sequence) instead of a T-way loop. - bf16 linear for the LM head eagerly on a NeuronCore (b.float() was a 2.6 GiB copy a call); DEEPINFER_NEURON_REGION_TIMING; --num_prompts. Host mode, tiny V4.1, chunk 128: same tokens as eager prefill (short 9/9, long 715 tokens in 6 chunks 8/9 against golden). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| eplb | ||
| input_metadata | ||
| layers | ||
| models | ||
| parallel_utils | ||
| __init__.py | ||
| layer_utils.py | ||
| model_loader.py | ||
| model_metadata_utils.py | ||
| model_output.py | ||
| sampling_inputs.py | ||
| utils.py | ||