Commit bd7e429
Gradient-based LLM attribution in tutorial + LLM attribution type annotations (#1333)
Summary:
Pull Request resolved: #1333
Add gradient-based LLM attribution to the tutorial notebook. Addresses #1237. Additionally, add more type annotations to llm_attr.py.
Differential Revision: D614615211 parent 09aa048 commit bd7e429
File tree
5 files changed
+217
-143
lines changed- captum
- _utils
- attr/_core
- tests/attr
- tutorials
5 files changed
+217
-143
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
0 commit comments