You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To reproduce the issue, simply start an empty environment (e.g. google colab) and run
! pipinstalltransformers-interpretfromtransformersimportAutoModelForSequenceClassification, AutoTokenizerfromtransformers_interpretimportZeroShotClassificationExplainertokenizer=AutoTokenizer.from_pretrained("facebook/bart-large-mnli")
model=AutoModelForSequenceClassification.from_pretrained("facebook/bart-large-mnli")
zero_shot_explainer=ZeroShotClassificationExplainer(model, tokenizer)
word_attributions=zero_shot_explainer(
"Today apple released the new Macbook showing off a range of new features found in the proprietary silicon chip computer. ",
labels= ["finance", "technology", "sports"],)
Where, if not in a notebook, simply remove ! pip install transformers-interpret.
To reproduce the issue, simply start an empty environment (e.g. google colab) and run
Where, if not in a notebook, simply remove
! pip install transformers-interpret
.The output is:
This seems as minimal an example as possible, so I feel like something is afoot.
The text was updated successfully, but these errors were encountered: