mirror of
https://github.com/deepseek-ai/DeepInfer.git
synced 2026-10-31 00:36:20 +08:00
compute_seqlens_k_zos, confidence_head_fused and dflash_input_store, all identical to the baseline: 15 cases across the three. `compute_seqlens_k_zos` masks the remap lookup rather than clamping it: `-1` marks a fresh request, and an unmasked `PREV_ACCEPTED + (-1)` would read the element before the buffer. `confidence_head_fused` reads the weight as one flat vector and splits it at `n_embed`, so the hidden and Markov halves are one accumulation instead of two passes. Without a Markov embedding the second pointer is filled with the first tensor rather than left null, since the read is compiled out but the argument still has to be a pointer. The scaled logit is clamped to +-60 before the sigmoid, as the baseline does, so a small temperature cannot produce inf through `exp`. `dflash_input_store` accumulates in fp32 even though both sides are bf16: the baseline sums into an fp32 fragment, and a bf16 accumulator would round differently for hc_mult > 1. One trap: `tl.next_power_of_2` inside a kernel body is not a compile-time constant, so the Markov block size is resolved in the factory and passed as a constexpr. |
||
|---|---|---|
| .. | ||
| _C | ||
| distributed | ||
| engine | ||
| entrypoints | ||
| h20_ops | ||
| hugging_face | ||
| model_executor | ||
| npu_ops | ||
| structure_output | ||
| ve | ||
| worker | ||
| __init__.py | ||
| attrdict.py | ||
| config.py | ||
| debug_dump.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 | ||