Bridging the gap between neural networks and functions
sebinsua.com
sebinsua.com
https://github.com/runvnc/mlp/blob/master/neuralnetwork.cpp
https://github.com/runvnc/nnpapers/blob/master/hinton86.pdf
This article is also a very good explanation.
It discusses the standard backpropagation optimization method in differential form and the functional approximation of neural networks, but doesn't discuss transformers at all that I could tell. I think the code might be helpful to some in understanding implementation, but so much is now done in accelerators that it doesn't really capture real implementations.