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

Can't make predictions: ML backend returns an error (ner.py) #6

Closed
Ecclesiast opened this issue Aug 31, 2020 · 3 comments
Closed

Can't make predictions: ML backend returns an error (ner.py) #6

Ecclesiast opened this issue Aug 31, 2020 · 3 comments

Comments

@Ecclesiast
Copy link

Ecclesiast commented Aug 31, 2020

Steps to reproduce:

  1. Using docker to start up the server docker-compose up --build
  2. Used import sample with three tasks [{"text":"To have faith is to trust yourself to the water"},{"text":"To have faith is to trust yourself to the water"},{"text":"To have faith is to trust yourself to the water"}]
  3. Completed two tasks and trained huggingface transformer from ner.py.
  4. Go to UI for third task prediction.
  5. No prediction.

Requirements:
torch==1.5.0
transformers==2.4.1
tensorboardX==1.9
label-studio>=0.7.0

Full logs are here:

[2020-08-31 15:07:49,882] [ERROR] [label_studio.utils.models::make_predictions::528] Can't make predictions: ML backend returns an error: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>500 Internal Server Error</title>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>

Can you help me please with this issue?

@makseq
Copy link
Member

makseq commented Aug 31, 2020

@Ecclesiast Hi! Can you switch to release/0.7.5 (pip install label-studio==0.7.5rc0) and check the error there.
It has more detailed logs for ML.

@makseq
Copy link
Member

makseq commented Aug 31, 2020

@Ecclesiast Sorry.. you are using a docker... you need to build 0.7.5 docker.

What labeling config do you use?

@Ecclesiast
Copy link
Author

Hi. Thank you for your help. I have updated label-studio to 0.7.5 in docker and now everything is working. Thanks!

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