forked from OpenNMT/CTranslate2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support tensor parallel (OpenNMT#1599)
* tensor parallel support * add docs * small fix * fix adding bias multiple times in layer output.
- Loading branch information
1 parent
1427722
commit cec65f1
Showing
43 changed files
with
1,313 additions
and
42 deletions.
There are no files selected for viewing
This file contains 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 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 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,28 @@ | ||
# Find the NCCL libraries | ||
# | ||
# The following variables are optionally searched for defaults | ||
# NCCL_ROOT_DIR: Base directory where all NCCL components are found | ||
# | ||
# The following are set after configuration is done: | ||
# NCCL_FOUND | ||
# NCCL_INCLUDE_DIR | ||
# NCCL_LIBRARY | ||
|
||
find_path(NCCL_INCLUDE_DIR NAMES nccl.h | ||
PATHS ${NCCL_ROOT_DIR}/include | ||
) | ||
|
||
find_library(NCCL_LIBRARY NAMES nccl | ||
PATHS ${NCCL_ROOT_DIR}/lib ${NCCL_ROOT_DIR}/lib64) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(NCCL DEFAULT_MSG NCCL_INCLUDE_DIR | ||
NCCL_LIBRARY) | ||
|
||
if (NCCL_FOUND) | ||
message(STATUS "Found NCCL (include: ${NCCL_INCLUDE_DIR}, library: | ||
${NCCL_LIBRARY})") | ||
mark_as_advanced(NCCL_INCLUDE_DIR NCCL_LIBRARY) | ||
set(NCCL_VERSION "${NCCL_MAJOR}.${NCCL_MINOR}.${NCCL_PATCH}") | ||
|
||
endif () |
This file contains 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 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 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 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 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 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 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
Oops, something went wrong.