Skip to content

Commit

Permalink
Create scratchpad_prompting.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dmarx authored Nov 22, 2024
1 parent fae1dca commit b9efa33
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions scratchpad_prompting.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Scratchpad Prompting

Normal causal pre-training, but prefix the generation with a comment indicating a token budget of free thinking, bracketed with a forced closing token.

Something like:

```
{some arbitrary span of tokens. at some randomly selected index (maybe constrained to ends of sentences)}<SCRATCHPAD:500>{let the model do what it wants for a bit. mask this from the loss}</SCRATCHPAD>{normal autoregressive language modeling objective picking up as if the scratchpad span didn't exist}
```

Let the model generate what it wants to supplement the context.

0 comments on commit b9efa33

Please sign in to comment.