GithubHelp home page GithubHelp logo

Inference on long files about faster-whisper HOT 8 CLOSED

systran avatar systran commented on May 22, 2024
Inference on long files

from faster-whisper.

Comments (8)

guillaumekln avatar guillaumekln commented on May 22, 2024 1

Yes, the transcription time depends on the audio file duration. Long files will take longer.

from faster-whisper.

guillaumekln avatar guillaumekln commented on May 22, 2024 1

Try running the model with 8-bit quantization:

model = WhisperModel(model_path, device="cuda", compute_type="int8")

from faster-whisper.

guillaumekln avatar guillaumekln commented on May 22, 2024

Hi,

The Whisper transcription loop already handles long files using a sliding 30-second window while keeping the context. So you don't need to do anything to transcribe long files.

from faster-whisper.

databill86 avatar databill86 commented on May 22, 2024

Thank you. So is it normal that the transcription time is considerably long for long files ?

from faster-whisper.

databill86 avatar databill86 commented on May 22, 2024

Sorry I closed and reopened the issue. I just have one last thing about the longer files.
If we use the "gpu" as a device, is there any way we can avoid OOM for these longer files ?

from faster-whisper.

guillaumekln avatar guillaumekln commented on May 22, 2024

What is your GPU and what model size are you running?

from faster-whisper.

databill86 avatar databill86 commented on May 22, 2024

It's a NVIDIA GeForce GTX 1070 Ti 8Go, I was running the large-v2 model on a 18min file. But even with 4min file I have OOM.

from faster-whisper.

databill86 avatar databill86 commented on May 22, 2024

Wow, just like that! it's a lot faster, and no OOM!!!
Thank you!
I will close the issue now for good :)

from faster-whisper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.