Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-mv/tree/main/om/gpu/spec # 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 Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-mv / om / gpu / spec` `f840a6e` seed/build: migrate build, release, and automation coordinators to pure seeded OM-2 Drake Stapleton committed 2026-11-22 ``` .. README.md 1817 build.sh 522 check_mtp_varlen.om 7033 mtp_varlen.om 11428 ngram_draft.om 3149 ``` README.md # Pure Seeded OM-2 Speculative Decoding Scheduler (`om/gpu/spec/`) Zero-heap, zero-C, zero-CUDA Omega implementation of DeepInfer's confidence-scheduled variable-length speculative verification engine (`MTPVarlen` from `deepseek-ai/DeepInfer/csrc/engine/mtp_varlen.hpp`) plus a zero-training N-gram prompt-lookup drafter calibrated with per-depth EMA acceptance probabilities. ## Modules - `mtp_varlen.om`: - Hardware decode throughput curve (`specCurveM`, `specCurveMs`, initialized for GB10 via `specInitGb10DefaultCurve` or live-calibrated via `specAddCurvePoint`). - Online `ForwardRuntimeEstimator` (per-graph-size sliding median + median-of-medians slope, clamped `>= 0.0`) and `SamplerRuntimeEstimator` (9-sample sliding median per `num_seqs` with global fallback). - `specSchedule(numSeqs)`: exact `N-2` total-budget (`best_bsz`) + `N-1` per-stream (`specOutLens`) async-decoupled scheduler maximizing `expected_accepted / (baseline_ms + slope_ms * graph_size + sampler_ms)`. - `specVerifyGreedy(...)`: lossless greedy speculative verification (`a + 1` emitted tokens bit-identical to target greedy decoding). - `ngram_draft.om`: - Longest-suffix (4-gram → 2-gram) prompt/context lookup drafter (`k <= 5`) with online per-depth EMA acceptance calibration (`ngObserveResult`), producing cumulative per-position acceptance rates in the same format as a DSpark Confidence Head. - `check_mtp_varlen.om`: - Host self-test & negative-control gate (light load full draft, heavy load knee trimming, async `N-2`/`N-1` decoupling, online runtime estimators + negative-slope clamp, lossless greedy verification + N-gram drafter, hostile-input refusal). ## Build and Verify (AArch64 Linux) ``` sh seed/omega-from-seed.sh sh om/gpu/spec/build.sh build/spec build/spec/check_mtp_varlen ```