koursaros-ai / nboost

NBoost is a scalable, search-api-boosting platform for deploying transformer models to improve the relevance of search results on different platforms (i.e. Elasticsearch)
Apache License 2.0
674 stars 69 forks source link

All Docker Images(latest and 0.3.3) are not working #58

Open PascalStehling opened 4 years ago

PascalStehling commented 4 years ago

All Docker Images are not working.

pt and tf: tarfile.ReadError: file could not be opened successfully

and apline: numpy is missing

si-rob commented 4 years ago

yeah Duplicate of #57 it looks like -- the account hosting the data is locked

MartinXPN commented 4 years ago

Is there any place where these models can be accessed for a quick fix?

One very tricky workaround that worked for me was:

kaykanloo commented 4 years ago

I noticed that the transformers package that is included in the image is an older version (2.2.1) and upgrading it resolves the issue. So until this gets fixed, you could simply create a new docker file to upgrade the package:

FROM koursaros/nboost:latest-pt
RUN pip install --upgrade pip
RUN pip install --upgrade transformers
codeAshu commented 3 years ago

The same transformers package issue is arising when I do plain pip install nboost[pt]

pip install --upgrade nboost[pt]
Collecting nboost[pt]
  Using cached nboost-0.3.9.tar.gz (831 kB)
Requirement already satisfied, skipping upgrade: termcolor in ./.env/dev/lib/python3.5/site-packages (from nboost[pt]) (1.1.0)
Requirement already satisfied, skipping upgrade: requests in ./.env/dev/lib/python3.5/site-packages (from nboost[pt]) (2.11.1)
Requirement already satisfied, skipping upgrade: elasticsearch in ./.env/dev/lib/python3.5/site-packages (from nboost[pt])(7.0.4)
Requirement already satisfied, skipping upgrade: tqdm in ./.env/dev/lib/python3.5/site-packages (from nboost[pt]) (4.48.2)
Collecting jsonpath-ng
  Using cached jsonpath-ng-1.5.1.tar.gz (30 kB)
Requirement already satisfied, skipping upgrade: flask in ./.env/dev/lib/python3.5/site-packages (from nboost[pt]) (1.1.1)
Collecting nltk
  Using cached nltk-3.5.zip (1.4 MB)Collecting torch
  Using cached torch-1.5.1-cp35-cp35m-manylinux1_x86_64.whl (753.2 MB)ERROR: Could not find a version that satisfies the requirement transformers==2.7.0 (from nboost[pt]) (from versions: 0.1, 2.0.0, 2.1.0, 2.1.1, 2.2.0, 2.2.1, 2.2.2, 2.3.0, 2.4.0, 2.4.1, 2.5.0, 2.5.1)ERROR: No matching distribution found for transformers==2.7.0 (from nboost[pt])
(dev) ubuntu@ip-192-51-25-212:~$ which python/home/ubuntu/.env/dev/bin/python
(dev) ubuntu@ip-192-51-25-212:~$ python --versionPython 3.5.2