Download clean/image/aide/scripts/eval.sh from deepsafe/model-code: direct link, hf CLI and curl.
- Browser
- Download file 442 Bytes
-
https://huggingface.co/deepsafe/model-code/resolve/main/clean/image/aide/scripts/eval.sh
- Command line
-
hf download hf://deepsafe/model-code/clean/image/aide/scripts/eval.sh
-
curl -L -o eval.sh https://huggingface.co/deepsafe/model-code/resolve/main/clean/image/aide/scripts/eval.sh
442 Bytes
| GPU_NUM=8 | |
| WORLD_SIZE=1 | |
| RANK=0 | |
| MASTER_ADDR=localhost | |
| MASTER_PORT=29572 | |
| DISTRIBUTED_ARGS=" | |
| --nproc_per_node $GPU_NUM \ | |
| --nnodes $WORLD_SIZE \ | |
| --node_rank $RANK \ | |
| --master_addr $MASTER_ADDR \ | |
| --master_port $MASTER_PORT | |
| " | |
| PY_ARGS=${@:1} # Any other arguments | |
| python -m torch.distributed.launch $DISTRIBUTED_ARGS main_finetune.py \ | |
| --model AIDE \ | |
| --batch_size 32 \ | |
| --blr 5e-4 \ | |
| --epochs 5 \ | |
| ${PY_ARGS} | |