hiw3c AI 日报
Hacker News Top 网页快照

Show HN:在TypScript中从Scratch构建LLM

原文标题 · Show HN: Building an LLM from Scratch in TypeScript

HN ð24· 0 评论

来源:Hacker News Top · book.humanexperiences.io

正文为英文,可一键机器翻译(仅首次需要等待)

Building an LLM in NodeJS

Learn how large language models actually work by building one from scratch in Node.js and TypeScript.

We’ll build every layer, from attention mechanisms to the training loop.

Dataset, dataloader, attention, transformer block, GPT, and the training loop built up chapter by chapter.

Every chapter has a runnable entry point in the @node-llm/chapters package, all on GitHub .

Live WebGPU demos from the @node-llm/playground package are embedded throughout.