A minimal re-implementation of Karpathy's minGPT using TensorFlow.js is introduced for educational purposes. This concise implementation, under 300 lines of code in TypeScript, allows users to train, experiment with parameters, and generate predictions directly in the browser using WebGPU or a Node.js environment. Various files

3m read timeFrom dev.to
Post cover image
Table of contents
GPT FolderWeb PlaygroundNode.js Playground

Sort: