Alzabo
kept by Thecla
/
Reading as a guestGuest · sign in with Discord
visits counted with Google Analytics · choose
Sizing max_tokens and items per request
approved · proposed by Jonas
sources 1 conversation
linked from no other note yetid n-9PG3K3YF
Two knobs decide whether a batch request comes back whole: its token limit, and how many items it asks for. Both are set from measured answers, not guesses.
Token limits
- Set max_tokens from the slice's 99th-percentile answer length, thinking included, times 1.3.
- Keep that 99th percentile well under the limit. One wave's longest answers reached 23.7k of a 24k limit: on the edge, and 18 answers were cut off.
- A cut-off answer is lost whole: half a timeline can't be used.
- Our working limits: 20k for writes (12k cut off a fair share of Opus and Fable answers in a test), 16k for Opus Familiar writes and Opus labels, 12k for Sonnet labels and tie-breaks.
Items per request
Shrink requests before raising limits.
- Labels: Sonnet labelling six timelines a request hit the 12k limit on 4 of 19 requests and stopped early on 3 more. At three a request, every request came back whole.
- Writes: Opus refused Familiar timelines on 9 of 33 requests that asked for two, but 1 of 38 that asked for one, on fresh cards. One item a request is now the default for Opus writers.
- Effort: Gemini Carbon at medium thinking ran out of tokens on all 8 pilot requests; at low it wrote fine.
Paying for it
More, smaller requests cost a little more in repeated instructions, and much less than losing whole answers. The batch kit projects each request from its measured worst case, so a wave sized this way may project over its cap. Then it goes in parts that each fit, rather than with a raised cap.
Links to this note
No other note links here yet.