Giter VIP home page Giter VIP logo

Comments (3)

tomtung avatar tomtung commented on August 27, 2024

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.

WestbrookGE avatar WestbrookGE commented on August 27, 2024

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.

tomtung avatar tomtung commented on August 27, 2024

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)

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.