Get the latest tech news

Show HN: Next-token prediction in JavaScript – build fast LLMs from scratch


Next-token prediction in JavaScript — build fast LLMs from scratch! - bennyschmidt/next-token-prediction

Create a language model based on a body of text and get high-quality predictions (next word, next phrase, next pixel, etc.). With enough training data and a good chat interface, this can be used instead of well-known decoder-only models like GPT, Mistral, etc. readline-completion.mp4readline-completion-verbose.mp4(the following is lower quality on GitHub because it's a couple minutes long - this is training & booting up the LM from 0-1)

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Scratch

Scratch

Photo of javascript

javascript

Photo of fast LLMs

fast LLMs

Related news:

News photo

Prince of Persia Sands of Time is being remade ‘from scratch’, report says

News photo

‘A landmark moment’: scientists use AI to design antibodies from scratch

News photo

JavaScript Runs the World—Maybe Even Literally