5 lines
394 B
Plaintext
Raw Normal View History

2024-12-03 03:28:35 +00:00
trekhleb said For learning purposes, I made a minimal TensorFlow.js re-implementation of Karpathys minGPT (Generative Pre-trained Transformer). One nice side effect of having the 300-lines-of-code model in a .ts file is that you can train it on a GPU in the browser.
https://github.com/trekhleb/...
The Python and Pytorch version still seems much more elegant and easy to read though...```