-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
Multi-core training using liblinear and libsvm #6245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I don't think it's plausible that we would add an openmp dependency to the project. But if the algorithm is "embarrassingly parallel" using joblib, that's another story. |
actually, I think it's very plausible. It's just a question of when and how ;) |
Note that #6448 not only provides parallelization of multi-class linear regression, but also manages the memory better than a naive parallelization would, since liblinear creates unnecessary copies, which become highly problematic on large datasets. I've been using the patch (6448) for a long time now, and it's robust. |
@mannby I think there is issues if people try to also use joblib because it currently doesn't support nested parallelism. I'm not sure what the right issue is to track that. maybe joblib/joblib#256 or #3754? @ogrisel and @GaelVaroquaux know more ;) |
@alexhenrie In case you might be interested in this. We can now use OpenMP in the code base (although there are still some open questions about how to control the number of threads). A PR would be welcome. Their patch is very large though, I was hoping that could be reduced a bit. also cc @jeremiedbb |
Hi, would like to reconsider that one. Context: we were having memory problems on a large dataset (99M samples) when using |
Hi, is there still no way to parallelize liblinear? |
Has anyone looked into supporting a multi-core training extension to liblinear and lbsvm (https://www.csie.ntu.edu.tw/~cjlin/libsvmtools/multicore-liblinear/)?
There seems to be a patch available to do this:
https://github.com/fidlr/sklearn-openmp
http://fidlr.org/post/137303264732/scikit-learn-017-with-libsvm-openmp-support
The text was updated successfully, but these errors were encountered: