Git Product home page Git Product logo

Comments (3)

matt-peters avatar matt-peters commented on July 21, 2024

This is normal, training only loads one file at a time in each direction, then moves on to the next random file after exhausting the first. Does training eventually load another file, or just reload the first file again?

from bilm-tf.

ashim95 avatar ashim95 commented on July 21, 2024

Thanks for the reply.

My files were so big the kernel eventually had to kill the process because of resource exhaustion.

So I am now doing it on a very small dataset (30000 sentences). It has been 3 days training on a 16GB gpu. Any idea when it stops?

I see that it loads two shards randomly. What is the criterion for the training to stop?
I have a total of 10 training files with 2500 sentences each. It has processed 436,000 batches. I am using a batch size of 32. Shall I increase the batch_size but then I might also have to increase the number of epochs?

Thanks,

from bilm-tf.

matt-peters avatar matt-peters commented on July 21, 2024

The criteria for stopping is specified by the number of tokens in the training data, the number of epochs, and the batch size. All of these are specified in the training options: https://github.com/allenai/bilm-tf/blob/master/bin/train_elmo.py

from bilm-tf.

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.