Commit History
8 days ago
-
feat: main.py
binhcoder1709e4e398b
17 days ago
-
fix(v3turbo): keep CUDA graph captures away from all other GPU work
torch.cuda.graph() captures in "global" mode. If another thread allocates, frees, synchronises or samples on the device while a graph is being recorded, the capture can break; when cudaStreamEndCapture fails, PyTorch never clears the CUDA generator's "capturing" flag, and every later sampling call or graph replay in the process raises "Offset increment outside graph capture encountered unexpectedly" until the process restarts. A user of the VieNeu desktop app's local GPU server (SDK 3.8.3) got this error and synthesis kept failing until a reboot; a capture overlapping other GPU work is the most likely trigger. v3 Turbo captures lazily (a new batch bucket, cache length or sampling setting mid-request) from whichever thread needs the graph, and _fused_lock (2f73298) only serialises the runs of one engine. Still outside any lock: prompt embeddings and speaker anchors, the codec decode after a batch, reference encoding (encode_reference), the single-path engine, the stream scheduler's wor…c7953c7
-
Refactor Gradio apps to reduce code duplication
google-labs-jules[bot] +1: pnnbao97- Created `apps/ui_utils.py` for shared utility functions and logic. - Created `apps/ui_constants.py` for shared UI constants and default texts. - Refactored `apps/gradio_main.py` and `apps/gradio_xpu.py` to use these shared modules. - Unified `cleanup_gpu_memory` to handle CUDA, MPS, and XPU. - Fixed fallback logic path in `apps/gradio_xpu.py`. - Fixed missing import in `src/vieneu/turbo.py`. Co-authored-by: pnnbao97 <179232022+pnnbao97@users.noreply.github.com>7f2d1f6