Code Monkey home page Code Monkey logo

Comments (3)

zhu-y11 avatar zhu-y11 commented on July 28, 2024 1

Hi, I uploaded a run.sh script for training. Feel free to have a look and try to run it on your machine. :)

Several rules of thumb to accelerate the training speed:

  • use large batch size (1024 for my exps);
  • use mul-thread script, i.e. mul_sw2vec.py. Depending on your GPU RAM and CPU core numbers, for large corpus, use as many threads as possible.

For example, a single 1080ti with 16 cpu thread machine, I remember 600m en corpus will have 20-30k word/sec speed (3-4 threads). And based on your speed and the number of words to be trained (shown in log file, Words in train file), you should be able to calculate how long it takes to be trained. :)

from sw_study.

Cons13411 avatar Cons13411 commented on July 28, 2024

I investigated it more, it actually uses the GPU, but it still is very slow.
for such a training corpus and bpe method, how long it would take to be trained?

from sw_study.

Cons13411 avatar Cons13411 commented on July 28, 2024

Thanks very much, I was using sw2vec.py, and I was confused that why it changes the number of threads to 1. I will try your suggestions and let you know about its outcome.

from sw_study.

Related Issues (2)

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.