interplane.Get Omega
Read in your language

omega-mv

Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.

Brought by drakestapleton

Add head-to-head benchmark protocol and harness for GPU comparison

open 8b0d1d34d9ae6204 #2 · opened 2026-11-14 02:49 UTC

Imported from GitHub drakestapleton/omega-mv#2, by drakestapleton

Base 91f88c287d7831784a808c5b054818fd9055afb5 · Head b00b060b702880bb35fe8e9b618be340e648179d

drakestapleton wrote on 2026-11-14 02:49 UTC

Summary

This PR introduces a comprehensive head-to-head benchmarking protocol and harness for comparing Omega against llama.cpp on the same GPU hardware. It includes GPU clock locking to ensure stable measurements, precision declaration and verification, and a complete testing framework.

Key Changes

  • tools/h2h/clock_lock.sh: New shell script that locks GPU clocks during benchmark runs using nvidia-smi -lgc/-rgc. Provides four operations:
    • lock: Set GPU clock to a target frequency and verify it's held
    • check: Verify the clock hasn't drifted from the target
    • release: Reset GPU clocks to default
    • run: Execute a command with automatic lock/check/release lifecycle
    • Exits with status 3 for hardware blocks (lock refused, unreadable clock) and 4 for clock drift during execution
    • Logs all state changes and clock readings to clock-lock.txt
  • docs/perf/HEAD_TO_HEAD_PROTOCOL.md: Comprehensive protocol document defining:

    • What is compared (two engines, one machine, one model, greedy decoding)
    • Machine state recording (GPU clock, power, temperature, performance state)
    • Clock locking requirements (not just logging) to prevent drift
    • Precision naming end-to-end (weights format, dtype, KV cache dtype)
    • Tokenization consistency requirements
    • Declaration and parity checking process
    • Round structure (warm-up + 5 timed rounds, alternating engines)
    • Publication requirements and receipt contents
  • tools/h2h/parity_check.sh: New script that validates two benchmark declarations are equivalent:

    • Reads key=value declaration files from both sides
    • Verifies required fields are present and non-placeholder values
    • Checks that critical fields match (dtypes, tokenizer, prompt tokens, etc.)
    • Exits 0 for SAME_WORK, 1 for DIFFERENT_WORK (format rows), 3 for incomplete declarations
    • Handles case-insensitive dtype comparisons
  • tools/h2h/selftest.sh: Host-only test suite with 33 checks:

    • Tests clock_lock.sh logic against a scripted nvidia-smi stand-in
    • Validates lock acceptance, target from driver maximum, command status passthrough
    • Tests failure modes: refused lock, unreadable clock, lock not held, drift detection
    • Tests signal handling (INT/TERM/HUP)
    • Tests parity_check.sh verdicts (same work, format differences, missing fields)
    • Requires no GPU or driver; validates harness logic only
  • docs/OMEGA.md: Updated bar P0 reference to point to the new protocol document

  • CONTRIBUTORS.md: Added Drake Stapleton credit for the head-to-head protocol work

Notable Implementation Details

  • Clock locking uses tolerance-based verification (H2H_CLOCK_TOL_MHZ, default 10 MHz) to account for minor driver variations
  • Configurable settle time after lock (H2H_SETTLE_S, default 1 second) before verification
  • Comprehensive logging with ISO 8601 timestamps for reproducibility
  • Signal handlers ensure clock is released even if command is interrupted
  • Parity check normalizes values to lowercase for robust comparison
  • Protocol explicitly blocks Q4_K_M against F16 comparisons and requires format labeling for different encodings
  • Tokenization must be identical on both sides; prompt tokens are pre-computed and verified

Fetch it

A git bundle of the pull request's head, 137654 bytes.

curl -fsSL https://interplane.io/drakestapleton/omega-mv/patches/8b0d1d34d9ae6204.bundle -o 8b0d1d34d9ae6204.bundle
git fetch 8b0d1d34d9ae6204.bundle refs/pull/2/head

Raw bundle

Provenance

This proposal is imported from GitHub; it is not signed by its author. Its import statement and source record:

github-import 1
drakestapleton/omega-mv
2
b00b060b702880bb35fe8e9b618be340e648179d
{"kind":"github-import","owner":"drakestapleton","repo":"omega-mv","number":2,"url":"https://github.com/drakestapleton/omega-mv/pull/2","export_sha256":"7a4dc05cfaafc4ff4b6c7811f8b55128091a7d4d233c7761f900f26220660f83","imported_utc":"2026-11-18T16:39:51Z"}

Changes

There is no diff: the base commit is not in this project's git store.