| set -x | |
| cd /root | |
| curl -sL https://huggingface.co/datasets/DavidBShan/flash-bench-tmp/resolve/main/gdn_fla_tilelang_bench.py -o gdn.py | |
| echo "=== OFF MODE ==="; FLA_MODE=off MODEL=Qwen/Qwen3.5-0.8B python gdn.py > off.log 2>&1 | |
| echo "=== TILELANG MODE ==="; FLA_MODE=tilelang MODEL=Qwen/Qwen3.5-0.8B python gdn.py > tl.log 2>&1 | |
| { echo "## RunPod H100 GDN A/B"; grep "RESULT_JSON\|seq=" off.log; echo "---"; grep "RESULT_JSON\|seq=\|hopper" tl.log; } > result.txt | |
| python - <<'PY' | |
| import os | |
| from huggingface_hub import upload_file | |
| upload_file(path_or_fileobj="/root/result.txt", path_in_repo="runpod_h100_result.txt", | |
| repo_id="DavidBShan/flash-bench-tmp", repo_type="dataset", token=os.environ["HF_TOKEN"]) | |
| print("UPLOADED OK") | |
| PY | |
| sleep 1800 | |