You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 13d1d28
Browse filesBrowse the repository at this point in the historyBrowse files
feat(engine): multimodal PD through the chat path (#3410)
* feat(engine): multimodal PD through the chat path
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* PD image decode: MRoPE delta reaches decode positions, cache_seed gate, handoff key checks (#155)
fix(engine): image PD decode positions, cache_seed gate, handoff key checks
Answers valarLip's review on #3410:
- A decode leg's mrope_position_delta reaches the batch
(ScheduledBatch.mrope_position_deltas keeps a seq without mrope_positions
whose delta is nonzero), so MRoPE models decode at the right positions.
- A decode leg skips its media only when kv_transfer_params carries
cache_seed; otherwise the media is preprocessed as before.
- cache_seed and mrope_position_delta in kv_transfer_params must be ints,
else 400 before enqueue (check_media_handoff).
- Preemption reads Sequence.media_on_prefill_instance.
- generate_async_multimodal reads kv_transfer_params_output directly.
MiniMax-M3.1-Flash full MMStar through 1P1D scores 0.7305 against 0.7070
for the single instance at this head, 0 failed requests.
Closes#147.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(engine): image PD decode positions, cache_seed gate, handoff key checks
Answers the review on #3410:
- A decode leg's mrope_position_delta reaches the batch
(ScheduledBatch.mrope_position_deltas keeps a seq without mrope_positions
whose delta is nonzero), so MRoPE models decode at the right positions.
- A decode leg skips its media only when kv_transfer_params carries
cache_seed; otherwise the media is preprocessed as before.
- cache_seed and mrope_position_delta in kv_transfer_params must be ints,
else 400 before enqueue (check_media_handoff).
- Preemption reads Sequence.media_on_prefill_instance.
- generate_async_multimodal reads kv_transfer_params_output directly.
MiniMax-M3.1-Flash full MMStar through 1P1D scores 0.7305 against 0.7070
for the single instance at this commit, 0 failed requests.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* style(tests): sort imports in test_pd_prompt_token_ids.py
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* tests: drop the duplicate conftest import the up-e1 sync merge left
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* up-e1: no local prefill of a media-dropped image decode leg; handoff keys checked on every endpoint (#181)
A chat decode leg whose prefill kept the image is no longer prefilled
locally (no KV connector, an offload resume, a moriio requeue, a tier load
declined after allocation): the scheduler finishes it as unschedulable.
`leaves_media_on_prefill` in `sequence.py` marks such a leg, and only it
reads `cache_seed` and `mrope_position_delta`.
Both keys are range-checked as a 400 on chat, completions, `/v1/messages`,
`/v1/responses` and the standalone service when `kv_transfer_params` is
set. The decode-position arithmetic moves to `token_layout/decode.py`
(`mrope_decode_positions`). `docs/api_image_input.md` describes the chat
image P/D contract, including that an offload-tier D refuses image decode
legs.
Closes#180.
* Media-dropped leg test: main's connector interface and its early-load way in
The test's SimpleNamespace connectors lacked the scheduler capability
defaults main added (lookup_pending, supports_early_load); build them on
the shared KVConnectorSchedulerBase stub instead. Add main's early tier
load as a way in: the leg resumes from it and is refused there too.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* up-e1: no per-request cost on the text path; prompt-bounded MRoPE delta; DSpark and RapidServe refuse a media-dropped leg
- Sequence: media_on_prefill_instance is a class default, set only when a
request carries kv_transfer_params; the scheduler's refusals and the HTTP
and standalone handoff checks run only for a request with params.
- The engine intake refuses a handed-off mrope_position_delta outside
[1 - prompt length, 0], refuses a media-dropped leg on RapidServe (whose
prefill never reaches Scheduler.schedule), and tells the model's request
validator about it: DeepSeek-V4.1 refuses DSpark on it.
- mrope_decode_positions is decode_positions plus the repeated deltas.
- The offload-tier D text is gone; the refusal's ways in are tested as they
arise: a failed receive is new, the tier cases run on an offload-only
instance.
- A fresh image leg waits for its remote KV; stale test and proto text fixed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
0 commit comments