Download scripts/run_qwen3_1_7b_benchmark_queue.sh from yaro1214/daim: direct link, hf CLI and curl.
- Browser
- Download file 1.74 kB
-
https://huggingface.co/yaro1214/daim/resolve/main/scripts/run_qwen3_1_7b_benchmark_queue.sh
- Command line
-
hf download hf://yaro1214/daim/scripts/run_qwen3_1_7b_benchmark_queue.sh
-
curl -L -o run_qwen3_1_7b_benchmark_queue.sh https://huggingface.co/yaro1214/daim/resolve/main/scripts/run_qwen3_1_7b_benchmark_queue.sh
1.74 kB
| set -uo pipefail | |
| SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd) | |
| PROJECT_DIR=$(dirname "$SCRIPT_DIR") | |
| SPEC_FORGE_DIR=$(dirname "$PROJECT_DIR")/SpecForge | |
| QUEUE_LOG=${QUEUE_LOG:-$PROJECT_DIR/outputs/qwen3-1.7b-benchmark-queue.log} | |
| BASELINE_OUTPUT=${BASELINE_OUTPUT:-$PROJECT_DIR/outputs/qwen3-1.7b-dflash-mask-baseline-benchmark-full} | |
| V4_OUTPUT=${V4_OUTPUT:-$PROJECT_DIR/outputs/qwen3-1.7b-target-hidden-v4-relay-benchmark} | |
| V5_OUTPUT=${V5_OUTPUT:-$PROJECT_DIR/outputs/qwen3-1.7b-target-hidden-v5-relay-benchmark-full} | |
| V4_CHECKPOINT=${V4_CHECKPOINT:-$SPEC_FORGE_DIR/outputs/qwen3-1.7b-target-hidden-v4-relay-wandb-final-fixed-shape/epoch_5_step_14340} | |
| V5_CHECKPOINT=${V5_CHECKPOINT:-$SPEC_FORGE_DIR/outputs/qwen3-1.7b-target-hidden-v5-relay/epoch_5_step_14340} | |
| mkdir -p "$(dirname "$QUEUE_LOG")" | |
| run_stage() { | |
| local name=$1 | |
| shift | |
| printf '%s start %s\n' "$(date --iso-8601=seconds)" "$name" | tee -a "$QUEUE_LOG" | |
| if "$@"; then | |
| printf '%s complete %s\n' "$(date --iso-8601=seconds)" "$name" | tee -a "$QUEUE_LOG" | |
| else | |
| local status=$? | |
| printf '%s failed(%s) %s\n' "$(date --iso-8601=seconds)" "$status" "$name" | tee -a "$QUEUE_LOG" | |
| fi | |
| } | |
| run_baseline() { | |
| OUTPUT_ROOT="$BASELINE_OUTPUT" \ | |
| "$SCRIPT_DIR/run_qwen3_1_7b_dflash_baseline_benchmark_suite.sh" | |
| } | |
| run_v4_recovery() { | |
| CHECKPOINT="$V4_CHECKPOINT" OUTPUT_ROOT="$V4_OUTPUT" \ | |
| "$SCRIPT_DIR/run_qwen3_1_7b_benchmark_suite.sh" | |
| } | |
| run_v5_recovery() { | |
| CHECKPOINT="$V5_CHECKPOINT" OUTPUT_ROOT="$V5_OUTPUT" \ | |
| "$SCRIPT_DIR/run_qwen3_1_7b_benchmark_suite.sh" | |
| } | |
| run_stage dflash-mask-baseline run_baseline | |
| run_stage v4-recovery run_v4_recovery | |
| run_stage v5-recovery run_v5_recovery | |