Comments (3)
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.
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sw_study.