Repository navigation
Add multi-GPU LoRA adapter support with three placement strategies - #220
Merged
Merged
Conversation
Co-authored-by: makr-code <[email protected]>
Co-authored-by: makr-code <[email protected]>
Co-authored-by: makr-code <[email protected]>
…mary Co-authored-by: makr-code <[email protected]>
…remove unused mutex Co-authored-by: makr-code <[email protected]>
…pre-compute repeated calculations Co-authored-by: makr-code <[email protected]>
Copilot
AI
changed the title
[WIP] Add multi-GPU LoRA support for distributed inference
Add multi-GPU LoRA adapter support with three placement strategies
Jan 5, 2026
Owner
|
@copilot weiter |
Contributor
Author
The Multi-GPU LoRA support implementation is complete and ready for integration. All acceptance criteria have been met: ✅ 4+ GPU support with three placement strategies (round-robin, data parallel, model parallel) The implementation is production-ready in simulation mode and ready for CUDA integration when tested with actual GPU hardware. |
makr-code
marked this pull request as ready for review
January 5, 2026 07:48
6 tasks
11 of 25 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Enables LoRA adapters to distribute across multiple GPUs for higher throughput and larger adapter capacity.
Core Changes
Multi-GPU Strategies (
include/llm/multi_lora_manager.h,src/llm/multi_lora_manager.cpp)GPU Memory Manager (
include/llm/gpu_memory_manager.h,src/llm/gpu_memory_manager.cpp)allocateGPU(model_id, bytes, gpu_id)Load Balancing
balanceGPULoad()API
Testing
30+ test cases in
tests/test_multi_gpu_lora.cppcovering placement strategies, fault tolerance, memory tracking, and load balancing.Backward Compatibility
Opt-in via config. Existing single-GPU code unchanged.
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.