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

Cannot download models (biobert) #57

Open si-rob opened 4 years ago

si-rob commented 4 years ago

trying to run nboost with Tensorflow using Biobert model. Getting the following stack trace.

:resolve_model:[__i:res: 43]:Extracting "/usr/local/lib/python3.6/dist-packages/nboost/.cache/biobert-base-uncased-msmarco" from /usr/local/lib/python3.6/dist-packages/nboost/.cache/biobert-base-uncased-msmarco.tar.gz                                                                                                                                                                                                                
 Traceback (most recent call last):                                                                                                                                                                                    
   File "/usr/local/bin/nboost", line 8, in <module>                                                                                                                                                                   
     sys.exit(main())                                                                                                                                                                                                  
   File "/usr/local/lib/python3.6/dist-packages/nboost/__main__.py", line 10, in main                                                                                                                                  
     proxy = Proxy(**vars(args))                                                                                                                                                                                       
   File "/usr/local/lib/python3.6/dist-packages/nboost/proxy.py", line 56, in __init__                                                                                                                                 
     **cli_args)  # type: RerankModelPlugin                                                                                                                                                                            
   File "/usr/local/lib/python3.6/dist-packages/nboost/plugins/models/__init__.py", line 44, in resolve_model                                                                                                          
     extract_tar_gz(binary_path, data_dir)                                                                                                                                                                             
   File "/usr/local/lib/python3.6/dist-packages/nboost/helpers.py", line 96, in extract_tar_gz                                                                                                                         
     tar = tarfile.open(fileobj=fileobj)                                                                                                                                                                               
   File "/usr/lib/python3.6/tarfile.py", line 1576, in open                                                                                                                                                            
     raise ReadError("file could not be opened successfully")                                                                                                                                                          
 tarfile.ReadError: file could not be opened successfully

Looks like there's an issue with the hosted file: https://storage.googleapis.com/koursaros/biobert-base-uncased-msmarco.tar.gz I'm getting:


<Code>UserProjectAccountProblem</Code>
<Message>User project billing account not in good standing.</Message>
<Details>
The billing account for the owning project is disabled in state closed
</Details>
</Error>```
jassem123 commented 4 years ago

Encountering the same issue , I guess this means we need to introduce custom pretrained models to nboost

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:

SagarPalyal commented 4 years ago

Hi MartinXPN,

Would you please explain how did you download the model manually? when I go to provided repo url, I don't see any download option.