Hacker News new | past | comments | ask | show | jobs | submit | nathan-barry's comments login

This is a post covering the basics of machine learning, along with a Go implementation of Karpathy's micrograd

Yeah, right now the weights aren't even pushed to the repo so there's no way for the github page to load them in. I've looked a tiny bit into it and might end up making a fix for it, having it load the weights by fetching them from somewhere else on load, but probably not today.

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.


This was a final project for a graphics class where we used WebGL a lot. Also I was just more familiar with OpenGL and haven't looked that much into webGPU

Working on getting it up on Github pages, will let you know. Not sure if there will be an issue with hosting the weights, I'll look into it

You may be able to fetch the weights directly from Hugging Face. I'd try that first.

Checkout https://github.com/jseeio/gpt2-tfjs fetches the weights for GPT2 from huggingface on the fly.

I haven't looked at your implementation, but if you can read ONNX weights... https://huggingface.co/Xenova/gpt2

Yeah it'd be great if you could file an issue and show what you see! I was using Safari but I'm gonna check other browsers to test if it works on them

Great! I've filed an issue.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: