Top
Best
New

Posted by butanyways 5 hours ago

Build a Deep Learning Library(zekcrates.quarto.pub)
67 points | 11 comments
grandimam 28 minutes ago|
This is good. Its well positioned for software engineers to understand DL stuff beyond the frameworks.
butanyways 13 minutes ago|
thanks!!
silentsea90 32 minutes ago||
Isn't this what Karpathy does as well in the Zero to Hero lecture series on YT? I am sure this is great as well!
butanyways 14 minutes ago|
If you are asking about the "micrograd" video then yes a little bit. "micrograd" is for scalars and we use tensors in the book. If you are reading the book I would recommend to first complete the series or atleast the "micrograd" video.
amitav1 2 hours ago||
This is cool! This summer I made something similar but in C++. The goal was to build an entire LLM, but I only got to neural networks. GitHub repo here: https://github.com/amitav-krishna/llm-from-scratch. I have a few blogs on this project on my website (https://amitav.net/building-lists.html, https://amitav.net/building-vectors.html, https://amitav.net/building-matrices.html (incomplete)). I hope to finish that series eventually, but some other projects have stolen the spotlight! It probably would have made more sense to write it in Python because I had no C++ experience.
csantini 1 hour ago||
Did something similar a while back [1], best way to learn neural nets and backprop. Just using Numpy also makes sure you get the math right without having to deal with higher level frameworks or c++ libraries.

[1] https://github.com/santinic/claudioflow

butanyways 1 hour ago|
Its nice! Yeah a lot of the heavy lifting is done by Numpy.
yunnpp 2 hours ago||
It's alright, but a C version would be even better to fully grasp the implementation details of tensors etc. Shelling out to numpy isn't particularly exciting.
butanyways 2 hours ago|
I agree! What NumPy is doing is actually quite beautiful. I was thinking of writing a custom c++ backend for this thing. Lets see what happens this year.
p1esk 39 minutes ago||
If someone is interested in low level tensor implementation details they could benefit from a course/book “let’s build numpy in C”. No need to complicate DL library design discussion with that stuff.
butanyways 19 minutes ago||
Yes!!
yazide 1 hour ago|
[flagged]