[PR #16] [CLOSED] Add optional multi-GPU expert caches and compact transfers #2417

Closed
opened 2026-11-04 01:59:56 +07:00 by bsakaguchi · 0 comments
Owner

📋 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)

  • 5c78756 Add 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.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/16 **Author:** [@Daerdaal](https://github.com/Daerdaal) **Created:** 9/26/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `multi-gpu-experts` --- ### 📝 Commits (1) - [`5c78756`](https://github.com/Niko1221/Strata/commit/5c7875645f32ce2c01a888accdf7534baf799a41) Add optional multi-GPU expert caches and compact transfers ### 📊 Changes **11 files changed** (+735 additions, -32 deletions) <details> <summary>View changed files</summary> 📝 `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) </details> ### 📄 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) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-04 01:59:56 +07:00
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#2417
No description provided.