GithubHelp home page GithubHelp logo

Batch sizes about deepspeech.pytorch HOT 8 CLOSED

seannaren avatar seannaren commented on July 28, 2024
Batch sizes

from deepspeech.pytorch.

Comments (8)

ryanleary avatar ryanleary commented on July 28, 2024 1

We filter the data used to under a certain length. If you look at the librispeech.py script, for example, you can see that there is a flag there for doing filtering when the manifest is created.

from deepspeech.pytorch.

SeanNaren avatar SeanNaren commented on July 28, 2024

Baidus' internal code is much more memory optimised than Torch (atleast for RNNs), allowing them to run much larger batch sizes per GPU. This has always been a crux of using RNNs! I'm honestly not sure where to exactly look to handle this, but since you have pascal cards this PR is something to look at. Persistent RNNs speed up RNNs a lot when using smaller batch sizes because there is less transfer of memory!

from deepspeech.pytorch.

ryanleary avatar ryanleary commented on July 28, 2024

I've seen many references to their work on being efficient with memory. I think I'm just surprised that it's making a ~4x difference in batch size. Impressive (and good for them) I suppose. Will close if this behavior is roughly consistent with others are seeing.

from deepspeech.pytorch.

EgorLakomkin avatar EgorLakomkin commented on July 28, 2024

Yes, I have observed the same behaviour

from deepspeech.pytorch.

SeanNaren avatar SeanNaren commented on July 28, 2024

I'm going to tie #55 to this, with successful FP16 we should be allowed to double batch sizes (with slight performance loss due to cublas doing some funky stuff with pseudo FP16 that I was notified about)

from deepspeech.pytorch.

SeanNaren avatar SeanNaren commented on July 28, 2024

As explained here, sadly FP16 won't be viable for some time (atleast for training).

from deepspeech.pytorch.

haquynh1505 avatar haquynh1505 commented on July 28, 2024

@ryanleary @SeanNaren : Excuse me! I've been seeing you guys training on full set of Librispeech. I wonder if you do something to constrain the length of the audio files?
I'm also doing experiments on Librispeech (100h), and I just cannot train with the batch sizes as big as yours.
I know that in the dataset there are quite a lot files longer than 30 seconds. I don't know if this is the main the reason that keeps me from training with bigger batch size? Now I'm training with the batch size of 8, and it's extremely slow.
Did you guys do something with the dataset?
Thanks in advance!

from deepspeech.pytorch.

haquynh1505 avatar haquynh1505 commented on July 28, 2024

@ryanleary : Ok I see. Thank you so much!

from deepspeech.pytorch.

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.