[Feature] TurboMind backend missing VLM support for DeepSeek-VL2, Llama4, Gemma3, Qwen3-VL
メンテナーはふだん 2 日以内に返信
@irexyc がすでに取り組んでいます。
2026年4月29日 から。
評価
この issue はまだ評価されていません。
説明
Description
Four VLM model classes have to_turbomind() wired up to call to_turbomind_aux() but their forward() methods raise NotImplementedError, making TurboMind backend unusable for these models. One model (qwen3.py) has to_turbomind() as a bare pass.
Users who set --backend turbomind with any of these models will get a runtime error when processing vision inputs.
Affected Models
| File | to_turbomind() |
forward() |
Issue |
|---|---|---|---|
vl/model/deepseek_vl2.py |
Calls to_turbomind_aux |
NotImplementedError (line 104-117) |
Runtime crash |
vl/model/llama4.py |
Calls to_turbomind_aux |
NotImplementedError (line 85-98) |
Runtime crash |
vl/model/gemma3_vl.py |
Calls to_turbomind_aux |
NotImplementedError (line 92-105) |
Runtime crash |
vl/model/qwen3.py |
pass (line ~) |
pass |
Silent no-op |
Working Reference
vl/model/internvl.py has a working implementation:
to_turbomind()callsself.proc_messages()to format prompt + image tokens, then delegates toself.to_turbomind_aux()forward()extracts visual features from pixel values and appends them to messages withrole='forward'to_turbomind_aux()(inbase.py) reads these features to buildinput_embeddings
What Needs to Be Implemented
For each model, forward() must:
- Accept preprocessed messages containing pixel values
- Run the model's vision encoder to extract visual features
- Append features to the message list with
role='forward'
Additionally, qwen3.py needs its to_turbomind() and build_model() implemented from scratch.
Suggested Approach
Start with one model (e.g., Gemma3) as a reference implementation following the internvl.py pattern, then replicate for the other three.
Key Files
lmdeploy/vl/model/base.py—VisionModelbase class,to_turbomind_aux()helper (line 289-323)lmdeploy/vl/model/internvl.py— working reference (line 283-296)lmdeploy/vl/model/deepseek_vl2.py— stublmdeploy/vl/model/llama4.py— stublmdeploy/vl/model/gemma3_vl.py— stublmdeploy/vl/model/qwen3.py— stub
- 主要言語
- Python
- スター
- 8.2k
- フォーク
- 797
- 平均マージ
- 3日 15時間
- マージ済み PR(30日)
- 52
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
InternLM/lmdeploy のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
メンテナーはふだん 2 日以内に返信
-
[Bug] apply_rotary_pos_emb: leaves output tails unwritten with partial rotation対応中かも @shotsan が 15 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 2 日以内に返信
-
[Bug] PyTorch engine ignores use_rslora, so rsLoRA adapters run sqrt(r) times too weak対応中かも @Andreas-Hum が 25 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 2 日以内に返信
-
[Feature] Expose `max_model_len` (session_len) in `/v1/models` model card対応中かも @FOWEPJF255 が 37 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 2 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
メンテナーはふだん 2 日以内に返信
InternLM/lmdeploy の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
Techiebutler/freeframe#687 ·
メンテナーはふだん 1 日以内に返信
-
bug verbose GC
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
IBM/javacore-analyser#677 ·
メンテナーはふだん 1 日以内に返信
-
area/config comp/plugins P1 platform/qqbot tool/file type/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
NousResearch/hermes-agent#163932 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
plugins/dsh: todayStr() computes UTC but is documented as local — journal entries written 00:00–08:00 local land in the previous day's file対応中かも @Beehtrix が今日担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
zilliztech/memsearch#907 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
external
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
langchain-ai/docs#8386 ·
メンテナーはふだん 1 日以内に返信