Skip to content

Commit

Permalink
Misc changes for comma experiments
Browse files Browse the repository at this point in the history
  • Loading branch information
Curt Tigges committed Oct 13, 2023
1 parent 2bc4766 commit a82b82d
Show file tree
Hide file tree
Showing 9 changed files with 27,510 additions and 1,445 deletions.
12 changes: 0 additions & 12 deletions circuit_analysis_sentiment_classification_pythia1_4b.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -16082,18 +16082,6 @@
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.16"
}
},
"nbformat": 4,
Expand Down
12 changes: 0 additions & 12 deletions circuit_analysis_sentiment_continuation_pythia1_4b.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -52022,18 +52022,6 @@
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.16"
}
},
"nbformat": 4,
Expand Down
23,777 changes: 23,777 additions & 0 deletions circuit_analysis_simple_sentiment_gpt2_small.ipynb

Large diffs are not rendered by default.

2,665 changes: 1,445 additions & 1,220 deletions circuit_for_mood_inference_pythia2_8b_commas.ipynb

Large diffs are not rendered by default.

12 changes: 0 additions & 12 deletions comma_ablation_experiments copy.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -5782,18 +5782,6 @@
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.16"
},
"orig_nbformat": 4
},
"nbformat": 4,
Expand Down
126 changes: 54 additions & 72 deletions comma_ablation_experiments.ipynb

Large diffs are not rendered by default.

314 changes: 197 additions & 117 deletions projection_neuroscope.py

Large diffs are not rendered by default.

2,035 changes: 2,035 additions & 0 deletions projection_neuroscope2.ipynb

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions utils/prompts.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ class PromptType(Enum):
SIMPLE_TEST = "simple_test"
COMPLETION = "completion"
COMPLETION_2 = "completion_2"
COMPLETION_3 = "completion_3"
CLASSIFICATION = "classification"
CLASSIFICATION_2 = "classification_2"
CLASSIFICATION_3 = "classification_3"
Expand All @@ -134,6 +135,7 @@ def get_format_string(self):
PromptType.MEDICAL: "I heard the doctor use the word{MED} and I felt very",
PromptType.COMPLETION: "I thought this movie was{ADJ1}, I{VRB} it. The acting was{ADJ2}, the plot was{ADJ3}, and overall the movie was just very",
PromptType.COMPLETION_2: "I thought this movie was{ADJ1}, I{VRB} it. The acting was{ADJ2}, the plot was{ADJ3}, and overall it was just very",
PromptType.COMPLETION_3: "I thought this movie was{ADJ1}, I{VRB} it. The acting was{ADJ2}, the plot was{ADJ3}, and overall the movie was just very {ADJ4}. I felt it was",
PromptType.CLASSIFICATION: "Review Text: 'I thought this movie was{ADJ1}, I{VRB} it. The acting was{ADJ2}, the plot was{ADJ3}, and overall the movie was just very {ADJ4}.' \nReview Sentiment:",
PromptType.CLASSIFICATION_2: "Review Text: I thought this movie was{ADJ1}, I{VRB} it. The acting was{ADJ2}, the plot was{ADJ3}, and overall the movie was just very {ADJ4}. \nReview Sentiment:",
PromptType.CLASSIFICATION_3: "Review Text: I thought this movie was{ADJ1}, I{VRB} it. The acting was{ADJ2}, the plot was{ADJ3}, and overall the movie was just very {ADJ4}. Review Sentiment:",
Expand Down

0 comments on commit a82b82d

Please sign in to comment.