Better HN
topnewbestaskshowjobs
Log inSign up

natechlin

7 karma · joined Jun 21, 2024 (2y ago) · 2 submissions

Submissions

comment 8mo ago · link · parent

Prefill - module computes KV cache over input toks, up to the last token in your input (the 'prompt'), at which point it can then begin -

Decode - the model chooses a new token to append to the end of the current token list (i.e. it generates a token), then computes the new tokens KVs.

Decode is basically prefill 1 tok -> add 1 tok -> prefill 1 more tok -> ....

but in the initial prefill stage it doesn't need to do generation, since you've provided the toks.

2.

Managing a million dollar pool with 15k lines of Go(nat-echlin.com ↗)

5 points · by natechlin · 10mo ago · 1 comment