Training Issues in a Multi-Threaded Environment

Aperta
#119 1 commento 1 reazione 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
c, cpp, python

Direzione di ricerca

Start by locating the Python binding entry point that invokes CRFsuite training and check how it calls into the C++ code. Find the existing tests for model training and use them to verify that training still completes while other Python threads can run. Done means the binding releases the GIL for the duration of CRFsuite training.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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!

Lingua principale
Python
Stelle
774
Fork
223
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di scrapinghub/python-crfsuite

Tutte le issue di scrapinghub/python-crfsuite

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.