nboost
nboost copied to clipboard
All Docker Images(latest and 0.3.3) are not working
All Docker Images are not working.
pt and tf: tarfile.ReadError: file could not be opened successfully
and apline: numpy is missing
yeah Duplicate of #57 it looks like -- the account hosting the data is locked
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"
- use image:
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
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