-
Notifications
You must be signed in to change notification settings - Fork 608
Add Gloo communication to turobmind #3362
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
irexyc
wants to merge
13
commits into
InternLM:main
Choose a base branch
from
irexyc:gloo-comm
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
3899022
init gloo support
irexyc 916e44b
use pytorch tcpstore
irexyc bd5be0f
update gateway and support setting devices
irexyc ecc2623
fix build
irexyc edb4dfe
use tm cfg instead of env
irexyc 216ad15
Merge remote-tracking branch 'origin/main' into gloo-comm
irexyc 9b8d8a7
fix dp
irexyc 22569cb
fix lint
irexyc eb03cbf
fix build
irexyc e0f2409
Merge remote-tracking branch 'origin/main' into gloo-comm
irexyc aca00e1
Merge remote-tracking branch 'origin/main' into gloo-comm
irexyc e78156d
fix ci
irexyc e06f256
update gloo version to match pytroch/v2.8.0-rc4
irexyc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Copyright (c) OpenMMLab. All rights reserved. | ||
cmake_minimum_required(VERSION 3.8) | ||
|
||
include(FetchContent) | ||
FetchContent_Declare( | ||
gloo | ||
GIT_REPOSITORY https://github.com/pytorch/gloo.git | ||
GIT_TAG c7b7b022c124d9643957d9bd55f57ac59fce8fa2 # pytorch-v2.8.0-rc4 | ||
) | ||
|
||
# some settings of gloo, | ||
set(GLOO_INSTALL OFF CACHE BOOL "" FORCE) | ||
set(GLOO_STATIC_OR_SHARED STATIC CACHE STRING "" FORCE) | ||
set(USE_NCCL OFF) | ||
set(BUILD_TEST OFF) | ||
FetchContent_MakeAvailable(gloo) | ||
|
||
# gloo build doesn't add include directories as a target property... | ||
target_include_directories(gloo PUBLIC | ||
$<BUILD_INTERFACE:${gloo_SOURCE_DIR}> | ||
$<BUILD_INTERFACE:${gloo_BINARY_DIR}> # config.h generated at cmake config time | ||
) | ||
|
||
add_library(gloo_comm STATIC | ||
gloo_comm.cc | ||
tcp_store.cc | ||
) | ||
set_property(TARGET gloo_comm PROPERTY POSITION_INDEPENDENT_CODE ON) | ||
target_link_libraries(gloo_comm PUBLIC gloo logger) |
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is possible that the model does not fit into a single node