Giter Club home page Giter Club logo

Comments (5)

williamFalcon avatar williamFalcon commented on May 5, 2024

Yeah, this PTL MNIST example on a gpu with max_nb_epochs=1 will finish in a few seconds.

To watch it live you need something that takes longer to train.

Remove max_nb_epochs or set min_nb_epochs=100 (you’ll overfit fyi) to force it to train for much longer so u can watch the live logs.

from lightning.

williamFalcon avatar williamFalcon commented on May 5, 2024

Happy to reopen this issue if this doesn’t fix it. Enjoy the lightning!

from lightning.

alex-obi avatar alex-obi commented on May 5, 2024

On my local machine the same code updates the tensorboard file as expected every 100 samples.

Is it possible that there are any handles on the file that are open during training, but closed after? I remember a similar problem, where Google Colab Notebooks updated files only if all handles were closed.

from lightning.

williamFalcon avatar williamFalcon commented on May 5, 2024

yeah, i think PyTorch SummaryWriter keeps a file open for saving.

But i suspect the issue is with how Colab handles open files. PTL doesn’t keep any files open, it defaults to whatever the SummaryWriter behavior is.

Glad to hear it’s fine on your local though.

If you find out what the issue is on colab, def follow up here to see if there’s anything we can do on our end

from lightning.

williamFalcon avatar williamFalcon commented on May 5, 2024

@alex-obi update to latest test-tube version and try again?

pt 1.2.0
test tube 0.6.9
lightning 0.4.3

from lightning.

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.