Skip to content

eager_warm_up_for_inference() causing weird memory allocation #27

Description

@GNBS711

Hey!

I found what appears to be a VRAM allocation issue when using OmniVoice together with Whisper validation.

Tested on: Win11, model OmniVoice + Whisper large-v3-turbo (CUDA)

After some debugging, I traced the behavior to:
model_manager.py

if should_stt:
    Stt.eager_warm_up_for_inference()

When eager_warm_up_for_inference() is enabled, total GPU memory usage stays around 9-10 GB during the entire generation process. If I disable the call and leave STT lazy-loaded, memory usage drops to about 5 GB total (OmniVoice + Whisper validation still works normally).

I suspect the warm-up transcription triggers additional CTranslate2/CUDA allocations that remain resident until the application is closed. Could this be related to Faster-Whisper / CTranslate2 keeping inference buffers alive after the warm-up transcription?

Let me know if you'd like additional logs or testing. Thanks again for the project!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions