Skip to content
mini-lab
Features of prelude-2

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.

  1. python 8.86
    return a % b == 0⏎⏎# text.py⏎def greet(name):
  2. python 8.65
    _letter(s):⏎ return s[-1]⏎⏎⏎def first_letter(s
  3. python 8.41
    every time she looked at it.<|bos|># words.py⏎def length(s):⏎
  4. python 8.36
    _letter(s):⏎ return s[-1]⏎⏎⏎def exclaim(s):⏎
  5. python 8.34
    def reverse(s):⏎ return s[::-1]⏎⏎⏎def shout(s):⏎
  6. python 8.31
    print("all tests passed")⏎⏎# strings.py⏎def count_vowels(s
  7. python 8.31
    _case(s):⏎ return s.lower()⏎⏎⏎def num_chars(s
  8. python 8.24
    def flip(s):⏎ return s[::-1]⏎⏎⏎def final_letter(s
  9. python 8.13
    def shout(s):⏎ return s.upper()⏎⏎⏎def first_letter(s
  10. python 8.13
    ⏎⏎# test_words.py⏎from words import whisper, vowels⏎⏎assert whisper
  11. python 8.12
    .py`.<|assistant_end|><|bos|># test_words.py⏎from words import exclaim, echo,
  12. python 8.1
    a, b):⏎ return a + " " + b⏎⏎⏎def loud(s):