[GH-ISSUE #4809] [Engine] DeepSeek-V4.1: allow the vision tower to run on a helper GPU #2205

Open
opened 2026-11-04 01:57:28 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @whitespades on GitHub (Oct 31, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4809

Area

[Engine]

What do you want to do?

Add a supported option to put DeepSeek-V4.1's built-in vision tower on a second/helper GPU, separate from the GPU that holds the model layers. The default should stay "first model GPU". The option should move only the ~319 MiB vision tower, not the routed experts.

What do you do today instead?

Today the engine loads the tower on its first model GPU (vt.load(vg, d.id) in src/dsv41/ds4_model.cu). On a 3090 + 3060 box with --gpus 0, the tower sits on the 3090 and takes ~319 MiB from its remaining VRAM. Locally we patched vision_dev to read DS4_VISION_GPU and tested with CUDA_VISIBLE_DEVICES=0,1, gpu_order: as_given, DS4_VISION_GPU=1: all 40 model layers stayed on the 3090; the tower loaded on the 3060 (engine allocation 444 MiB including its CUDA context) and read an image in 1,130 ms.

This is only the vision transfer, not the 4 GB kRamMargin change. It lets other multi-GPU users put vision on a spare card while keeping the main GPU for the model.

Related bug: #4627 (vision failure under high context on the 3090).

Originally created by @whitespades on GitHub (Oct 31, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/4809 ### Area [Engine] ### What do you want to do? Add a supported option to put DeepSeek-V4.1's built-in vision tower on a second/helper GPU, separate from the GPU that holds the model layers. The default should stay "first model GPU". The option should move only the ~319 MiB vision tower, not the routed experts. ### What do you do today instead? Today the engine loads the tower on its first model GPU (`vt.load(vg, d.id)` in `src/dsv41/ds4_model.cu`). On a 3090 + 3060 box with `--gpus 0`, the tower sits on the 3090 and takes ~319 MiB from its remaining VRAM. Locally we patched `vision_dev` to read `DS4_VISION_GPU` and tested with `CUDA_VISIBLE_DEVICES=0,1`, `gpu_order: as_given`, `DS4_VISION_GPU=1`: all 40 model layers stayed on the 3090; the tower loaded on the 3060 (engine allocation 444 MiB including its CUDA context) and read an image in 1,130 ms. This is only the vision transfer, not the 4 GB `kRamMargin` change. It lets other multi-GPU users put vision on a spare card while keeping the main GPU for the model. Related bug: #4627 (vision failure under high context on the 3090).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#2205
No description provided.