-
Notifications
You must be signed in to change notification settings - Fork 538
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
Showing
6 changed files
with
103 additions
and
33 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 |
---|---|---|
|
@@ -2,3 +2,4 @@ loadgen/build/ | |
libmlperf_loadgen.a | ||
__pycache__/ | ||
generated/ | ||
*.swp |
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 |
---|---|---|
@@ -1,10 +1,13 @@ | ||
CHECKPOINT_PATH="${CHECKPOINT_PATH:Meta-Llama-3.1-405B-Instruct}" | ||
DATASET_PATH="${DATASET_PATH:-open-orca-val-set.pkl}" | ||
DATASET_PATH="${DATASET_PATH:mlperf_llama3.1_405b_dataset_8318.pkl}" | ||
|
||
python -u main.py --scenario Offline \ | ||
--model-path ${CHECKPOINT_PATH} \ | ||
--mlperf-conf mlperf.conf \ | ||
--user-conf user.conf \ | ||
--total-sample-count 8312 \ | ||
--dataset-path ${DATASET_PATH} \ | ||
--device cpu 2>&1 | tee server_log.log | ||
--model-path ${CHECKPOINT_PATH} \ | ||
--batch-size 16 \ | ||
--dtype float16 \ | ||
--user-conf user.conf \ | ||
--total-sample-count 8312 \ | ||
--dataset-path ${DATASET_PATH} \ | ||
--output-log-dir output \ | ||
--tensor-parallel-size ${GPU_COUNT} \ | ||
--vllm 2>&1 | tee offline.log |
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,12 +1,15 @@ | ||
|
||
|
||
CHECKPOINT_PATH="${CHECKPOINT_PATH:Meta-Llama-3.1-405B-Instruct}" | ||
DATASET_PATH="${DATASET_PATH:-open-orca-val-set.pkl}" | ||
DATASET_PATH="${DATASET_PATH:mlperf_llama3.1_405b_dataset_8318.pkl}" | ||
|
||
python -u main.py --scenario Server \ | ||
--model-path ${CHECKPOINT_PATH} \ | ||
--mlperf-conf mlperf.conf \ | ||
--user-conf user.conf \ | ||
--total-sample-count 8312 \ | ||
--dataset-path ${DATASET_PATH} \ | ||
--device cpu 2>&1 | tee server_log.log | ||
--model-path ${CHECKPOINT_PATH} \ | ||
--batch-size 16 \ | ||
--dtype float16 \ | ||
--user-conf user.conf \ | ||
--total-sample-count 8312 \ | ||
--dataset-path ${DATASET_PATH} \ | ||
--output-log-dir output \ | ||
--tensor-parallel-size ${GPU_COUNT} \ | ||
--vllm 2>&1 | tee server.log |
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,27 @@ | ||
#!/usr/bin/env bash | ||
# wkong: manually set the user info in env first | ||
|
||
set -ex | ||
|
||
if [ -z "$@" ]; then | ||
COMMAND=(bash) | ||
else | ||
COMMAND=("$@") | ||
fi | ||
|
||
apt-get update && apt-get install -y sudo | ||
|
||
getent group "${CI_BUILD_GID}" || addgroup --gid "${CI_BUILD_GID}" "${CI_BUILD_GROUP}" | ||
getent passwd "${CI_BUILD_UID}" || adduser --gid "${CI_BUILD_GID}" --uid "${CI_BUILD_UID}" --gecos "${CI_BUILD_USER} (generated by with_the_same_user script)" --disabled-password --quiet "${CI_BUILD_USER}" | ||
|
||
usermod -a -G dip "${CI_BUILD_USER}" | ||
usermod -a -G sudo "${CI_BUILD_USER}" | ||
usermod -a -G root "${CI_BUILD_USER}" | ||
|
||
echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers | ||
|
||
sudo -H -u "#${CI_BUILD_UID}" --preserve-env \ | ||
PATH="${PATH}" \ | ||
LD_LIBRARY_PATH="${LD_LIBRARY_PATH}" \ | ||
PYTHONPATH="${PYTHONPATH}" \ | ||
${COMMAND[@]} |