Implementations are in the aten folder, here ReduceOps.cpp 10. The selective excursion 4 blog post attempts to show you how things are tied together.
Note that reductions use a mechanism called TensorIterators that is one of the more elaborate things in PyTorch, so their actual implementation is spread across several files and is a bit less straightforward to understand than one might expect.
Best regards
Thomas