mauve
mauve copied to clipboard
OMP: Error #179: Function pthread_mutex_init failed
Hi, I'm using mauve in my project and pointing to already downloaded gpt2-large model. Below is the code:
import mauve
mauve_results = mauve.compute_mauve(p_text=[reference.strip("\n").replace(",", "")], q_text=[response.strip("\n").replace(",", "")], featurize_model_name='pre_trained_models/mauve/gpt2-large').mauve
When I use the above code in a Jupyter Notebook in PyCharm, I just get a warning
WARNING clustering 2 points to 2 centroids: please provide at least 78 training points
and I'm able to print the mauve score. However, when I use the same code in conjunction with streamlit to deploy a chatbot, I'm getting the below error:
WARNING clustering 2 points to 2 centroids: please provide at least 78 training points
OMP: Error #179: Function pthread_mutex_init failed:
OMP: System error #22: Invalid argument
zsh: abort streamlit run streamlit_chatbot.py
Does anyone know where I'm going wrong? I'm using python 3.8.10 on a conda virtual env. System: MacBook Pro M1 chip.
Hi @kshiv05,
Sorry for the late response. I've never encountered this error previously nor have I used streamlit, so I can't help much here.
If you post a minimum usable example, I can maybe take a look.
Best, Krishna
Closing due to inactivity.