Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
linkchw committed Aug 15, 2024
1 parent 99485df commit c888fa9
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,15 @@ echo "Setting permissions for 'train/' directory..."
chmod 777 train/

echo "Running the Docker container..."
docker run --gpus all --rm -u $(id -u):$(id -g) -v $(pwd)/train:/train train:v1
docker run \
--gpus all \
--rm \
-u $(id -u):$(id -g) \
-v $(pwd)/train:/train \
-e HF_HOME=/train/.cache/huggingface \
-w "/train/code" \
train:v1 \
python3 main.py

if [ $? -ne 0 ]; then
echo "Failed to run Docker container."
Expand Down

0 comments on commit c888fa9

Please sign in to comment.