Skip to content

en_core_web_trf not working in celery #8694

Discussion options

You must be logged in to vote

I suspect it's the same underlying issue as in #4667. Try adding this before you load the model (#4667 (comment)):

import torch
torch.set_num_threads(1)

If it works with this change, then the problem is related to torch and threading, probably related to libgomp. Look at the linked pytorch issue in the link above for possible solutions.

There have been some other related reports that look more like memory leaks, and there it looks like the solution is to set a constrained number of threads, see #8554.

Replies: 7 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by adrianeboyd
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Lokeesh-27
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
third-party Third-party packages and services feat / transformer Feature: Transformer
5 participants
Converted from issue

This discussion was converted from issue #8678 on July 12, 2021 11:07.