Upload runner.sh with huggingface_hub
Browse files
runner.sh
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
set -x
|
| 3 |
+
cd /root
|
| 4 |
+
curl -sL https://huggingface.co/datasets/DavidBShan/flash-bench-tmp/resolve/main/gdn_fla_tilelang_bench.py -o gdn.py
|
| 5 |
+
echo "=== OFF MODE ==="; FLA_MODE=off MODEL=Qwen/Qwen3.5-0.8B python gdn.py > off.log 2>&1
|
| 6 |
+
echo "=== TILELANG MODE ==="; FLA_MODE=tilelang MODEL=Qwen/Qwen3.5-0.8B python gdn.py > tl.log 2>&1
|
| 7 |
+
{ echo "## RunPod H100 GDN A/B"; grep "RESULT_JSON\|seq=" off.log; echo "---"; grep "RESULT_JSON\|seq=\|hopper" tl.log; } > result.txt
|
| 8 |
+
python - <<'PY'
|
| 9 |
+
import os
|
| 10 |
+
from huggingface_hub import upload_file
|
| 11 |
+
upload_file(path_or_fileobj="/root/result.txt", path_in_repo="runpod_h100_result.txt",
|
| 12 |
+
repo_id="DavidBShan/flash-bench-tmp", repo_type="dataset", token=os.environ["HF_TOKEN"])
|
| 13 |
+
print("UPLOADED OK")
|
| 14 |
+
PY
|
| 15 |
+
sleep 1800
|