Download train_loop.sh from unixdevil/social-media-post: direct link, hf CLI and curl.
- Browser
- Download file 329 Bytes
-
https://huggingface.co/datasets/unixdevil/social-media-post/resolve/main/train_loop.sh
- Command line
-
hf download hf://datasets/unixdevil/social-media-post/train_loop.sh
-
curl -L -o train_loop.sh https://huggingface.co/datasets/unixdevil/social-media-post/resolve/main/train_loop.sh
329 Bytes
| set -e | |
| echo "🚀 Starting self-improving loop..." | |
| # Step 1: Train | |
| python train_chat.py | |
| # Step 2: Generate new data | |
| python self_improve.py | |
| # Step 3: Filter | |
| python filter.py | |
| # Step 4: Replace dataset | |
| mv clean_dataset.jsonl chatml_dataset.jsonl | |
| echo "🔁 Loop complete. Run again to continue improving." | |