Skip to content
mini-lab
Features of prelude-2

Feature #297

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

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

Where it fires

  • python 39%
  • worksheet 25%
  • story 19%
  • chat 9%
  • agent 8%

Makes the model say

` they "(" He⏎print

Makes it not say

er sunAmyLucymag b doublean

Strongest examples

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

  1. python 5.01
    False⏎assert smaller(8, 5) == 5⏎assert product(5,
  2. python 4.97
    lower_of(12, 1) == 1⏎assert difference(5,
  3. python 4.88
    11⏎assert square(8) == 64⏎assert mean(9,
  4. python 4.8
    assert plus(8, 11) == 19⏎assert is_odd(
  5. python 4.68
    ⏎assert smaller(10, 6) == 6⏎assert previous(12
  6. python 4.67
    music tiger"⏎assert square(8) == 64⏎assert first_letter("
  7. python 4.64
    , 2, 3, 5]) == 6⏎assert last([5,
  8. python 4.6
    D"⏎assert count_vowels("hello") == 2⏎assert initial("sun")
  9. python 4.54
    pizza"⏎assert num_chars("sun") == 3⏎assert count_vowels("
  10. python 4.53
    treetree"⏎assert vowels("star") == 1⏎assert first_letter("
  11. python 4.53
    ", 3) == "bananabananabanana"⏎assert last_letter("
  12. python 4.52
    == "e"⏎assert vowels("banana") == 3⏎assert reverse("banana")