Show HN: gpt-tfjs – GPT model in TensorFlow.js

The model architecture follows minGPT as much as possible. It actually uses minGPT for JS tests generation (gradients, predictions). The main advantage of having the model implemented in TensorFlow.js is the ability to perform training/fine-tuning, for example, in a browser using WebGPU or in Node.js.

Examples in the `projects` folder include: - sorting (basic example) - loading GPT-2 weights - training on large texts using streams

Feedback is really welcome! There also an open PR on porting the model to Typescript, which has some unresolved issues

4 points zemlyansky 3 years ago 0 comments

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton