Skip to content
mini-lab
Features of prelude-2

Feature #3548

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

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

Where it fires

  • python 72%
  • agent 24%
  • story 2%
  • chat 1%
  • worksheet 1%

Makes the model say

typo Python listschemapatternRename defined_

Makes it not say

s⏎. Mr hehe his st

Strongest examples

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

  1. python 9.94
    ⏎⏎>>> positive(6)⏎True⏎⏎```python⏎def factorial(n):
  2. python 9.78
    , 4, 2])⏎4⏎<|bos|>```python⏎def odd(x):
  3. python 9.76
    first_letter(s):⏎ return s[0]⏎⏎⏎def double_all(
  4. python 9.73
    TIGER")` returns `"tiger"`.⏎⏎```python⏎def sum_up_
  5. python 9.69
    ("river")⏎"revir"⏎⏎```python⏎def negate(x):
  6. python 9.59
    2)⏎"treetree"⏎⏎```python⏎def divides(a,
  7. python 9.52
    ⏎⏎>>> vowels("lemon")⏎2⏎⏎```python⏎def divides(a,
  8. python 9.43
    , 3])⏎4.75⏎⏎```python⏎def excite(s):
  9. python 9.41
    >>> initial("hello")⏎"h"⏎⏎```python⏎def cube(x):
  10. python 9.3
    >>> is_odd(1)⏎True⏎⏎```python⏎def double(x):
  11. python 9.25
    ⏎⏎>>> vowels("pizza")⏎2⏎⏎```python⏎def loud(s):
  12. python 9.21
    ", 2)⏎"sunsun"⏎⏎```python⏎def excite(s):