HackerTrans
トップ新着トレンドコメント過去質問紹介求人

ani17

no profile record

投稿

Why do output tokens cost 5x more than input tokens?

anirudhsathiya.com
3 ポイント·投稿者 ani17·3 か月前·2 コメント

LLM inference engine from scratch in C++ – why output tokens cost 5x

anirudhsathiya.com
9 ポイント·投稿者 ani17·3 か月前·3 コメント

Ask HN: How cam I auto-switch shared Google Meet tab?

1 ポイント·投稿者 ani17·8 か月前·2 コメント

How Much OpenAI Spends on Inference and Its Revenue Share with Microsoft

wheresyoured.at
68 ポイント·投稿者 ani17·8 か月前·25 コメント

[untitled]

1 ポイント·投稿者 ani17·10 か月前·0 コメント

コメント

ani17
·3 か月前·議論
Author here. I wanted to understand what vLLM and llama.cpp are actually doing under the hood, but the codebases are massive. So I wrote a stripped down version from scratch to see the core ideas without the production complexity.

Code: https://github.com/Anirudh171202/WhiteLotus
ani17
·3 か月前·議論
The blog walks through why your first token is always the slowest, why output tokens cost 5x more, and how stuff like speculative decoding and chunked prefill actually work, from the perspective of a systems engineer!
ani17
·3 か月前·議論
Author here. A bit more context: By day I'm a systems engineer building AI networking infrastructure. So I kept ending up in conversations where I'm not exactly able to wrap my head on the latest inference magic trick.

Like when someone mentioned vLLM's paged attention, I knew virtual memory paging, but had no idea someone had applied the same idea to KV cache allocation on GPUs.

Github link to the project: https://github.com/Anirudh171202/WhiteLotus
ani17
·8 か月前·議論
Definitely an alternative solution. For the purpose of this script, I wouldn't prefer that though.
ani17
·8 か月前·議論
It's insane if the data is accurate. Only time will tell
ani17
·10 か月前·議論
You forgot "Middle Out" by Pied Piper!
ani17
·10 か月前·議論
[dead]
ani17
·10 か月前·議論
[dead]
ani17
·10 か月前·議論
thanks for sharing!