by cgearhart · 2y ago · 0 comments
Is that separately comparing the time it takes to preprocess the input prompt (prompt_length / pp_token_rate = time_to_first_token) and then the token generation rate is the time for each successive token?
I also see something about bs batch size. Is batching relevant for a locally run model? (Usually you only have one prompt at a time, right?)
it makes sense to benchmark them infependently since prompt processing is done in parralel for each token and is compute bound and token generation is sequential and bound by memory banwidth
Prompt processing doesn't actually need to compute logits for each new token, just cache the KV values and so is much faster than actual inference.
Generation is the response it sends back