fix(whisper): don't force CTranslate2's cub_caching allocator #9

Merged
pedro-bento merged 1 commit from fix/whisper-cuda-allocator into master 2026-10-17 21:59:39 +01:00
Owner

Forcing CT2_CUDA_ALLOCATOR=cub_caching pre-reserves a large working set
(~2 GB extra measured on an RTX 3060), which pushes large-v3 over a 6 GB
card's budget and causes the very OOM it was meant to avoid. Leave the
default cuda_malloc_async allocator in place.

Measured on an RTX 3060 Laptop (6 GB): large-v3 int8_float16 keeps ~1.9 GB
resident with the default allocator and transcribes a 2750 s file at a
~3.1 GB peak; with cub_caching the same model needs ~3.9 GB before decoding.

Forcing CT2_CUDA_ALLOCATOR=cub_caching pre-reserves a large working set (~2 GB extra measured on an RTX 3060), which pushes large-v3 over a 6 GB card's budget and causes the very OOM it was meant to avoid. Leave the default cuda_malloc_async allocator in place. Measured on an RTX 3060 Laptop (6 GB): large-v3 int8_float16 keeps ~1.9 GB resident with the default allocator and transcribes a 2750 s file at a ~3.1 GB peak; with cub_caching the same model needs ~3.9 GB before decoding.
pedro-bento added 1 commit 2026-10-17 21:38:07 +01:00
fix(whisper): don't force CTranslate2's cub_caching allocator
All checks were successful
CI / lint-and-test (pull_request) Successful in 12s
Version bump / version-bump (pull_request) Successful in 6s
1609a9f11c
Forcing CT2_CUDA_ALLOCATOR=cub_caching pre-reserves a large working set
(~2 GB extra measured on an RTX 3060), which pushes large-v3 over a 6 GB
card's budget and causes the very OOM it was meant to avoid. Leave the
default cuda_malloc_async allocator in place.

Measured on an RTX 3060 Laptop (6 GB): large-v3 int8_float16 keeps ~1.9 GB
resident with the default allocator and transcribes a 2750 s file at a
~3.1 GB peak; with cub_caching the same model needs ~3.9 GB before decoding.
pedro-bento merged commit 4bee851d5d into master 2026-10-17 21:59:39 +01:00
pedro-bento deleted branch fix/whisper-cuda-allocator 2026-10-17 21:59:39 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: pedro-bento/cadence#9
No description provided.