Commit Graph
15 Commits
Author SHA1 Message Date
velixio 3f8313791f refactor(backend): clean-room reimplementation of the Windows subprocess fallback, dub mix spill, CTranslate2 repair, audiobook join keys, capture fallback, Urdu verbalization, dictation prompt and Tailscale helpers
Rebuilds the remaining contributor backend units from a behaviour spec; public names, endpoints, JSON shapes and on-disk formats are unchanged.
2026-10-28 00:06:55 +05:30
velixio 8eb12caf27 chore(provenance): remove W7 backend helpers pending clean-room reimplementation
Removes code from contributors without a CLA on file, leaving CLEAN-ROOM markers where the reimplementation goes.
2026-10-28 00:06:55 +05:30
velixio 67659842d1 fix(setup): keep the clean-room ROCm wording after merging main 2026-10-27 11:54:03 +05:30
velixio 7a1b322e55 Merge remote-tracking branch 'origin/main' into cla/rewrite-wave-1
# Conflicts:
#	electron/src/renderer/src/features/projects/projects-page.tsx
#	electron/src/renderer/src/i18n/locales/ar.json
#	electron/src/renderer/src/i18n/locales/de.json
#	electron/src/renderer/src/i18n/locales/en.json
#	electron/src/renderer/src/i18n/locales/es.json
#	electron/src/renderer/src/i18n/locales/fr.json
#	electron/src/renderer/src/i18n/locales/hi.json
#	electron/src/renderer/src/i18n/locales/id.json
#	electron/src/renderer/src/i18n/locales/it.json
#	electron/src/renderer/src/i18n/locales/ja.json
#	electron/src/renderer/src/i18n/locales/ko.json
#	electron/src/renderer/src/i18n/locales/nl.json
#	electron/src/renderer/src/i18n/locales/pl.json
#	electron/src/renderer/src/i18n/locales/pt.json
#	electron/src/renderer/src/i18n/locales/ru.json
#	electron/src/renderer/src/i18n/locales/sv.json
#	electron/src/renderer/src/i18n/locales/th.json
#	electron/src/renderer/src/i18n/locales/tr.json
#	electron/src/renderer/src/i18n/locales/uk.json
#	electron/src/renderer/src/i18n/locales/vi.json
#	electron/src/renderer/src/i18n/locales/zh-CN.json
#	electron/src/renderer/src/i18n/locales/zh-TW.json
#	scripts/setup.py
#	tests/test_setup_rocm_variant.py
2026-10-27 11:50:16 +05:30
debpalash 726114f8eb fix(engines): address #3553 review
- Setup GPU row no longer says "CUDA ready" when the wheel lacks the card's
  kernels, matching the routing row.
- Sidecar engines with their own torch keep the kernel caveat; only engines
  on the parent runtime get the CPU-fallback badge.
- A failing installed cl.exe is a build error, not a missing compiler.
- Verify the ROCm swap produced a HIP build (Electron and setup.py) before
  reporting success or writing the ready marker.
- model_manager keeps its own FORCE_CUDA reader (no new import cycle); a test
  pins it to device_caps.cuda_forced().
2026-10-27 10:18:16 +05:30
debpalash 89b8f4fee1 fix(engines): route unsupported GPUs to CPU, finish the Linux ROCm swap, name missing build tools
- Routing badge falls back to CPU for a CUDA card the wheel has no kernels
  for (sm_52 Maxwell on cu128), matching the loader; one cuda_forced()
  reading shared by loader, badge and GPU report (#3067).
- Linux ROCm torch swap reinstalls only the torch trio from an extra index;
  --index-url + --reinstall made Pillow 13 unresolvable (#3158, #3418).
- Sidecar installs that fail for lack of a C++ compiler say so and name the
  build tools per OS instead of blaming the network (#3423).
2026-10-27 09:51:41 +05:30
velixio c103163b14 refactor: clean-room reimplementation of dub segment staging, Malayalam numbers, GGUF controls and ROCm setup
Rewritten from a behavioural spec by an implementer without access to the
removed code, so every line has CLA-covered provenance: memmap-staged dub
assembly and segment cache, the native Malayalam number verbalizer, the
OpenAI-compatible speech extension controls forwarded to the GGUF engine,
and the opt-in ROCm torch swap in source setup.

(cherry picked from commit 0d4d3b00cb536f8974e1495aba1f05cabe3d0f1d)
2026-10-27 02:35:27 +05:30
velixio 9d9d74bc2b chore(provenance): remove ROCm source setup, Malayalam numbers, GGUF controls and dub streaming assembly pending clean-room reimplementation
Removes code from contributors without a CLA on file, leaving CLEAN-ROOM markers where the reimplementation goes.

(cherry picked from commit f209084aa188804271d4f71f7acaaa7b1bbeb6c8)
2026-10-27 02:34:18 +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
Palash Debnath d6348b56f2 chore: retire legacy Tauri app and UI 2026-09-26 11:26:48 -07:00
Parker Hill 078bad8e0f fix(setup): repair fresh-clone desktop and ROCm source installs (#1664, #1665)
Fix fresh-clone desktop development by creating the required dist placeholder before Tauri starts, and make source setup install the selected CUDA or ROCm PyTorch stack consistently. Adds behavior-level cross-platform regression coverage.\n\nFixes #1664.\nFixes #1665.\n\nThanks @uberclokr for the contribution.
2026-08-27 18:33:55 +05:30
debpalashandClaude Opus 4.8 175989241d fix(setup): force UTF-8 output so setup.py doesn't crash on piped stdout (Windows)
`scripts/setup.py` prints ✓/⚙ status glyphs. When its stdout is a pipe rather
than an interactive console — which is exactly the case under `bun run
setup:api` and in CI — Windows Python encodes with the cp1252 codepage, which
can't represent those characters, so the script dies with UnicodeEncodeError
mid-setup and takes `bun desktop` down at the setup:api step. It only "works"
interactively by luck of the console encoding.

Reconfigure sys.stdout/sys.stderr to UTF-8 (errors="replace") at startup so the
output is identical whether run interactively or piped. No-op where the streams
already speak UTF-8 (macOS/Linux, modern Windows Terminal) or can't be
reconfigured. Verified: `bun desktop` from a stale terminal now completes
setup:api with piped stdout and launches the app.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-17 14:25:40 -07:00
72d137e1f3 fix(bootstrap): port cuDNN 8 (NVIDIA CUDA GPU) + VC++ redist to packaged installs (#869)
* fix(bootstrap): port cuDNN 8 (NVIDIA CUDA GPU) + VC++ redist install into ensure_venv_ready()

* fix(bootstrap): address #869 review — drop dead VC++ half, cache negative CUDA probe, gate on ROCm, sync docs

Per maintainer review on #869:

1. Drop the VC++ Redistributable half: LoadLibraryA("vcruntime140.dll")
   from the running Tauri exe is a tautology (the exe itself links the
   MSVC CRT, so the process wouldn't be running without it), and torch's
   real failure mode is msvcp140.dll inside the venv python process.
   Dead code removed; a comment records why for future readers.

2. Stop taxing every non-CUDA launch: a negative torch probe (CPU /
   Intel / AMD — most installs) is now cached in a
   .venv/.cudnn8_probe_negative marker, so the synchronous `import
   torch` runs at most once per venv lifetime. Invalidated on every
   path that can change the torch build (drift sync #307, repair sync,
   first-run sync, ROCm reinstall) and implicitly by a venv rebuild.
   A probe that fails to run cleanly is skipped WITHOUT caching so a
   transient error can't wedge a real CUDA machine.

3. Rewrite docs/install/troubleshooting.md §10 to the actual root
   cause: packaged installs never had the cudnn8_compat libs (so
   reinstalling never restored them); the bootstrap now installs them
   automatically on CUDA machines, with the manual uv pip command as
   the offline fallback and PyTorch Whisper as the sidestep.

4. Gate the ~700 MB nvidia-cudnn-cu12 download on the venv torch being
   a real CUDA build: the probe now reports 'hip' before checking
   cuda.is_available() (which HIP spoofs), so opt-in ROCm installs
   (#124) never fetch the CUDA wheel.

Also reflow the CHANGELOG entry to house style (bold one-line lead,
1-3 lines of why, (#827, #869) refs) and extend the bootstrap unit
tests: classify_cuda_probe verdict mapping and the marker
write/invalidate round-trip (6 cuDNN tests total, 43 lib tests green).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

---------

Co-authored-by: mergetest <test@local>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-07-02 22:23:06 +05:30
Palash Debnath 1941e3fcc0 fix(docker): GPU detection in containers + compose profiles + sonitranslate cuDNN sub-repo (#74)
Docker GPU support hardening + documentation.

- Restores docker compose --profile gpu up path; documents NVIDIA Container Toolkit setup in README
- Splits CPU vs GPU compose services cleanly (deploy/docker-compose.yml)
- backend/api/routers/setup/wizard.py: GPU detection in containerized environments uses torch.cuda fallback
- New scripts/setup.py replaces deleted scripts/setup_cudnn.py
- New test: tests/test_setup_preflight.py
- CHANGELOG.md + README.md updated

Complementary to PR #77 (community PYTHONPATH fix) — different sections of docker-compose.yml.
2026-05-18 16:31:01 +05:30