Skip to content
mini-lab
Features of prelude-2

Feature #1611

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

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

Where it fires

  • python 63%
  • agent 20%
  • story 14%
  • chat 2%
  • worksheet 1%

Makes the model say

was2 had on pass down need in

Makes it not say

numsERai biggest ourlist nums idea

Strongest examples

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

  1. python 3.26
    stats.py⏎all tests passed⏎<|bos|># mathlib.py⏎def product(a,
  2. python 3.15
    ` with `head(items)`.<|assistant_end|><|bos|># mathlib.py⏎def fact(n):
  3. python 3.03
    power(a, b):⏎ return a ** b⏎⏎⏎def cube(x):⏎
  4. python 2.92
    ⏎5⏎tree!⏎```<|assistant_end|><|bos|># mathlib.py⏎def previous(x):
  5. python 2.9
    minus(a, b):⏎ return a - b⏎⏎⏎def cube(x):⏎
  6. python 2.88
    def positive(x):⏎ return x > 0⏎⏎⏎def square(x):⏎
  7. python 2.84
    if a > b:⏎ return a⏎ return b⏎⏎⏎def difference(a, b
  8. python 2.8
    .json"⏎}⏎⏎# number_utils.py⏎def even(x):
  9. python 2.8
    ⏎-3⏎<|bos|># test_calc.py⏎from calc import min_of⏎
  10. python 2.75
    minus(a, b):⏎ return a - b⏎⏎⏎def cubed(x):⏎
  11. python 2.75
    , b):⏎ return a % b == 0⏎⏎⏎def decrement(x):⏎
  12. python 2.75
    subtract(a, b):⏎ return a - b⏎⏎⏎def factorial(n):⏎