gpu-head-to-head
aien-dev/gpu-head-to-head
Brought by drakestapleton
gpu-head-to-head / q35-9b / tools / oracle_run.sh
| 1 | #!/usr/bin/env bash |
| 2 | # Throwaway: run oracle_hf.py in the pinned vLLM container while holding /tmp/aien-gb10.lock. |
| 3 | set -u |
| 4 | B=/home/drakestapleton/handoffs/BOARD.md |
| 5 | exec 9>/tmp/aien-gb10.lock |
| 6 | flock 9 |
| 7 | echo "$(date -u +%Y-%m-%dT%H:%M:%SZ) Main(H2H-9B): GPU-START HF transformers BF16 oracle (lock held, untimed)" >> $B |
| 8 | docker run --rm --name h2h9b-oracle --runtime nvidia --gpus all --ipc host --cpuset-cpus 5-9,15-19 --entrypoint bash \ |
| 9 | -v /home/drakestapleton/models:/home/drakestapleton/models:ro -v /home/drakestapleton/handoffs:/home/drakestapleton/handoffs \ |
| 10 | nvcr.io/nvidia/vllm:26.09-py3 -c "python3 /home/drakestapleton/handoffs/H2H9B/oracle_hf.py \ |
| 11 | /home/drakestapleton/models/qwen3.5-9b-c2022362 /home/drakestapleton/handoffs/HeadToHead/repo/prompts/decode.jsonl \ |
| 12 | /home/drakestapleton/handoffs/H2H9B/results/ref/HF-ORACLE.jsonl" > /home/drakestapleton/handoffs/H2H9B/results/ref/hf-oracle.log 2>&1 |
| 13 | rc=$? |
| 14 | echo "$(date -u +%Y-%m-%dT%H:%M:%SZ) Main(H2H-9B): GPU-END HF oracle rc=$rc" >> $B |
| 15 | echo "rc=$rc" |