Comments (3)
Are you using the Python API for prediction? In that case you can try calling densify_weights
with lower density number (e.g. 0.01) to reduce prediction time at the cost of more memory usage.
from omikuji.
Are you using the Python API for prediction? In that case you can try calling
densify_weights
with lower density number (e.g. 0.01) to reduce prediction time at the cost of more memory usage.
No, I'm using the CLI app. I've tried to lower the density number to 0.0001(which used 50GB memory, BTW), but this problem still exists. I think the major problem is CPU is not working most of the time, which is really weird. I guess some procedure of prediction is too slow so that CPU has to keep waiting.
Does the prediction part work well on your machine? If yours works fine, I guess it's my own problem.
By the way, the data I used to train/predict is really dense(dimension reduced from 100K to 200). I do not know if it may cause the problem.
Thanks for your help!
PS:
This is the result of my prediction process.
587084 / 587084 [=======================================================] 100.00 % 143.64/s
2020-07-03 09:37:16,940 INFO [omikuji::model::eval] Done testing on 587084 examples; it took 4087.13s
I implemented this code on the origin version of WikiLSHTC-325K, the slow prediction still exists!
from omikuji.
Hmm I couldn't reproduce the low CPU usage. Not sure if the problem is specific to Google cloud machines. Can you try manually setting --n_threads
and see if that helps? By default it should detect the number of CPUs automatically, but I'm wondering if there's something non-standard with Google cloud machines.
from omikuji.
Related Issues (20)
- Cannot set collapse_every_n_layers via Python bindings HOT 2
- Installation issues HOT 2
- golang binding via c-api possible? HOT 3
- Issues when training on a large dataset HOT 6
- Explainability HOT 6
- n_features == n_labels ? HOT 1
- performance measures HOT 1
- Predefined tree architecture HOT 6
- Different models (and results) while training on the same data HOT 1
- unbalanced cluster with python binding
- Wheel for Python 3.9? HOT 2
- thread 'main' panicked at 'Could not determine the UTC offset on this system HOT 2
- Cannot load model if model directory contains symlinks HOT 3
- Wheel for Python 3.10 HOT 3
- Cargo Installation issues HOT 1
- Installation problem and wheels for Python 3.11 and 3.12 HOT 3
- Possible errors in the eurlex_train.txt and eurlex_test.txt - missing labels?
- Bypassing writing to disk with python wrapper
- regarding code HOT 1
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 omikuji.