Skip to content

Commit ba9ce15

Browse files
committed
llm attr
1 parent fc98c3b commit ba9ce15

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

tutorials/LLama2-Captum-Demo.ipynb renamed to tutorials/Llama2_LLM_Attribution.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"id": "9bdd6ea2",
66
"metadata": {},
77
"source": [
8-
"# Use Captum LLM Attribution to understand Llama2\n",
8+
"# Understanding Llama2 with Captum LLM Attribution\n",
99
"\n",
1010
"In this tutorial, we will demonstrate the LLM attribution functionality introduced in Captum v0.7, which makes it a breeze to applying the attribution algorithms to interpret the large langague models (LLM) in text generation. The new functionalities include a series utilities that help you with many common tedious scaffolding required by LLMs like defining intepretable features in text input and handling the sequential predictions. You can also check our paper for more details https://arxiv.org/abs/2312.05491\n",
1111
"\n",
@@ -490,7 +490,7 @@
490490
},
491491
{
492492
"cell_type": "markdown",
493-
"id": "faaebc70",
493+
"id": "aa2739bf",
494494
"metadata": {},
495495
"source": [
496496
"Interestingly, we can see all these few-shot examples we choose actually make the model less likely to correctly label the given review as \"Positive\"."

website/pages/tutorials/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,11 @@ class TutorialHome extends React.Component {
8585
Using Captum and Integrated Gradients we interpret the output of several test questions and analyze the attribution scores
8686
of the text and visual parts of the model. Find the tutorial <a href="Multimodal_VQA_Interpret">here</a>.
8787

88+
<h4>Understanding Llama2 with Captum LLM Attribution:</h4>
89+
This tutorial demonstrates how to easily use the LLM attribution functionality to interpret the large langague models (LLM) in text generation.
90+
It takes Llama2 as the example and shows the step-by-step improvements from the basic attribution setting to more advanced techniques.
91+
Find the tutorial <a href="Llama2_LLM_Attribution">here</a>.
92+
8893
<h4>Interpreting question answering with BERT Part 1:</h4>
8994
This tutorial demonstrates how to use Captum to interpret a BERT model for question answering.
9095
We use a pre-trained model from Hugging Face fine-tuned on the SQUAD dataset and show how to use hooks to

website/tutorials.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@
4646
"id": "Image_and_Text_Classification_LIME",
4747
"title": "Interpreting vision and text models with LIME"
4848
},
49+
{
50+
"id": "Llama2_LLM_Attribution",
51+
"title": "Understanding Llama2 with Captum LLM Attribution"
52+
},
4953
{
5054
"title": "Interpreting BERT",
5155
"children": [

0 commit comments

Comments
 (0)