[Feature] TurboMind backend missing VLM support for DeepSeek-VL2, Llama4, Gemma3, Qwen3-VL
I maintainer di solito rispondono entro 2 giorni
@irexyc ci sta già lavorando.
Dal 29/4/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
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
- Lingua principale
- Python
- Stelle
- 8.2k
- Fork
- 797
- Merge medio
- 3g 15h
- PR unite (30g)
- 52
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di InternLM/lmdeploy
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
I maintainer di solito rispondono entro 2 giorni
-
[Bug] apply_rotary_pos_emb: leaves output tails unwritten with partial rotationForse già presa @shotsan l’ha presa 15 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 2 giorni
-
[Bug] PyTorch engine ignores use_rslora, so rsLoRA adapters run sqrt(r) times too weakForse già presa @Andreas-Hum l’ha presa 25 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 2 giorni
-
[Feature] Expose `max_model_len` (session_len) in `/v1/models` model cardForse già presa @FOWEPJF255 l’ha presa 37 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
I maintainer di solito rispondono entro 2 giorni
Tutte le issue di InternLM/lmdeploy
Issue simili
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
Techiebutler/freeframe#687 ·
I maintainer di solito rispondono entro 1 giorno
-
bug verbose GC
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
IBM/javacore-analyser#677 ·
I maintainer di solito rispondono entro 1 giorno
-
area/config comp/plugins P1 platform/qqbot tool/file type/bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
NousResearch/hermes-agent#163932 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
plugins/dsh: todayStr() computes UTC but is documented as local — journal entries written 00:00–08:00 local land in the previous day's fileForse già presa @Beehtrix l’ha presa oggi. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
zilliztech/memsearch#907 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
[integration]: SynapCoresApertaexternal
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
langchain-ai/docs#8386 ·
I maintainer di solito rispondono entro 1 giorno