Giter VIP home page Giter VIP logo

Comments (5)

orhanf avatar orhanf commented on August 18, 2024

@sebastien-j i dont think this issue is related with #29 (that is just a problem for out-of-sync nmt.py after pr #15 - i've synced them here but not yet made a pr).
Not in this repo, but i've adapted this modified GRU to multi-way translation and it was performing slightly better. From what i've experimented, NaNs arise with Adam having a learning rate bigger than 1e-3.

from dl4mt-tutorial.

sebastien-j avatar sebastien-j commented on August 18, 2024

Thanks @orhanf.

I'm using adadelta. After all, the NaN issue may not be related to the different GRU variant as it just crashed with the previous version. I'll try different datasets/preprocessing to try to understand what is going on.

from dl4mt-tutorial.

orhanf avatar orhanf commented on August 18, 2024

One more thing that comes to my mind is stabilizing the attention softmax, this enhancement. We were getting NaNs because of that instability (in blocks implementation tho)

from dl4mt-tutorial.

sebastien-j avatar sebastien-j commented on August 18, 2024

This is strange. Out of 2 computers I tried, the bug only occurs on one. The Theano versions are identical, and I added some code to allow choosing a RNG.

In any case, it appears that the problem is not directly related to the dl4mt code.

from dl4mt-tutorial.

amirj avatar amirj commented on August 18, 2024

I have a same problem with NANs. Using smaller batch_size(=32) solved it.

from dl4mt-tutorial.

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.