Download scripts/run21.sh from jaivial/dna-diskchat-2b-peer-v21: direct link, hf CLI and curl.
- Browser
- Download file 668 Bytes
-
https://huggingface.co/jaivial/dna-diskchat-2b-peer-v21/resolve/main/scripts/run21.sh
- Command line
-
hf download hf://jaivial/dna-diskchat-2b-peer-v21/scripts/run21.sh
-
curl -L -o run21.sh https://huggingface.co/jaivial/dna-diskchat-2b-peer-v21/resolve/main/scripts/run21.sh
668 Bytes
| # run21.sh - launch the v21 shared-pool PEER pretrain (resumable). | |
| cd /root/dna | |
| set -a; . ./.env; set +a | |
| export HF_TOKEN=$HUGGING_FACE | |
| export PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True | |
| export TORCHINDUCTOR_COMPILE_THREADS=4 | |
| export MUON_EVERY=2 NS_STEPS=3 MUT_EVERY=16 | |
| if ! pgrep -f "python stream_data.py" >/dev/null; then | |
| setsid nohup python stream_data.py >> stream.log 2>&1 < /dev/null & | |
| fi | |
| exec python train_peer_v21.py \ | |
| --batch 20 --seq 512 --nk 704 --topk 8 --pheads 1 \ | |
| --target-tokens 3e9 --max-hours "${MAXH:-20}" \ | |
| --hf-repo jaivial/dna-diskchat-2b-peer-v21 \ | |
| --out /root/dna/ckpt-peer21 --resume /root/dna/ckpt-peer21/resume.pt | |