Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
498 changes: 498 additions & 0 deletions tutorials/Llama2_LLM_Attribution.ipynb

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions website/pages/tutorials/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,11 @@ class TutorialHome extends React.Component {
Using Captum and Integrated Gradients we interpret the output of several test questions and analyze the attribution scores
of the text and visual parts of the model. Find the tutorial <a href="Multimodal_VQA_Interpret">here</a>.

<h4>Understanding Llama2 with Captum LLM Attribution:</h4>
This tutorial demonstrates how to easily use the LLM attribution functionality to interpret the large langague models (LLM) in text generation.
It takes Llama2 as the example and shows the step-by-step improvements from the basic attribution setting to more advanced techniques.
Find the tutorial <a href="Llama2_LLM_Attribution">here</a>.

<h4>Interpreting question answering with BERT Part 1:</h4>
This tutorial demonstrates how to use Captum to interpret a BERT model for question answering.
We use a pre-trained model from Hugging Face fine-tuned on the SQUAD dataset and show how to use hooks to
Expand Down
4 changes: 4 additions & 0 deletions website/tutorials.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@
"id": "Image_and_Text_Classification_LIME",
"title": "Interpreting vision and text models with LIME"
},
{
"id": "Llama2_LLM_Attribution",
"title": "Understanding Llama2 with Captum LLM Attribution"
},
{
"title": "Interpreting BERT",
"children": [
Expand Down