Skip to content
mini-lab
Features of prelude-2

Feature #3416

Fires on “def” (not labeled yet: read the examples)

Fires on
0.65% of tokens
Mostly in
python
Layer
after block 4

Where it fires

  • python 74%
  • agent 24%
  • story 2%
  • chat 0%
  • worksheet 0%

Makes the model say

oldString definesalculatoronfig{ import:`assert

Makes it not say

⏎.?!" one out,

Strongest examples

On text the dictionary never trained on. The underlined token is where it fires most.

  1. python 6.77
    `script.py`.<|assistant_end|><|bos|># main.py⏎from tools import add_all⏎
  2. python 6.7
    <|assistant_end|><|bos|># LICENSE⏎MIT License⏎⏎# script.py⏎def size(s):
  3. python 6.69
    is 41.<|assistant_end|><|bos|># main.py⏎from text import echo⏎⏎print
  4. python 6.64
    ```⏎True⏎```<|assistant_end|><|bos|># main.py⏎from lib import length, halve⏎
  5. python 6.61
    answer is 61.<|assistant_end|><|bos|># script.py⏎def first_letter(
  6. python 6.61
    <|assistant_end|><|bos|>```python⏎def double_all(
  7. python 6.61
    /config.json"⏎}⏎⏎# script.py⏎def smallest(nums):
  8. python 6.54
    return s[::-1]⏎```⏎<|bos|># main.py⏎def exclaim(s):
  9. python 6.52
    (s)` returns s in lower case.⏎⏎```python⏎def quiet(s):
  10. python 6.49
    `script.py`.<|assistant_end|><|bos|># hello.py⏎from text import shout⏎⏎print
  11. python 6.49
    py⏎all tests passed⏎<|bos|># run.py⏎from items import head, double_
  12. python 6.48
    ⏎<|bos|># LICENSE⏎MIT License⏎⏎# main.py⏎def keep_even(