mirror of
https://github.com/deepseek-ai/DeepInfer.git
synced 2026-11-10 23:29:43 +08:00
Merge remote-tracking branch 'fork/openai-server' into pd-split-fix
This commit is contained in:
commit
823b798934
@ -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
|
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%.
|
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
|
## Prompt tokenization
|
||||||
|
|
||||||
Agentic clients resend the whole conversation every turn, and `tokenizer.encode` needs ~1.7 ms per 1K tokens on a
|
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,
|
type=int,
|
||||||
default=2,
|
default=2,
|
||||||
help="DEEPINFER_PREFILL_ANY_ATTEMPT_INTERVAL: a rank with a waiting prompt gets a prefill step at most this "
|
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(
|
p.add_argument(
|
||||||
"--eplb-interval",
|
"--eplb-interval",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user