Skip to content

Commit

Permalink
[examples] Update examples using deprecated SKYPILOT_JOB_ID (#3344)
Browse files Browse the repository at this point in the history
Update examples
  • Loading branch information
romilbhardwaj authored Mar 21, 2024
1 parent 25c7ef5 commit cd8a8c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions examples/tensorflow_distributed/tf_distributed.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ run: |
'index': node_rank
}
}
with open(f'/tmp/{os.environ.get("SKYPILOT_JOB_ID")}', 'w') as f:
with open(f'/tmp/{os.environ.get("SKYPILOT_TASK_ID")}', 'w') as f:
json.dump(tf_config, f)
EOF
# Read and set TF_CONFIG from file
export TF_CONFIG=$(cat /tmp/$SKYPILOT_JOB_ID)
export TF_CONFIG=$(cat /tmp/$SKYPILOT_TASK_ID)
echo $TF_CONFIG
# ======== Run the training script ========
Expand Down
2 changes: 1 addition & 1 deletion llm/vicuna/train.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ run: |
--fsdp_transformer_layer_cls_to_wrap 'LlamaDecoderLayer' \
--tf32 True \
--model_max_length ${SEQ_LEN} \
--run_name $SKYPILOT_JOB_ID \
--run_name $SKYPILOT_TASK_ID \
--gradient_checkpointing True \
--lazy_preprocess True
Expand Down

0 comments on commit cd8a8c1

Please sign in to comment.