GateGPT: 56k tokens per second Transformer (KV cache) on FPGA at 80 MHz
1–10 of 16 posts
Re: GateGPT: 56k tokens per second Transformer (KV cache) on FPGA at 80 MHz
#2https://rits.shanghai.nyu.edu/ai/karpathys-microgpt-on-fpga-...
TL;DR: The CPU implementation was 71x faster than the FPGA.
Note: model has only 4192 parameters.
Re: GateGPT: 56k tokens per second Transformer (KV cache) on FPGA at 80 MHz
#3Re: GateGPT: 56k tokens per second Transformer (KV cache) on FPGA at 80 MHz
#4See also: https://rits.shanghai.nyu.edu/ai/karpathys-microgpt-on-fpga-... TL;DR: The CPU implementation was 71x faster than the FPGA. Note: model has only 4192 parameters.
but anyone who can fit QWEN-3.6 35B with a sustained ~30 token/s and ~100k context with cache could print money as a hardware vendor.
Re: GateGPT: 56k tokens per second Transformer (KV cache) on FPGA at 80 MHz
#5See also: https://rits.shanghai.nyu.edu/ai/karpathys-microgpt-on-fpga-... TL;DR: The CPU implementation was 71x faster than the FPGA. Note: model has only 4192 parameters.
yeah, then theres prompt loading too. but anyone who can fit QWEN-3.6 35B with a sustained ~30 token/s and ~100k context with cache could print money as a hardware vendor.
Re: GateGPT: 56k tokens per second Transformer (KV cache) on FPGA at 80 MHz
#6Which means really impressive when those N’s are small!
I’m but a pundit in this area so don’t know much. But one wonders if there’s a future in burning larger models to FPGAs - whether big enough FPGAs exist (or can be built), and whether locating specialized compute right with the memory it needs can speed things up.
Likely would need a lot of algorithm parallelism work that’d translate back to CPUs/GPUs.
Re: GateGPT: 56k tokens per second Transformer (KV cache) on FPGA at 80 MHz
#7See also: https://rits.shanghai.nyu.edu/ai/karpathys-microgpt-on-fpga-... TL;DR: The CPU implementation was 71x faster than the FPGA. Note: model has only 4192 parameters.
Now, there are a bunch of interesting things about this project. Seeing the example of a tiny transformer running on FPGA is informative, and that it was apparently a pretty quick project for one person + robot assistance. Probably some transferable lessons for anyone else doing robo-FPGA development.
Re: GateGPT: 56k tokens per second Transformer (KV cache) on FPGA at 80 MHz
#8The context window is 16 characters . Talking about tokens per second is meaningless.
Re: GateGPT: 56k tokens per second Transformer (KV cache) on FPGA at 80 MHz
#9Transformers scale poorly vs. context window size and parameter count. Which means really impressive when those N’s are small! I’m but a pundit in this area so don’t know much. But one wonders if there’s a future in burning larger models to FPGAs - whether big enough FPGAs exist (or can be built), and whether locating specialized compute right with the memory it needs can speed things up. Likely would need a lot of a…
Re: GateGPT: 56k tokens per second Transformer (KV cache) on FPGA at 80 MHz
#10The context window is 16 characters . Talking about tokens per second is meaningless.
its not meaningless. there could be usecases like spell correction.