Comments (9)
Unfortunately BART support wasn't completely there yet. I just made a couple of updates, could you try it now?
Install the latest version of the repo:
!pip install git+https://github.com/jalammar/ecco.git
from ecco.
Hi Anshoo,
Thank you so much for your kind words!
- We are currently working on BERT support for activation exploration. We don't have immediate plans for supporting other models but we're listening to the community.
- We are working on more extensive documentation that should make it easier for people to adapt Ecco for their needs and use-cases. Thank you for the initiative.
- Your best bet is Captum - https://captum.ai/tutorials/Bert_SQUAD_Interpret
from ecco.
Hi Anshoo,
Thank you so much for your kind words!
- We are currently working on BERT support for activation exploration. We don't have immediate plans for supporting other models but we're listening to the community.
- We are working on more extensive documentation that should make it easier for people to adapt Ecco for their needs and use-cases. Thank you for the initiative.
- Your best bet is Captum - https://captum.ai/tutorials/Bert_SQUAD_Interpret
@jalammar Appreciate your time responding to this inquiry & the reference to Captum.
from ecco.
@jalammar Looks like 'facebook/bart-large-mnli' is now supported?
When I instantiate it I get the following error:
lm = ecco.from_pretrained('facebook/bart-large-mnli')
AttributeError Traceback (most recent call last)
<ipython-input-5-a9021088d96a> in <module>()
1 import ecco
----> 2 lm = ecco.from_pretrained('facebook/bart-large-mnli')
2 frames
/usr/local/lib/python3.7/dist-packages/torch/nn/modules/module.py in __getattr__(self, name)
1176 return modules[name]
1177 raise AttributeError("'{}' object has no attribute '{}'".format(
-> 1178 type(self).__name__, name))
1179
1180 def __setattr__(self, name: str, value: Union[Tensor, 'Module']) -> None:
AttributeError: 'BartForConditionalGeneration' object has no attribute 'shared'
Any suggestions on how I can fix this?
Thanks in advance!
from ecco.
Thank you Jay. The model now loads.
I'm trying to understand how to use it with the MNLI model. That model accepts a premise and a label. Where the premise is a piece of text ('Computer shut down unexpectedly') and a label ('politics'). So, the model spits out its prediction whether the label is correct for the premise.
I can't figure out how to pass those two elements (premise and label) to any functions in the ecco lm. Any advice?
from ecco.
My guess would be that that they put them in the same string separated by the [sep] token. The paper or model docs should explain that, I think.
from ecco.
Hello, @jalammar
Is there example of using a BERT?
I've seen a lot examples of GPT..
I want to use saliency on BERT's head, not INPUT TOKEN.
from ecco.
@Lim-Sung-Jun There are examples of using BERT for neuron activation, but not for primary feature attribution/saliency. That hasn't been built out yet. I have create issue #64 to track the feature request and invite people to support it.
from ecco.
@Lim-Sung-Jun There are examples of using BERT for neuron activation, but not for primary feature attribution/saliency. That hasn't been built out yet. I have create issue #64 to track the feature request and invite people to support it.
I really appreciate your support!
from ecco.
Related Issues (20)
- Install ecco on Apple M1 Max clip fails HOT 1
- Google Colab support only Python 3.10 HOT 7
- How to add my own model like chinese-bert-wwm-ext
- How to retrieve salience of some specific words? HOT 1
- Problem with saliency() HOT 1
- Save vectorized figure HOT 1
- Support for Distributing Model on Multiple GPU's HOT 3
- Rankings_watch displaying wrong sequence HOT 1
- Bug: Broken links in docs
- AttributeError: 'OutputSeq' object has no attribute 'saliency' HOT 4
- Presence of character Ġ before each token in output HOT 2
- import ecco ERRO HOT 9
- llama support HOT 4
- bug -object has no attribute 'lm_head'- HOT 2
- lm.generate and HuggingFace's generate give different results with do_sample=False
- Request for feature addition: Visualization of Neuron Activations and Clustered Neuron Firings HOT 1
- Adding GENRE model to ecco HOT 1
- I can't find jupyter notebook for Input_Saliency.
- Error encountered when comparing activation matrices in batch generation loop
- Support to LLM like LLAMA-2 and Vicuna? HOT 15
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 ecco.