Commit Graph
6 Commits
Author SHA1 Message Date
DeryFerd 734e1038a6 fix(windows-rocm): read the interpreter pin from the recipe
scripts/windows-rocm-recipe.json is the reviewed record of the interpreter the
Windows ROCm wheels and HIP runtime were tested against. scripts/setup-api.mjs
spelled the uv request out (cpython-3.12-windows-x86_64) and repeated 3.12 in its
x64 error, and the desktop readiness constant spells it out again, so a recipe
bump would leave both asking for an interpreter the recipe no longer pins.

Add a shared helper that turns the recipe into the uv request and the displayed
version, use it in the setup script, and add a test that runs the helper through
node against the shipped recipe and compares it with the desktop constant.

tests/test_windows_rocm_recipe_pin.py runs 3 passed; reverting the setup script
makes it fail with "the ROCm branch retypes the interpreter version instead of
reading the recipe".
2026-11-17 19:30:56 +07:00
debpalash 2534bb9371 fix(setup): heal non-ASCII .pth files in source checkouts (#1783, #3726)
uv's editable install writes the checkout path into
`_editable_impl_omnivoice.pth` as UTF-8, and Python 3.11 decodes `.pth`
files in the ANSI code page. A checkout in a non-ASCII folder on a
non-UTF-8 Windows code page (Thai cp874 here) therefore could not run
`bun run setup:api` or `bun run dev`: uv's interpreter query died in
`init_import_site`. Installed runtimes were already healed; no
source-checkout path called the healer.

The healer moves to `electron/scripts/pth-ascii.mjs` (re-exported by
`src/main/pth-ascii.ts`, with a synchronous twin) so plain-Node scripts
share it. `setup:api` heals `.venv` before every uv call (each sync
rewrites the file), the dev:api supervisor before every launch, and the
app's source-checkout branch before probing the venv. Failures are
tolerated everywhere.

Inspired by #3726 by @Taksin014.
2026-11-09 17:31:58 +05:30
Shimul Debnath c7a9bfe9da fix(dev): check Node before imports and all setup paths 2026-11-07 21:25:04 +05:30
debpalash 7735e4a35e fix: Intel Mac source setup, IndexTTS speed, cast Auto voice, custom-engine first run, idle unload off the event loop
- Intel Mac checkouts get the remote-backend screen instead of an endless
  'environment incomplete' error; setup:api stops before syncing (#3584)
- IndexTTS turns public speed into native duration control; /ws/tts forwards
  a validated duration_factor (#3588)
- The dub Cast picker always offers the speaker's Auto voice (#3582)
- First run accepts a ready, selected non-default TTS engine (#3581)
- Idle, explicit and eviction unloads run off the event loop, so releasing
  device memory no longer stalls health checks (#3558)
2026-10-28 00:06:56 +05:30
Michael Maertzdorfanddebpalash d6d17c81d4 feat(gpu): add opt-in native Windows ROCm installation (#3045)
* feat(gpu): add opt-in native Windows ROCm installation

Use one pinned Windows recipe for source and Electron setup, verify native packages before reuse, and preserve explicit opt-in and sidecar compatibility boundaries.

* docs(rocm): drop agent-instruction plan files; move the entry to a changelog fragment

* fix(rocm): hash-pin every AMD artifact and keep dependencies at their locked versions

Each repo.radeon.com wheel/sdist now carries a sha256 in the recipe, the loader
refuses one without it, and the installer installs from a --hash requirements
file (uv verifies; UV_NO_VERIFY_HASHES is stripped). A constraints file pins
every installed package except the overlay (torch family, rocm*, triton*,
ctranslate2), so transitive deps no longer resolve fresh from the index. The
rocm sdist builds with the locked setuptools.

* fix(rocm): ask before switching an existing runtime to Windows ROCm

OMNIVOICE_TORCH_VARIANT=rocm used to be ignored on Windows; with this PR it
would fail readiness on update and auto-repair into a multi-GB download from
new hosts. A successful install now records its torch build (.runtime-torch);
a runtime never installed with Windows ROCm goes to the setup screen instead
of auto-repair. ROCm on Windows ARM64 reports not-ready instead of rejecting
readiness, and the setup screen names repo.radeon.com as the Windows ROCm
torch source.

* fix(rocm): resolve ROCm packages from site-packages and remember a failed GPU probe

package_root() finds torch, ctranslate2 and the ROCm SDK packages through
their distribution records in this interpreter's site-packages, so a stray
folder in the working directory of a -m child can't choose the DLL
directories. A failed HIP CT2 probe (up to 90 s) is remembered for the
process instead of 5 s, so catalogue refreshes don't re-run it; a restart,
recipe or package change runs it again.

* docs(rocm): record the owner-approved Windows ROCm endpoints and how setup checks them

* docs(structure): count the pyannote compat service module

* test(rocm): pin the host architecture in the setup-reuse readiness test

* fix(repo): untrack the committed .venv symlink and ignore symlinked envs; follow the new ROCm copy in the GPU panel test

.gitignore's '.venv/' only matches directories, so a worktree's symlinked
.venv was committed and CI's uv sync failed on it. Ignore '.venv' without the
slash and add a guard that no local environment path is ever tracked.

* test(audio-io): allow the pyannote torchaudio shim, which applies the gate's own fix to third-party calls

---------

Co-authored-by: debpalash <4178343+debpalash@users.noreply.github.com>
2026-10-26 07:29:37 +05:30
Palash Debnath b82bf0d60b fix: preserve CPU source installs and initialize Electron startup 2026-10-04 22:10:49 +05:30