-
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.
- Loading branch information
1 parent
d13d93e
commit e9f4332
Showing
1 changed file
with
18 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,19 @@ | ||
# collective_matmul | ||
|
||
This unit test composes two back-to-back GEMM layers (FC1 and FC2 of LLM MLP). FC1 does AG+GEMM, and FC2 does GEMM+RS. | ||
|
||
## Running examples | ||
|
||
### 175B config | ||
|
||
`python collective_matmul.py --dp 2 --tp 4` | ||
|
||
You can change dp (Data Parallel) and tp (Tensor Model Parallel) by simply giving differen numbre to above commandline. | ||
|
||
To run baseline (i.e., no overlapping), add `--no_tp_overlap` in the commandline. | ||
|
||
### 5B config | ||
|
||
`python collective_matmul.py --batch_size 4 --hidden_size 4096` | ||
|
||
DP, TP, and overlapping arguments are configured in the same way as 175B. |