Comments (8)
Hi, did you follow the instructions on the webpage - i.e. have you installed AllenNLP before installing DeCLUTR?
Btw. I could only make it work using conda
for the installlation of AllenNLP since otherwise AllenNLP did not work properly in my case.
from declutr.
@kingafy I am not sure what could be causing this issue. I just double-checked that running pip install git+https://github.com/JohnGiorgi/DeCLUTR.git
in a colab notebook works without error (you can confirm by running the first code cell in this notebook). Maybe try using a newer python version? The colab notebook uses 3.7.
from declutr.
Oh, btw. @JohnGiorgi - I figured that the version of the transformers
library is outdated - you need a current version to have the bug fixed which prevents you from using huggingface hub models: huggingface/transformers#12941
from declutr.
What should I do to resolve transformers version issue?
from declutr.
In colab no issues but in local I am facing issues. I set up a new environment with python=3.6.
Installad Allennlp, then tried to install declutr both from source as well as via pip install command as suggested but the error keeps coming
ERROR: Could not find a version that satisfies the requirement torch<1.7.0,>=1.6.0 (from allennlp) (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2, 1.7.0, 1.7.1, 1.8.0, 1.8.1, 1.9.0, 1.9.1)
ERROR: No matching distribution found for torch<1.7.0,>=1.6.0
from declutr.
@kingafy : are you absolutely sure to use python 3.x? I know this kind of problem if you're accidentially using python 2.x still (for instance, you forgot to switch to the virtual environment/conda). Try python --version
to check.
Regarding the transformers library, simply uninstall and reinstall:
pip uninstall -y transformers
pip install transformers
from declutr.
@kingafy Has this been solved?
from declutr.
Closing. Feel free to re-open if there are still issues.
from declutr.
Related Issues (20)
- Cant set up DECLUTR in local AWS linux machine HOT 2
- argument 'lazy' for dataset_reader HOT 2
- Superclass initialization in token embedder HOT 2
- Could not lex the character code 194 HOT 3
- Minimum text length violated despite preprocessing HOT 2
- How to plot the learning curve from the output logs created post training of declutr? HOT 1
- Impact of "shorter" documents (span, number of tokens) for extended pretraining HOT 7
- Wrong training procedure? HOT 6
- Strange issue occuring during Training HOT 2
- load pretrained tf1 model with pytorch HOT 5
- How to integrate a longer sequence model like longformer into declutr architecture HOT 8
- Encoder class breaks for long strings
- can i finetune the model ? HOT 2
- Update DeCLUTR requirements? HOT 5
- How to use a validation dataset when training? HOT 8
- RuntimeError: Error(s) in loading state_dict for DeCLUTR: HOT 2
- Error while encoding HOT 4
- Training with multi gpus HOT 6
- Installation fails in colab notebook HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from declutr.