Giter Club home page Giter Club logo

Comments (6)

karpathy avatar karpathy commented on August 24, 2024

Can you try decreasing the batch size to 1, and then decreasing rnn hidden size to say, 128? 2GB is really very little.

from neuraltalk2.

karpathy avatar karpathy commented on August 24, 2024

The CPU error is because you're using my pretrained checkpoint, which was trained on GPU. Try running with CPU from scratch, should work ok.

from neuraltalk2.

kylemcdonald avatar kylemcdonald commented on August 24, 2024

adding -batch_size 1 fixed it! thanks a bunch!

yes, i just noticed the CPU/GPU thing. i tried moving the require out of the if but that just created another problem, apparently it's not that simple :)

from neuraltalk2.

karpathy avatar karpathy commented on August 24, 2024

ok, you also want to make batch size as large as you can fit, by the way, and you should expect to probably decrease the learning rate (if training).

from neuraltalk2.

kylemcdonald avatar kylemcdonald commented on August 24, 2024

i don't understand how you have time to be so helpful & encouraging, and work on a phd at the same time. thank you so much! :)

edit: for the record, -batch_size 8 is the highest i can go with the net you posted.

from neuraltalk2.

susemeee avatar susemeee commented on August 24, 2024

I was trying to train CPU-based model and encountered same OOM error on Ubuntu. I tried adjusting batch_size and It perfectly works right now. Thanks for the detailed explanation!

from neuraltalk2.

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.