mirror of
https://github.com/deepseek-ai/DeepInfer.git
synced 2026-10-30 15:57:20 +08:00
serve: document the --prefill-any-interval TTFT / decode-speed trade-off
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YNgkNrJL5oR1pZqVYzZMHW
This commit is contained in:
parent
83be1fa44c
commit
8b1ed3f26a
@ -36,6 +36,11 @@ EPLB expert rearrangement is off by default (`--eplb-interval 0`). Every rearran
|
||||
the 32 redundant expert slots (`DEEPINFER_OVERRIDE_NUM_EXTRA_EXPERTS=0`): without rearrangement they are fixed copies
|
||||
of experts 0-31, and removing them speeds decode up by 4-5%.
|
||||
|
||||
`--prefill-any-interval` (default 2) trades TTFT for decode speed. A prompt step pauses decode on every DP rank, and
|
||||
with 2 almost every arriving request triggers one. That keeps TTFT low; the engine default of 100 adds a ~1.4 s
|
||||
floor. At high concurrency, 30-100 gives faster decode and more throughput at the cost of TTFT: on B200 AgentX c256,
|
||||
interval 100 gave 255K vs 211K tok/s/GPU and interactivity p50 119 vs 55, with TTFT p50 2.5 vs 0.7 s.
|
||||
|
||||
## Prompt tokenization
|
||||
|
||||
Agentic clients resend the whole conversation every turn, and `tokenizer.encode` needs ~1.7 ms per 1K tokens on a
|
||||
|
||||
@ -67,7 +67,8 @@ def parse_args() -> argparse.Namespace:
|
||||
type=int,
|
||||
default=2,
|
||||
help="DEEPINFER_PREFILL_ANY_ATTEMPT_INTERVAL: a rank with a waiting prompt gets a prefill step at most this "
|
||||
"many decode steps later even if other ranks are idle (engine default 100 => ~1.4 s TTFT floor)",
|
||||
"many decode steps later even if other ranks are idle (engine default 100 => ~1.4 s TTFT floor). A prompt step "
|
||||
"pauses decode on every rank, so at high concurrency a larger value (30-100) trades TTFT for decode speed",
|
||||
)
|
||||
p.add_argument(
|
||||
"--eplb-interval",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user