Comments (2)
Hi @pharnisch thanks for flagging this with me, can I ask what version you are using. There had been some bugs with versions 0.7.0-0.7.4 with the new explainer which I have fixed now. I just ran the readme example for token classification in a fresh environment and it seems to work for me.
from transformers-interpret.
Thank you for your fast response. Indeed, the problem could be due to versioning since I could only install version 0.6.0, but when I try to install the newest version, it does not work:
pip install transformers-interpret==0.7.5
Collecting transformers-interpret==0.7.5
Using cached transformers_interpret-0.7.5-py3-none-any.whl (38 kB)
Requirement already satisfied: transformers>=3.0.0 in ./environments/rare-facts/lib/python3.6/site-packages (from transformers-interpret==0.7.5) (4.17.0)
Collecting pytest<6.0.0,>=5.4.2
Using cached pytest-5.4.3-py3-none-any.whl (248 kB)
ERROR: Could not find a version that satisfies the requirement ipython<8.0.0,>=7.31.1 (from transformers-interpret) (from versions: 0.10, 0.10.1, 0.10.2, 0.11, 0.12, 0.12.1, 0.13, 0.13.1, 0.13.2, 1.0.0, 1.1.0, 1.2.0, 1.2.1, 2.0.0, 2.1.0, 2.2.0, 2.3.0, 2.3.1, 2.4.0, 2.4.1, 3.0.0, 3.1.0, 3.2.0, 3.2.1, 3.2.2, 3.2.3, 4.0.0b1, 4.0.0, 4.0.1, 4.0.2, 4.0.3, 4.1.0rc1, 4.1.0rc2, 4.1.0, 4.1.1, 4.1.2, 4.2.0, 4.2.1, 5.0.0b1, 5.0.0b2, 5.0.0b3, 5.0.0b4, 5.0.0rc1, 5.0.0, 5.1.0, 5.2.0, 5.2.1, 5.2.2, 5.3.0, 5.4.0, 5.4.1, 5.5.0, 5.6.0, 5.7.0, 5.8.0, 5.9.0, 5.10.0, 6.0.0rc1, 6.0.0, 6.1.0, 6.2.0, 6.2.1, 6.3.0, 6.3.1, 6.4.0, 6.5.0, 7.0.0b1, 7.0.0rc1, 7.0.0, 7.0.1, 7.1.0, 7.1.1, 7.2.0, 7.3.0, 7.4.0, 7.5.0, 7.6.0, 7.6.1, 7.7.0, 7.8.0, 7.9.0, 7.10.0, 7.10.1, 7.10.2, 7.11.0, 7.11.1, 7.12.0, 7.13.0, 7.14.0, 7.15.0, 7.16.0, 7.16.1, 7.16.2, 7.16.3)
ERROR: No matching distribution found for ipython<8.0.0,>=7.31.1
I have installed:
Python 3.6.15 (cannot change this sadly)
Pytorch 1.10.2+cu113
transformers 4.17.0
Captum 0.3.1
When I get it correct, my Python version is not high enough to install a high enough ipython package but then the required Python version standing in the README.md is not right as I fulfill all of these four criteria.
Anyway, I just created a fork and removed the ipython dependency and now it works for my case. Thanks you! :)
from transformers-interpret.
Related Issues (20)
- What algorithm is used to visualize text in SequenceClassificationExplainer
- How to use transformers-interpret for sequencelabelling, for example layoutlmv3 or v3 HOT 1
- MultiLabelSequenceClassificationExplainer potentially bugged. HOT 14
- ImportError: cannot import name 'PairwiseSequenceClassificationExplainer' HOT 1
- How to interpret the model fine tuning on the pre-trained ViT model using the imagery with larger resolution (500 * 500) than the pre-trained dataset (224 * 224)
- Token Classification Memory Issue
- Issue using BertTokenizer (AttributeError) HOT 2
- 'Bert' object has no attribute 'config'
- Text attribution fails for XLM-Roberta models HOT 4
- Is it normal that attribution takes multiple seconds per text, even on a GPU? HOT 1
- ZeroShotClassificationExplainer appears to be broken
- Prediction differs from non-explainable evaluation HOT 1
- Output probability - SequenceClassificationExplainer
- Support for Summarization models HOT 3
- Support for Longformer
- ImageClassificationExplainer: AttributeError: ndim when trying to visualize. HOT 3
- Issue with Zero Shot Classifier
- How to use other types of transformers models? HOT 1
- Support for Reformer
- Broken link for Captum Algorithm Overview in the README
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 transformers-interpret.