Merged with main's rule that presets keep a Mac on its GPU ASR engine:
MLX Whisper joins the tiered engines, and a host already on it only moves
between MLX models.
Rebuilt from a behaviour spec by an implementer who never saw the removed code (batch O: #2278, #2205, #2157).
(cherry picked from commit 72d49954a9faf0c591ba9d37ae25e8362253ab02)
Removes code from contributors without a CLA on file, leaving CLEAN-ROOM markers where the reimplementation goes.
(cherry picked from commit 1ac12d16bacef204069252ab042897aef324803b)
- Updates: render What's new as safe markdown; drop download tables and images
- Usage: accurate privacy copy (optional analytics lives in Privacy)
- Search: Models, Audio tools and Logs only when they match; theme modes,
palette names and model families are searchable
- Storage: model-cache copy, amber/red disk bar, one low-space warning
- Models: pack preselects the largest tier that fits the disk; licence chips
show text; labelled dictation toggle; one size formatter; no duplicate
Selected button; presets keep MLX/user-picked ASR engines
- Credentials: one Save per provider, accurate copy
- Privacy/Sharing/Network: clear translator labels, own history icon,
user-facing API-key placeholder, Save only when changed
- Pronunciation: short placeholders, entry count plural
- Structure: /settings opens General, nav names match pages, breadcrumb
shows the model family, no repeated page heading
- Copy: Settings -> Models instead of stale page names; plurals
- Hearth: non-red primary action colour
Remove the sponsor footer, simplify sidebar performance controls, preserve cross-platform sidebar behavior, and keep featured integrations visible in the directory. Also ensure saved performance presets finish promptly while clone-draft synchronization continues safely in the background.
For users sharing the GPU with a local LLM or other VRAM-heavy app. When
enabled (Settings > Performance & Device > Memory management, or
OMNIVOICE_OFFLOAD_AFTER_GENERATION=1; default off), the in-process TTS
model moves to system RAM once the GPU pool has been idle for a short
grace period, and the next generation moves it back through the existing
placement heal (get_model and now the cached OmniVoiceBackend path).
Works on CUDA/ROCm, XPU, NPU and MPS; a no-op on CPU. Never offloads while
another GPU job is running or queued, or while a dub/batch/audiobook job
is active. All model moves share one lock, and a failed restore leaves the
model wholly on CPU instead of split across devices.
- route snapshot gains GET /api/settings/gpu-report
- IndexTTS: inspect bootstrap's own venv candidates, not only OMNIVOICE_INDEXTTS_DIR
- report: engines missing a dep/binary/model are never counted as using the GPU
- mixed Radeon+GeForce: diagnose the card the installed torch build targets
- Linux Intel Arc: discrete detection via PCI slot, no invented VRAM figure
- wizard: unparseable NVIDIA driver metadata skips the floor check
- tests: clear the cached fake probe; per-call module resolution
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Consolidate community engine, workflow, dictation, and setup fixes with the Electron composer, sidebar, and voice UI.
Fix review findings in engine residency, remote exports, backup cleanup, bounded compressed-audio decoding, and reference preprocessing. Preserve contributor credits in CHANGELOG.md and leave the app version unchanged.
Supersedes #2325, #2338, #2368, #2377, #2379, #2380, #2383, #2384, #2387, #2390, #2391, #2392, #2393, #2395, #2400, #2401, #2402, #2409, #2410, and #2412.
On a Tesla T4 the backend exited during the first /generate with no
traceback and no HTTP response, leaving the client with
RemoteDisconnected and every later call with ConnectionRefused. Three
separate defects combined, which is why none of the reporter's
workarounds helped.
1. torch.compile(mode="reduce-overhead") captures CUDA graphs. T4
(sm_75) passed the existing arch gate, so capture was attempted and
aborted the process from inside the native CUDA library — below the
interpreter, where neither the #278 eager-fallback wrapper nor any
except clause can see it. The compile mode is now resolved per GPU:
Ampere (sm_80) and newer keep the cudagraph mode, older cards drop to
the non-cudagraph "default" mode and keep their compiled Inductor
kernels. Fails open on any probe error, so no GPU that works today
loses the optimization. OMNIVOICE_FORCE_CUDAGRAPH=1 restores it.
2. should_torch_compile() never read TORCH_COMPILE_DISABLE. main.py sets
it on win32, build_engine_env injected it into subprocesses, and
docs/install/windows.md tells users to export it — but the in-process
gate ignored it, so the reporter exported the documented variable and
still got "torch.compile applied". The gate now honours
TORCH_COMPILE_DISABLE / TORCHDYNAMO_DISABLE / TORCHINDUCTOR_DISABLE on
every platform, and an env opt-out on the parent propagates to engine
subprocesses. The settings DB path is logged alongside the toggle:
the reporter had three omnivoice.db files and edited one the backend
never opened.
3. Settings -> Performance -> "Disable torch.compile" was rendered
disabled outside Windows in both the Tauri and Electron UIs, so the
one control that would have stopped this was unreachable for the
affected Linux user. The toggle is now live on every platform, and
build_engine_env honours it everywhere rather than only on win32.
Also arms faulthandler before torch is imported, so a fatal native
signal writes the faulting thread's Python stack to backend_err.log
instead of the process vanishing silently. This does not prevent a
crash; it makes one diagnosable. OMNIVOICE_DISABLE_FAULTHANDLER=1 skips
it.
Tests fail before / pass after, verified by stashing the source and
running the new tests against unfixed code. The crash test kills a real
child interpreter with a real SIGSEGV and requires a named Python frame
in the output. test_torch_compile_path_gate's fixture now clears the
compile-disable env vars: main.py setdefaults them on win32, so on a
Windows runner they leaked into os.environ and decided those tests.
Not verified on real hardware — no Turing GPU available. The sm_80 floor
is inferred from the crash report and from docs/hardware-notes-tesla-t4.md,
which already flagged cudagraphs on T4 as attempted by default and never
evaluated.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>