[GH-ISSUE #4667] [Engine] Mismatched GPUs on Docker #2124

Open
opened 2026-11-04 01:56:52 +07:00 by bsakaguchi · 4 comments
Owner

Originally created by @ceinstaller on GitHub (Oct 30, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4667

Niko, the original issue for this was auto-closed before I could respond, this is round 2.

Hey all, I threw some spare parts together to run a small model. I have a 3070 8GB and a 1660 Super 6GB. I can spin up a docker container for strata and it defaults to the 3070 and I get 57tk/s on 3.6 Q4. However, when I add '-e GPUS=0,1' to my docker run command, it fails with an OOM error. I'm guessing this is because of the VRAM mismatch between the two cards? Is there a way to get this to work?

System:
Intel i7 system, 32GB RAM, RTX 3070 8GB, 1660 Super 6GB
Ubuntu server 26, Docker 29.9.2

+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 615.71.10 KMD Version: 615.71.10 CUDA UMD Version: 13.4 |
+-----------------------------------------+------------------------+----------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+========================+======================|
| 0 NVIDIA GeForce RTX 3070 On | 00000000:01:00.0 Off | N/A |
| 33% 30C P8 19W / 220W | 1MiB / 8192MiB | 0% Default |
| | | N/A |
+-----------------------------------------+------------------------+----------------------+
| 1 NVIDIA GeForce GTX 1660 ... On | 00000000:04:00.0 Off | N/A |
| 0% 32C P8 9W / 125W | 1MiB / 6144MiB | 0% Default |
| | | N/A |
+-----------------------------------------+------------------------+----------------------+

When I run thusly, everything works:

$ docker run -d --name strata \
--gpus all -p 8080:8080 \
--ulimit memlock=-1:-1 --shm-size 2g --stop-timeout 120 \
-v /home/mgertgen/strata/data:/data \
-e FAMILY=qwen36 -e MODEL=UD-Q4_K_XL \
-e API_KEY=$(openssl rand -hex 24) \
ghcr.io/niko1221/strata:0.2.8-cuda13

It uses the 3070 and I get 57tk/s. When I try this:

$ docker run -d --name strata \
--gpus all -p 8080:8080 \
--ulimit memlock=-1:-1 --shm-size 2g --stop-timeout 120 \
-v /home/mgertgen/strata/data:/data \
-e FAMILY=qwen36 -e MODEL=UD-Q4_K_XL \
-e API_KEY=$(openssl rand -hex 24) \
-e GPU_ROLES=0=main,1=helper \
ghcr.io/niko1221/strata:0.2.8-cuda13

It errors out:

Starting Strata: UD-Q4_K_XL (preset 'docker').
Main: GPU 1 RTX 3070. Helper: GPU 2 GTX 1660 SUPER.
Checking the engine for this computer…
Engine 0.1.54 (cuda) is installed.
qwen36 UD-Q4_K_XL is already installed with these choices.
Writing this launch's settings…
Settings are saved.
Starting the engine and loading the model. The first start can take a few minutes.
strata: The engine stopped while it was loading the model (exit code 1): strata-q36: cudaMalloc(&p, n * sizeof(T)) failed: out of memory (/data/split-pkg/r28/e/appsrc/src/qwen35/q36_engine.cu:1134). The card or memory ran out. Close other programs that use the card, or choose a smaller context (--context 16k) and start again. The engine's log: /data/state/strata/launch/docker.engine.log [X] strata launch stopped with code 6 (the lines above say why). The container ends. Fix that and start it again: finished steps are not repeated, and an interrupted download continues where it stopped. 6

Wondering if we have any ideas. Honestly I'm pretty happy with 57tk/s on just the 3070, but if there's a way to utilize the 1660 that would be great!

Thanks in advance!

Originally created by @ceinstaller on GitHub (Oct 30, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/4667 Niko, the original issue for this was auto-closed before I could respond, this is round 2. Hey all, I threw some spare parts together to run a small model. I have a 3070 8GB and a 1660 Super 6GB. I can spin up a docker container for strata and it defaults to the 3070 and I get 57tk/s on 3.6 Q4. However, when I add '-e GPUS=0,1' to my docker run command, it fails with an OOM error. I'm guessing this is because of the VRAM mismatch between the two cards? Is there a way to get this to work? System: Intel i7 system, 32GB RAM, RTX 3070 8GB, 1660 Super 6GB Ubuntu server 26, Docker 29.9.2 `+-----------------------------------------------------------------------------------------+` `| NVIDIA-SMI 615.71.10 KMD Version: 615.71.10 CUDA UMD Version: 13.4 |` `+-----------------------------------------+------------------------+----------------------+` `| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |` `| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |` `| | | MIG M. |` `|=========================================+========================+======================|` `| 0 NVIDIA GeForce RTX 3070 On | 00000000:01:00.0 Off | N/A |` `| 33% 30C P8 19W / 220W | 1MiB / 8192MiB | 0% Default |` `| | | N/A |` `+-----------------------------------------+------------------------+----------------------+` `| 1 NVIDIA GeForce GTX 1660 ... On | 00000000:04:00.0 Off | N/A |` `| 0% 32C P8 9W / 125W | 1MiB / 6144MiB | 0% Default |` `| | | N/A |` `+-----------------------------------------+------------------------+----------------------+` When I run thusly, everything works: `$ docker run -d --name strata \` `--gpus all -p 8080:8080 \` `--ulimit memlock=-1:-1 --shm-size 2g --stop-timeout 120 \` `-v /home/mgertgen/strata/data:/data \` `-e FAMILY=qwen36 -e MODEL=UD-Q4_K_XL \` `-e API_KEY=$(openssl rand -hex 24) \` `ghcr.io/niko1221/strata:0.2.8-cuda13` It uses the 3070 and I get 57tk/s. When I try this: `$ docker run -d --name strata \` `--gpus all -p 8080:8080 \` `--ulimit memlock=-1:-1 --shm-size 2g --stop-timeout 120 \` `-v /home/mgertgen/strata/data:/data \` `-e FAMILY=qwen36 -e MODEL=UD-Q4_K_XL \` `-e API_KEY=$(openssl rand -hex 24) \` `-e GPU_ROLES=0=main,1=helper \` `ghcr.io/niko1221/strata:0.2.8-cuda13` It errors out: `Starting Strata: UD-Q4_K_XL (preset 'docker').` `Main: GPU 1 RTX 3070. Helper: GPU 2 GTX 1660 SUPER.` ` Checking the engine for this computer…` ` Engine 0.1.54 (cuda) is installed.` ` qwen36 UD-Q4_K_XL is already installed with these choices.` ` Writing this launch's settings…` ` Settings are saved.` ` Starting the engine and loading the model. The first start can take a few minutes.` `strata: The engine stopped while it was loading the model (exit code 1): strata-q36: cudaMalloc(&p, n * sizeof(T)) failed: out of memory (/data/split-pkg/r28/e/appsrc/src/qwen35/q36_engine.cu:1134). The card or memory ran out. Close other programs that use the card, or choose a smaller context (`--context 16k`) and start again. The engine's log: /data/state/strata/launch/docker.engine.log [X] strata launch stopped with code 6 (the lines above say why). The container ends. Fix that and start it again: finished steps are not repeated, and an interrupted download continues where it stopped. 6` Wondering if we have any ideas. Honestly I'm pretty happy with 57tk/s on just the 3070, but if there's a way to utilize the 1660 that would be great! Thanks in advance!
Author
Owner

@github-actions[bot] commented on GitHub (Oct 30, 2026):

Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:

  • Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes".

Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment /reopen.

Details: CONTRIBUTING.md

<!-- gh-comment-id:6514140122 --> @github-actions[bot] commented on GitHub (Oct 30, 2026): Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing: - [ ] Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes". Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment `/reopen`. Details: [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md)
Author
Owner

@github-actions[bot] commented on GitHub (Oct 30, 2026):

Thanks, this follows the format now.

<!-- gh-comment-id:6514171394 --> @github-actions[bot] commented on GitHub (Oct 30, 2026): Thanks, this follows the format now.
Author
Owner

@Niko1221 commented on GitHub (Oct 31, 2026):

You read it right: with both cards named, the model is split over them and the 6 GB card runs out of memory while loading. Strata starts a card of 8 GB or less as Off beside a bigger one, and with only small cards it makes the second one a helper; naming both yourself is respected, not blocked. For this model one card at 57 tok/s is the good setting, and GPU=0 keeps it. We did not test this pair; we will look at whether the engine should warn about the 6 GB card before it tries.

<!-- gh-comment-id:6547924074 --> @Niko1221 commented on GitHub (Oct 31, 2026): You read it right: with both cards named, the model is split over them and the 6 GB card runs out of memory while loading. Strata starts a card of 8 GB or less as Off beside a bigger one, and with only small cards it makes the second one a helper; naming both yourself is respected, not blocked. For this model one card at 57 tok/s is the good setting, and `GPU=0` keeps it. We did not test this pair; we will look at whether the engine should warn about the 6 GB card before it tries.
Author
Owner

@ceinstaller commented on GitHub (Nov 2, 2026):

OK, that makes sense. Maybe I'll try llama.cpp and play with --tensor-split. I'm guessing I still wouldn't reach 57tk/s though, ha!
Thanks for the reply!

<!-- gh-comment-id:6582231412 --> @ceinstaller commented on GitHub (Nov 2, 2026): OK, that makes sense. Maybe I'll try llama.cpp and play with --tensor-split. I'm guessing I still wouldn't reach 57tk/s though, ha! Thanks for the reply!
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#2124
No description provided.