Skip to content

Update LLM attr tutorial notebook with note on required Captum version #1496

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

sarahtranfb
Copy link
Contributor

Summary:
Got #1486 when I was oncall

They ran into this error:

TypeError: ShapleyValues.attribute() got an unexpected keyword argument 'skip_tokens'

due to being on a package of Captum where

LLMAttribution.attribute() doesn't have skip_tokens as a parameter, and therefore it's being passed to ShapleyValues.attribute() as part of **kwarg, though ShapleyValues never supported skip_tokens

It's not sufficient to be on the latest Captum release (v0.7), atp they need to install from Github

Differential Revision: D69566114

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D69566114

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D69566114

pytorch#1496)

Summary:

Got pytorch#1486 when I was oncall a while ago. A user ran into this error:
> TypeError: ShapleyValues.attribute() got an unexpected keyword argument 'skip_tokens'

due to being on a package of Captum where
> LLMAttribution.attribute() doesn't have skip_tokens as a parameter, and therefore it's being passed to ShapleyValues.attribute() as part of **kwarg, though ShapleyValues never supported skip_tokens

It's not sufficient to be on the latest Captum release (v0.7), atp they need to install from Github

Differential Revision: D69566114
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D69566114

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 00325c8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants