Skip to content

Commit

Permalink
source env.sh in train.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
bhavya01 committed Nov 1, 2024
1 parent 0c78c70 commit c1a5099
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion training/trillium/Mixtral-8x7B-Pytorch/XPK/train.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

source env.sh

# Extract the number after '-' in TPU_TYPE
TPU_NUM=$(echo "$TPU_TYPE" | grep -oP '(?<=-)\d+')

Expand All @@ -21,7 +23,7 @@ export PROFILE_DURATION_MS=100000
export PROFILE_LOGDIR=${PROFILE_LOG_DIR}
export XLA_PERSISTENT_CACHE_PATH=/app/xla_cache/
export TPU_LIBRARY_PATH=/workspace/_libtpu.so
export NUM_SLICE=${NUM_SLICE}
export NUM_TPU_SLICE=${NUM_SLICE}
export LIBTPU_INIT_ARGS="--xla_tpu_enable_flash_attention=false --xla_tpu_enable_async_collective_fusion=true --xla_tpu_enable_async_collective_fusion_fuse_all_gather=true --xla_tpu_enable_async_collective_fusion_multiple_steps=true --xla_tpu_overlap_compute_collective_tc=true --xla_enable_async_all_gather=true --xla_tpu_scoped_vmem_limit_kib=81920"

huggingface-cli login --token=${HF_TOKEN}
Expand Down

0 comments on commit c1a5099

Please sign in to comment.