Scriptwriter dataset sync
Browse files- restart-train.sh +16 -1
- scriptwriter-runpod-ready.tgz +2 -2
restart-train.sh
CHANGED
|
@@ -1,8 +1,23 @@
|
|
| 1 |
#!/bin/bash
|
| 2 |
# curl -fsSL "https://huggingface.co/datasets/datamatters24/scriptwriter-runpod/resolve/main/restart-train.sh" | bash
|
| 3 |
set -euo pipefail
|
|
|
|
|
|
|
|
|
|
| 4 |
tmux kill-session -t scriptwriter-train 2>/dev/null || true
|
| 5 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
|
| 7 |
DEST=/workspace/scriptwriter-runpod
|
| 8 |
TGZ=/tmp/scriptwriter-runpod-ready.tgz
|
|
|
|
| 1 |
#!/bin/bash
|
| 2 |
# curl -fsSL "https://huggingface.co/datasets/datamatters24/scriptwriter-runpod/resolve/main/restart-train.sh" | bash
|
| 3 |
set -euo pipefail
|
| 4 |
+
|
| 5 |
+
echo "=== Force-stopping old training ==="
|
| 6 |
+
# Kill tmux session hard
|
| 7 |
tmux kill-session -t scriptwriter-train 2>/dev/null || true
|
| 8 |
+
tmux kill-server 2>/dev/null || true
|
| 9 |
+
# Kill any leftover trainers / python
|
| 10 |
+
pkill -9 -f 'train_runpod.py' 2>/dev/null || true
|
| 11 |
+
pkill -9 -f 'scripts/train_runpod' 2>/dev/null || true
|
| 12 |
+
sleep 2
|
| 13 |
+
# Confirm gone
|
| 14 |
+
if pgrep -af 'train_runpod' >/dev/null 2>&1; then
|
| 15 |
+
echo "WARNING: train process still alive:"
|
| 16 |
+
pgrep -af 'train_runpod' || true
|
| 17 |
+
pkill -9 -f train_runpod || true
|
| 18 |
+
sleep 1
|
| 19 |
+
fi
|
| 20 |
+
echo "Old session cleared."
|
| 21 |
|
| 22 |
DEST=/workspace/scriptwriter-runpod
|
| 23 |
TGZ=/tmp/scriptwriter-runpod-ready.tgz
|
scriptwriter-runpod-ready.tgz
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:502a6b7abb7d6490b8244c1761583f821088f21a980de7e7ef2e717f880cdc26
|
| 3 |
+
size 9512
|