add checkpoints
Browse files- auto-git.sh +22 -0
auto-git.sh
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
|
| 3 |
+
# Path to your local repository
|
| 4 |
+
REPO_PATH="/content/outputs"
|
| 5 |
+
|
| 6 |
+
while true
|
| 7 |
+
do
|
| 8 |
+
# Navigate to the repository
|
| 9 |
+
cd "$REPO_PATH" || exit
|
| 10 |
+
|
| 11 |
+
# Stage your folder
|
| 12 |
+
git add Qwen-0.5B-GRPO/
|
| 13 |
+
|
| 14 |
+
# Commit changes with a fixed message
|
| 15 |
+
git commit -m 'add checkpoints'
|
| 16 |
+
|
| 17 |
+
# Push to remote
|
| 18 |
+
git push
|
| 19 |
+
|
| 20 |
+
# Sleep for 600 seconds (10 minutes)
|
| 21 |
+
sleep 600
|
| 22 |
+
done
|