11 comments

[ 0.21 ms ] story [ 44.0 ms ] thread
If you use the Cursor IDE: the folks that wrote it talked about their use of speculative decoding to make "Apply" faster on the Lex Friedman podcast last month.

Here it is on YouTube, although you can also find it on Spotify and other podcast platforms:

https://youtu.be/oFfVt3S51T4?t=1206

For those that prefer text: it seems they use a weaker but faster model for the "predicted output" / speculation. Pretty smart.
(comment deleted)
This is like the likely() and unlikely() macros in the Linux kernel! Huge speedup if you're right; small penalty if you're not.
Any recommendations for high level overview/learning resources about this? It seems interesting, but like most Linux internals, things get real technical, real quick.