TinyTorch, formally verifiable #1901
sueszli
started this conversation in
Show and tell
Replies: 2 comments 2 replies
|
Simply Lovely !! |
1 reply
|
Yea, this is pretty neat. This gave me some new ideas though they haven't settled 🤔 enough to share. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi everyone!
After hacking together a C version of TinyTorch1, I ported my code to Lean, partly to see if I could formally verify the backward kernels, but mostly as an excuse to learn the language.
Along the way I reimplemented microGPT inside it, which helped me understand GPT internals and how to prove properties about gradient computations.
It's not particularly performant, but it has been a very fun exercise in thinking rigorously about autodiff.
I'm very grateful to Prof Reddi and the TinyTorch community for the material and inspiration!
Footnotes
https://github.com/harvard-edge/cs249r_book/discussions/1080 ↩
All reactions