Git Product home page Git Product logo

Comments (8)

repodiac avatar repodiac commented on June 25, 2024

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.

JohnGiorgi avatar JohnGiorgi commented on June 25, 2024

@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.

repodiac avatar repodiac commented on June 25, 2024

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.

kingafy avatar kingafy commented on June 25, 2024

What should I do to resolve transformers version issue?

from declutr.

kingafy avatar kingafy commented on June 25, 2024

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.

repodiac avatar repodiac commented on June 25, 2024

@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.

JohnGiorgi avatar JohnGiorgi commented on June 25, 2024

@kingafy Has this been solved?

from declutr.

JohnGiorgi avatar JohnGiorgi commented on June 25, 2024

Closing. Feel free to re-open if there are still issues.

from declutr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.