Skip to content
mini-lab
Features of prelude-2

Feature #2013

Fires on “]`.” (not labeled yet: read the examples)

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

Where it fires

  • python 56%
  • agent 23%
  • story 12%
  • worksheet 7%
  • chat 3%

Makes the model say

"!"`.()`.)`.O definestxt"`.")`

Makes it not say

sun,. that " there in on

Strongest examples

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

  1. python 2.11
    of items, but it has `return items[0]`.⏎⏎```python
  2. python 2.07
    `return s[-2]` with `return s[-1]`.⏎⏎```python
  3. agent 2.07
    + "!"` instead of `return "Hello, " + name + "!"`. The tests pass now
  4. python 2.03
    items[0]` with `return items[-1]`.⏎⏎```python
  5. python 1.99
    `return items[-1]`.⏎⏎```python
  6. agent 1.91
    used `return max(nums)` instead of `return min(nums)`. The tests pass now
  7. agent 1.9
    used `return s[0]` instead of `return s[-1]`. The tests pass now
  8. python 1.89
    : replace `return items[0]` with `return items[-1]`.⏎⏎```python
  9. agent 1.86
    + "?"` instead of `return "Hello, " + name + "!"`. The tests pass now
  10. agent 1.86
    2` instead of `return sum(nums) / len(nums)`. The tests pass now
  11. agent 1.85
    + "!"` instead of `return "Hello, " + name + "!"`. The tests pass now
  12. agent 1.83
    `return s[1:]` instead of `return s[::-1]`. The tests pass now