Skip to content

Commit 9dde5c1

Browse files
committed
test fix
Signed-off-by: Terry Kong <terryk@nvidia.com>
1 parent affd793 commit 9dde5c1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/functional/grpo_async_gym.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,16 @@ cd $PROJECT_ROOT
2424
# Follow nemo-gym instructions here to get this data:
2525
# https://docs.nvidia.com/nemo/gym/0.1.0/tutorials/nemo-rl-grpo/setup.html#training-nemo-rl-grpo-setup
2626
cd 3rdparty/Gym-workspace/Gym
27+
28+
# We need HF_TOKEN to download the data from huggingface
29+
if [[ ! -f env.yaml ]]; then
30+
if [[ -z "${HF_TOKEN:-}" ]]; then
31+
echo "[ERROR] HF_TOKEN is not set"
32+
exit 1
33+
fi
34+
echo "hf_token: $HF_TOKEN" >> env.yaml
35+
fi
36+
2737
config_paths="responses_api_models/vllm_model/configs/vllm_model_for_training.yaml,\
2838
resources_servers/workplace_assistant/configs/workplace_assistant.yaml"
2939

0 commit comments

Comments
 (0)