Better HN
topnewbestaskshowjobs
Log inSign up

akhalilli

13 karma · joined Jul 19, 2026 (4mo ago) · 5 submissions

Submissions

comment 3mo ago · link · parent

thanks for the vouch, appreciated! :)

and honest answer, English is not my first language, so yes, I rely on co-pilot tools when I write and it probably shows.

the PyTorch content itself I can defend line by line, that part is mine.

comment 3mo ago · link · parent

author here. honest answer: there isn't much that covers the whole thing end to end, that's partly why I started writing this.

but the ones I learned from: - Edward Yang's "pytorch internals" post: http://blog.ezyang.com/2019/05/pytorch-internals/ it's the classic, goes deep on the c++ side.

- the pytorch developer podcast, same author. short episodes, one internal topic each

- the pytorch repo's own CONTRIBUTING.md, the folder layout explained by the maintainers

- and if you want to build autograd instead of reading about it, Karpathy's micrograd / zero to hero

mine is planned as 12 parts, the list is at the end of the post. part 1 (chapter Tensor: storage, strides, views) is in progress now.

comment 3mo ago · link · parent

the yaml thing is not a switch statement though. torchgen takes native_functions.yaml and generates the bindings, autograd nodes and dispatch entries from that one file. there are ~~3700 ops. try keeping that in sync by hand.

also dynamo never calls gcc. it just captures the graph from python bytecode. inductor is what writes triton/cpp and sends it to real compilers. they built their own compiler stack once (torchscript), it's dead now. so this time they reused what exists.

spaghetti yes. 10 years of layers. you can see every era in the repo.

4.

The whole of PyTorch on one page(tensor.khalilli.ai ↗)

35 points · by akhalilli · 3mo ago · 9 comments