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

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

Open
PascalStehling opened this issue Mar 25, 2020 · 4 comments
Open

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

PascalStehling opened this issue Mar 25, 2020 · 4 comments

Comments

@PascalStehling
Copy link

All Docker Images are not working.

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

and apline: numpy is missing

@si-rob
Copy link

si-rob commented Mar 26, 2020

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

@MartinXPN
Copy link

MartinXPN commented Mar 31, 2020

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

One very tricky workaround that worked for me was:

  • manually download the model from huggingface repo: https://huggingface.co/nboost/pt-tinybert-msmarco#
  • when running docker/docker-compose:
    • use image: koursaros/nboost:0.3.3-pt
    • bind volume: path/to/manually/downloaded/model/on/host to /opt/conda/lib/python3.6/site-packages/nboost/.cache/nboost/pt-tinybert-msmarco
    • set --model "PtBertRerankModelPlugin"
    • set --model_dir "nboost/pt-tinybert-msmarco"

@kaykanloo
Copy link
Contributor

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
Copy link

codeAshu commented Aug 5, 2020

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

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

5 participants