[GH-ISSUE #557] AMD MultiGPU #266

Closed
opened 2026-11-04 01:41:28 +07:00 by bsakaguchi · 5 comments
Owner

Originally created by @Elefant-Freeciv on GitHub (Oct 2, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/557

I have a couple of 7900 XTX cards, and was wondering when and if it will be possible to use both of them?

Originally created by @Elefant-Freeciv on GitHub (Oct 2, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/557 I have a couple of 7900 XTX cards, and was wondering when and if it will be possible to use both of them?
Author
Owner

@Elefant-Freeciv commented on GitHub (Oct 2, 2026):

I've tried it with the current version, but only got 45 tk/s vs 60 with only one card.

<!-- gh-comment-id:5963009687 --> @Elefant-Freeciv commented on GitHub (Oct 2, 2026): I've tried it with the current version, but only got 45 tk/s vs 60 with only one card.
Author
Owner

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

Two cards already work on Linux: ./setup.sh --backend hip --gpus 0,1 splits the model's layers across them (Windows AMD is one card per model for now).

Your 45 vs 60 tok/s is what a split usually does when one card already holds most of the experts. Every token then crosses from one card to the other, and that hand-off costs more than the extra cache saves. On an R9700 + 9070 XT pair we measured the same thing: 51-52 tok/s alone, 42-43 split (docs/AMD_HIP.md). A split pays off when no single card can hold the experts, for example a bigger quant or a long context with the KV cache in VRAM. "split_skip_if_fits": true in the config runs the pair on the first card alone when that card holds every profiled expert.

Which OS, model and context are you running? Could you post the start of strata-<model>.log for the split run? Then we can see what the second card holds and whether a different split helps. 0.1.38 also adds --peer-device, which uses a second card as an extra expert cache instead of a layer split. It needs peer-to-peer access between the cards, though, and nobody has tried it on AMD yet.

<!-- gh-comment-id:5964031517 --> @Niko1221 commented on GitHub (Oct 3, 2026): Two cards already work on Linux: `./setup.sh --backend hip --gpus 0,1` splits the model's layers across them (Windows AMD is one card per model for now). Your 45 vs 60 tok/s is what a split usually does when one card already holds most of the experts. Every token then crosses from one card to the other, and that hand-off costs more than the extra cache saves. On an R9700 + 9070 XT pair we measured the same thing: 51-52 tok/s alone, 42-43 split (docs/AMD_HIP.md). A split pays off when no single card can hold the experts, for example a bigger quant or a long context with the KV cache in VRAM. `"split_skip_if_fits": true` in the config runs the pair on the first card alone when that card holds every profiled expert. Which OS, model and context are you running? Could you post the start of `strata-<model>.log` for the split run? Then we can see what the second card holds and whether a different split helps. 0.1.38 also adds `--peer-device`, which uses a second card as an extra expert cache instead of a layer split. It needs peer-to-peer access between the cards, though, and nobody has tried it on AMD yet.
Author
Owner

@Elefant-Freeciv commented on GitHub (Oct 3, 2026):

Im on arch, with qwen 3.8 flash next iq3_s, 262144 ctx.
at 262144 ctx, single gpu is more like 55 tk/s, dual gpu 46.6 tk/s
--peer-device is not recognized as an option, but git pull says already up to date.
strata-iq3_s (Copy).log

<!-- gh-comment-id:5964769445 --> @Elefant-Freeciv commented on GitHub (Oct 3, 2026): Im on arch, with qwen 3.8 flash next iq3_s, 262144 ctx. at 262144 ctx, single gpu is more like 55 tk/s, dual gpu 46.6 tk/s --peer-device is not recognized as an option, but git pull says already up to date. [strata-iq3_s (Copy).log](https://github.com/user-attachments/files/32987494/strata-iq3_s.Copy.log)
Author
Owner

@warappa commented on GitHub (Oct 3, 2026):

@Elefant-Freeciv Had this too, but you just need to re-run setup.py

<!-- gh-comment-id:5968054826 --> @warappa commented on GitHub (Oct 3, 2026): @Elefant-Freeciv Had this too, but you just need to re-run `setup.py`
Author
Owner

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

Thanks for the numbers and the log. A split being slower than one card is expected here: with IQ3_S, one 7900 XTX already holds most of the experts, so the hand-off between the cards costs more than the extra cache gives (details in docs/AMD_HIP.md). One card is the better setup for this model.

As warappa said, --peer-device needs the 0.1.38 engine: git pull updates the code but not the built engine, so run ./update.sh (or setup again). If you try --peer-device on the pair, a new issue with the log would be welcome; nobody has run it on AMD yet. Closing this one as answered.

<!-- gh-comment-id:5970948239 --> @Niko1221 commented on GitHub (Oct 3, 2026): Thanks for the numbers and the log. A split being slower than one card is expected here: with IQ3_S, one 7900 XTX already holds most of the experts, so the hand-off between the cards costs more than the extra cache gives (details in docs/AMD_HIP.md). One card is the better setup for this model. As warappa said, `--peer-device` needs the 0.1.38 engine: `git pull` updates the code but not the built engine, so run `./update.sh` (or setup again). If you try `--peer-device` on the pair, a new issue with the log would be welcome; nobody has run it on AMD yet. Closing this one as answered.
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#266
No description provided.