Upload variant_a/logs/watchdog_eq.sh with huggingface_hub
Browse files
variant_a/logs/watchdog_eq.sh
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
while true; do
|
| 3 |
+
if ! ps aux | grep -v grep | grep -q "results_eq_bench"; then
|
| 4 |
+
echo "EQ_BENCH DONE at $(date)" >> /workspace/eval_status.txt
|
| 5 |
+
cp -r /dev/shm/eval/results_eq_bench/ /workspace/results_eq_bench/
|
| 6 |
+
hf upload Jakubrd4/bielik-q2-sharp-docs /dev/shm/eval/results_eq_bench/full_results.json results_eq_bench_full.json --token HF_TOKEN_REDACTED --repo-type dataset 2>&1
|
| 7 |
+
echo "EQ_BENCH UPLOADED at $(date)" >> /workspace/eval_status.txt
|
| 8 |
+
break
|
| 9 |
+
fi
|
| 10 |
+
sleep 120
|
| 11 |
+
done
|