captum
captum copied to clipboard
Attribution API refactor: Base LLMAttributionResult class + refactor
Summary: Refactor LLMAttributionResult into an abstract base object that is generic. Create LLMAttributionResult as a concrete child with aliases for captum.attr API supporting legacy use. Changes support the refactor and enable more generalized use beyond logprob-based attribution.
Differential Revision: D84721127
@craymichael has exported this pull request. If you are a Meta employee, you can view the originating Diff in D84721127.