Feature #3931
Fires on “def” (not labeled yet: read the examples)
- Fires on
- 1.21% of tokens
- Mostly in
- python
- Layer
- after block 4
Where it fires
- python 64%
- agent 23%
- story 6%
- chat 3%
- worksheet 3%
Makes the model say
them Butcase top firstcountname "
Makes it not say
etitems minusall chasedush playedgged
Strongest examples
On text the dictionary never trained on. The underlined token is where it fires most.
-
python 8.86return a % b == 0⏎⏎# text.py⏎def greet(name):
-
python 8.65_letter(s):⏎ return s[-1]⏎⏎⏎def first_letter(s
-
python 8.41every time she looked at it.<|bos|># words.py⏎def length(s):⏎
-
python 8.36_letter(s):⏎ return s[-1]⏎⏎⏎def exclaim(s):⏎
-
python 8.34def reverse(s):⏎ return s[::-1]⏎⏎⏎def shout(s):⏎
-
python 8.31print("all tests passed")⏎⏎# strings.py⏎def count_vowels(s
-
python 8.31_case(s):⏎ return s.lower()⏎⏎⏎def num_chars(s
-
python 8.24def flip(s):⏎ return s[::-1]⏎⏎⏎def final_letter(s
-
python 8.13def shout(s):⏎ return s.upper()⏎⏎⏎def first_letter(s
-
python 8.13⏎⏎# test_words.py⏎from words import whisper, vowels⏎⏎assert whisper
-
python 8.12.py`.<|assistant_end|><|bos|># test_words.py⏎from words import exclaim, echo,
-
python 8.1a, b):⏎ return a + " " + b⏎⏎⏎def loud(s):