Curious why you chose WebGL over WebGPU? Just to show it can be done?
(Also see my other comment about fetching weights from huggingface)
For a WebGPU implementation, one can use transformers.js directly (or many other libraries actually), maybe WebGL is more original.
Looks like it's trying to load the typescript directly / hosting the source files: `<script type="module" src="src/main.ts"></script>` - instead of hosting the dist folder.
There is a link to the zipped up folder with the weights here: https://github.com/nathan-barry/gpt2-webgl/releases/download...
If anyone wants to make a PR which fetches the file from there, unzips it, then loads in the weights from there that would be greatly appreciated.
throwaway314155•11h ago
Happy to file an issue on the repository as well if you'd prefer that.
nathan-barry•11h ago
throwaway314155•10h ago