Skip to content
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

Training Issues in a Multi-Threaded Environment #119

Open
peblair opened this issue Mar 20, 2020 · 1 comment
Open

Training Issues in a Multi-Threaded Environment #119

peblair opened this issue Mar 20, 2020 · 1 comment

Comments

@peblair
Copy link

peblair commented Mar 20, 2020

We are using this library in a multi-threaded application, and we have run into an issue with thread-friendliness. When the library drops down into C++ and trains the model, it does not appear to be releasing the GIL. This locks up the interpreter (meaning other threads are halted) until training finishes. Would it be possible to tweak the library such that, while executing the crfsuite code, the GIL is released? Thanks!

@kmike
Copy link
Member

kmike commented Mar 25, 2020

It should be possible to do so, but I haven't checked it in detail. In the meantime, you can also use processes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants