pytorch / captum

Model interpretability and understanding for PyTorch
https://captum.ai
BSD 3-Clause "New" or "Revised" License
4.94k stars 499 forks source link

LLM offsets logic consolidate w/ checks and test case fix #1422

Closed craymichael closed 3 weeks ago

craymichael commented 3 weeks ago

Summary: Consolidate offsets logic with extra checks to one function. May be used to later group data in gradient LLM attribution. Test case fixed as a result of checks.

Differential Revision: D65010820

facebook-github-bot commented 3 weeks ago

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

facebook-github-bot commented 3 weeks ago

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

facebook-github-bot commented 3 weeks ago

This pull request has been merged in pytorch/captum@492ae0e4c5f718b95eb6df131a864972cf0de225.