Download bash.sh from bmnzyb/CampGPT_X: direct link, hf CLI and curl.
- Browser
- Download file 946 Bytes
-
https://huggingface.co/bmnzyb/CampGPT_X/resolve/main/bash.sh
- Command line
-
hf download hf://bmnzyb/CampGPT_X/bash.sh
-
curl -L -o bash.sh https://huggingface.co/bmnzyb/CampGPT_X/resolve/main/bash.sh
946 Bytes
| torchrun --standalone --nproc_per_node=2 train_gpt2.py | |
| torchrun --standalone --nproc_per_node=2 train_gpt2_simple.py | |
| torchrun --standalone --nproc_per_node=2 train_CampGPT_X.py | |
| python train_CampGPT_X.py | |
| CUDA_VISIBLE_DEVICES=1 python train_CampGPT_X_plus.py | |
| CUDA_VISIBLE_DEVICES=0,1 torchrun --nproc_per_node=2 train_CampGPT_X_plus.py | |
| CUDA_VISIBLE_DEVICES=0,1,2,3 torchrun --nproc_per_node=4 train_CampGPT_X_plus.py | |
| # 按顺序执行 | |
| CUDA_VISIBLE_DEVICES=0,1,2,3 torchrun --nproc_per_node=4 train_CampGPT_X_plus.py | |
| CUDA_VISIBLE_DEVICES=1 python train_sft.py | |
| CUDA_VISIBLE_DEVICES=1 python train_dpo.py | |
| CUDA_VISIBLE_DEVICES=1 python export_hf.py | |
| # cli single api | |
| CUDA_VISIBLE_DEVICES=1 python serve.py --mode cli | |
| CUDA_VISIBLE_DEVICES=1 python serve.py --mode single | |
| CUDA_VISIBLE_DEVICES=1 python serve.py --mode api | |
| CUDA_VISIBLE_DEVICES=1 python test_sft.py | |
| CUDA_VISIBLE_DEVICES=1 python test_dpo.py | |
| bash campgpt-student-handbook/upload.sh | |