Repository navigation
Add Oruk Fourier 2B transcription pipelines (local HF and hosted API) - #110
Open
Nathan-Roll1 wants to merge 1 commit into
Open
Nathan-Roll1 wants to merge 1 commit into
Nathan-Roll1 wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds opt-in transcription support for Oruk Fourier 2B — an English-only Qwen3-ASR 1.7B fine-tune with tied output embeddings — alongside Argmax's existing Qwen3-ASR 1.7B support (
#102,#109):oruk-fourier-2b):OrukFourierEngine+OrukFourierTranscriptionPipelineloads pinnedoruk/oruk-fourier-2b@8c2a8871f1304aa2f634da4fb95e24438c4945b9directly viahuggingface_hub.snapshot_download(fetching strictly the 7 native root checkpoint files includingconfig.json, skipping ~9 GB of auxiliary GGUF/ONNX/MLX subfolders) and nativetransformers >= 5.21.0(Qwen3ASRForConditionalGeneration/AutoModelForMultimodalLM+AutoProcessor). Supports:--use-keywordsvia Qwen3-ASR's native system-prompt context biasing (apply_transcription_request(..., prompt=...)), matching OpenBench's keyword-boosting evaluation contract (earnings22-keywords).--force-languageand sequential 30 s chunking (chunk_length_s=30.0) respecting Qwen3-ASR'smax_source_positions=1500.decode_mode:"published"(default, preservesgeneration_config.json3-beam settings) or"greedy"(num_beams=1,do_sample=False).transformersimport with a clearImportErrorif the environment hastransformers < 5.21.0— zero changes topyproject.tomloruv.lock.oruk-fourier-2b-api):OrukApi+OrukApiTranscriptionPipelineuses OpenBench's existingopenaidependency againsthttps://speech-api.oruk.ai/v1/audio/transcriptions(model="oruk-fourier-2b",$0.0080/min, requiresORUK_API_KEY, optionalORUK_BASE_URL), strictly adhering to the endpoint's schema (file,model,response_format="json", and optional Englishlanguage).tests/engine/test_oruk_engine.pycovering helpers, strict API wire schema, missingORUK_API_KEY,transformers < 5.21.0guard, pinned 7-file HF download, 30 s chunking, system-prompt keyword forwarding, alias registration, and guaranteed temp-file cleanup.BENCHMARKS.mdis intentionally left untouched in this PR so official OpenBenchearnings22-keywordsnumbers can be measured and submitted cleanly as a follow-up (matching the pattern in#109).Reference Benchmarks (Hugging Face Open ASR Leaderboard)
oruk/oruk-fourier-2b@8c2a8871is live on the official Hugging Face Open ASR Leaderboard (v1.16.3,huggingface/open_asr_leaderboard#298, independently reproduced by@ebezzam), improving over baseQwen/Qwen3-ASR-1.7B-hfon all 7 default public English splits:oruk/oruk-fourier-2b(BF16)Qwen/Qwen3-ASR-1.7B-hf(BF16)Methodology note: Open ASR Leaderboard BF16 rows compare
oruk/oruk-fourier-2b's default 3-beam decoding (generation_config.json:num_beams=3,no_repeat_ngram_size=8) against greedyQwen/Qwen3-ASR-1.7B-hf. Bothdecode_mode="published"anddecode_mode="greedy"are supported inOrukFourierTranscriptionConfig.Scope, License & Affiliation
$0.0080/min).Validation
uvx ruff check src/ tests/engine/test_oruk_engine.py: All checks passeduvx ruff format --check --diff src/ tests/engine/test_oruk_engine.py: 106 files already formatteduv run pytest tests/engine/test_oruk_engine.py -vv -p no:warnings: 12 passeduv run pytest tests/ -k "not test_cpwer_real and not test_wder_real" -v -p no:warnings: 105 passed (the 4 deselected tests require privateargmaxinc/test-fixturesHF credentials)uv run openbench-cli summary --disable-datasets --disable-metrics --disable-compatibility: lists bothoruk-fourier-2b(OrukFourierTranscriptionPipeline) andoruk-fourier-2b-api(OrukApiTranscriptionPipeline)transformers 5.24.1, Apple Silicon MPS,oruk/oruk-fourier-2b@8c2a8871): fetched 7/7 pinned native files, loaded 707/707 tensors, and transcribed an English WAV clip verbatim ("The quick brown fox jumps over the lazy dog.") both plain and withprompt="quick brown fox, lazy dog"(0.326 swarm).