mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #16] [CLOSED] Add optional multi-GPU expert caches and compact transfers #2417
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#2417
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/16
Author: @Daerdaal
Created: 9/26/2026
Status: ❌ Closed
Base:
main← Head:multi-gpu-experts📝 Commits (1)
5c78756Add optional multi-GPU expert caches and compact transfers📊 Changes
11 files changed (+735 additions, -32 deletions)
View changed files
📝
CMakeLists.txt(+1 -1)➕
docs/SECOND_GPU.md(+84 -0)📝
include/strata/core/expert_source.hpp(+6 -1)📝
include/strata/core/pinned.hpp(+2 -1)➕
include/strata/core/remote_experts.hpp(+78 -0)📝
setup.py(+32 -8)📝
src/core/expert_source.cpp(+50 -3)📝
src/core/mtp.cpp(+9 -1)📝
src/core/pinned.cu(+11 -5)➕
src/core/remote_experts.cpp(+305 -0)📝
src/program/generate.cpp(+157 -12)📄 Description
Add optional multi-GPU expert caches and compact transfers. Tested on my setup (4xeGPU 3060 12Gb (1oculink / 3usb4) )
option to add multi GPU choice at startup (1, 2 or 4 GPU) : GPU use is chosen when configuring Strata:
--gpu1-experts N enables CUDA1 alongside CUDA0
adding --gpu2-experts N --gpu3-experts N enables all four GPUs.
A single-GPU configuration uses no secondary expert caches. The generated run-iq3_xxs.bat (or any other compatible model launcher) then starts the saved configuration. Switching later requires editing its JSON configuration or running setup again. I tested IQ3_XXS. Other model sizes still need to be validated on hardware.
note : my test setup have an igpu (780m) for monitor, so NO VRAM is used on the CUDA devices when server starts.
The CUDA0 GPU must be at least 12Gb, the others too or bigger. (Not tested with less VRAM)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.