Closed Snoussi88 closed 3 years ago
on the other hand, if i run python run.py
in vscode, it gives the same message + this
You should probably TRAIN this model on a down-stream task to be able to use it for predictions and inference.
- Serving Flask app "application" (lazy loading)
- Environment: development
- Debug mode: on Traceback (most recent call last): File "C:\Users\snous\OneDrive\Desktop\github\gecko-app\run.py", line 1, in
from application import app File "C:\Users\snous\OneDrive\Desktop\github\gecko-app\application__init.py", line 2, in from application.models.gector import model File "C:\Users\snous\OneDrive\Desktop\github\gecko-app\application\models\gector\model.py", line 2, in init__.py", line 123, infrom application.models.gector.gector.gec_model import GecBERTModel File "C:\Users\snous\OneDrive\Desktop\github\gecko-app\application\models\gector\gector\gec_model.py", line 7, in import torch File "C:\Users\snous\AppData\Local\Programs\Python\Python38\lib\site-packages\torch\ raise err OSError: [WinError 1455] The paging file is too small for this operation to complete. Error loading "C:\Users\snous\AppData\Local\Programs\Python\Python38\lib\site-packages\torch\lib\caffe2_detectron_ops_gpu.dll" or one of its dependencies.
The requirements file specifies the versions of the packages - Even if Allennlp got updated recently, gecko will still be depending on the old version. Everything seems fine to me.
Did you install the dependencies from the requirements file ?
The requirements file specifies the versions of the packages - Even if Allennlp got updated recently, gecko will still be depending on the old version. Everything seems fine to me.
Did you install the dependencies from the requirements file ?
yes, except for pytorch the version you are referring to, does not exist anymore on the released versions at least : https://pytorch.org/get-started/previous-versions/ ==> i only found pytorch==1.0.1
or pytorch==1.1.0
and definitely not pytorch==1.2.1
is it ok ? anyways does it still work for you ?
Try to upgrade pip pip install pip --upgrade
, and then install pytorch1.3.0 via pip. Else, you may try with conda. (these tips are mentioned at the end of the requirements file)
It can also be related to your OS. The installation has proven to work better on linux.
No out-of-the-box solution here, sorry! Feel free to reopen if needed.
after some tweaks to the code, i'm now able to run
python run.py
but it does not seem to work for me i get the following message :and on localhost:5000 it doesn't seem to correct anything showing only
Gecko seems to be tired today... (︶︹︶)