Coder Social home page Coder Social logo

Comments (1)

Smerity avatar Smerity commented on August 25, 2024

Secondary confirmation.

P100, Driver Version: 375.26, cuDNN: 5, CUDA: 8.0

-----------------------------------------------------------------------------------------
| end of epoch   6 | time: 18.46s | valid loss  4.89 | valid ppl   133.20
-----------------------------------------------------------------------------------------
=========================================================================================
| End of training | test loss  4.86 | test ppl   128.70
=========================================================================================

Turning off gradient clipping:

-----------------------------------------------------------------------------------------
| end of epoch   6 | time: 20.51s | valid loss  4.77 | valid ppl   118.37
-----------------------------------------------------------------------------------------
=========================================================================================
| End of training | test loss  4.74 | test ppl   114.18
=========================================================================================

The issue appears caused by the clip_gradient function - though I've not yet found the exact source of the issue in that function. Replacing it with the recently added clip_grad_norm (source) brings us back towards the reported perplexity of 113 while using gradient clipping.

-----------------------------------------------------------------------------------------
| end of epoch   6 | time: 16.87s | valid loss  4.78 | valid ppl   119.09
-----------------------------------------------------------------------------------------
=========================================================================================
| End of training | test loss  4.75 | test ppl   115.49
=========================================================================================

With a different random seed (42), the perplexity is more in line with the reported 113, so the difference is likely superficial.

-----------------------------------------------------------------------------------------
| end of epoch   6 | time: 17.03s | valid loss  4.77 | valid ppl   118.16
-----------------------------------------------------------------------------------------
=========================================================================================
| End of training | test loss  4.74 | test ppl   114.46
=========================================================================================

from examples.

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.