cadence/tests
pedro-bento 1f9a9b4e77 fix(cuda): offload cached aligner before loading the next ASR model
On a 6 GB GPU the Wav2Vec2 aligner kept in `align_cache` across inputs was
still resident when the next input loaded Whisper large-v3, so CUDA init
failed with out-of-memory and silently fell back to CPU (catastrophic for
long recordings).

`load_or_transcribe` now offloads cached aligner weights to CPU (freeing
their VRAM) right before the ASR model loads; `_align_with_whisperx` moves
them back to the align device before aligning, since whisperx.align never
moves the model itself. Entries that cannot be moved are evicted so they
reload from scratch.
2026-10-06 20:51:15 +01:00
..
conftest.py Version 0.1.0 (#1) 2026-09-30 18:33:59 +01:00
test_core.py Version 0.1.0 (#1) 2026-09-30 18:33:59 +01:00
test_handoff.py feat(handoff): emit a single uploadable handoff.zip bundle 2026-10-05 18:21:04 +01:00
test_kdenlive.py Version 0.1.0 (#1) 2026-09-30 18:33:59 +01:00
test_render.py feat(render): support multi-input concatenated --render 2026-10-06 20:40:12 +01:00
test_transcripts.py Version 0.1.0 (#1) 2026-09-30 18:33:59 +01:00
test_version.py Version 0.1.0 (#1) 2026-09-30 18:33:59 +01:00
test_whisper_unload.py fix(cuda): offload cached aligner before loading the next ASR model 2026-10-06 20:51:15 +01:00