Support InternS2 Preview#4575
Merged
Merged
Conversation
support time series See merge request openmmlab/openmmlab-service/lmdeploy!42
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds initial support for the InternS2 Preview model family in LMDeploy’s VLM + PyTorch backends, including time-series multimodal inputs and a few related configuration/module-map updates.
Changes:
- Register InternS2 Preview architectures in VL/PyTorch model registries and module maps.
- Extend Qwen3.5(-MoE) codepaths to accept and route time-series multimodal inputs end-to-end.
- Plumb
hf_overridesinto spec-decode draft model config construction.
Reviewed changes
Copilot reviewed 12 out of 12 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
| lmdeploy/vl/model/qwen3_5.py | Adds InternS2Preview arch + time-series token preprocessing hooks. |
| lmdeploy/pytorch/models/qwen3_vl.py | Adds dtype-aware input processor and TIME_SERIES multimodal packing. |
| lmdeploy/pytorch/models/qwen3_5.py | Adds TIME_SERIES args to forward + generation input preparation. |
| lmdeploy/pytorch/models/qwen3_5_mtp.py | Adds InternS2Preview-specific MTP weight name remapping logic. |
| lmdeploy/pytorch/models/qwen3_5_moe.py | Builds time-series encoder when ts_config exists; adjusts weight loading matching and buffer loading. |
| lmdeploy/pytorch/models/module_map.py | Maps InternS2Preview architectures to existing Qwen3.5 MoE implementation. |
| lmdeploy/pytorch/models/interns1_pro_time_series.py | Removes unused padding_idx. |
| lmdeploy/pytorch/messages.py | Skips mRoPE position-id handling for time-series modality. |
| lmdeploy/pytorch/engine/config_builder.py | Passes hf_overrides into SpecDecodeConfig.from_config. |
| lmdeploy/pytorch/configurations/qwen3_5.py | Recognizes intern_s2_preview model_type in config builder. |
| lmdeploy/pytorch/config.py | Adds hf_overrides plumb-through for spec-decode draft ModelConfig building. |
| lmdeploy/archs.py | Adds InternS2Preview arch to VLM detection + turbomind-unsupported list. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
lvhan028
approved these changes
May 9, 2026
RunningLeon
reviewed
May 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.