Skip to content

Is there a way to implement a Timeout / cancellation for transcribe() method, espeicially model.decode()? (large-v3 sometimes stalls >200s on ~10s audio) #1373

@esphoenixc

Description

@esphoenixc

For certain short audio clips (~10 s), mlx-whisper (model: large-v3) spends an extremely long time inside model.decode() when called via whisper.transcribe(). In one case, I set a ~10 s application-level timeout, but logging shows the decode call continued for ~200 s before returning.

I’d like a way to cancel / time out decoding so my application can skip problematic audio and continue processing subsequent chunks.

Is there any recommended way to achieve this? Or would this require modifying the decoding loop itself?

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions