TIL: How to measure memory usage from your PyTorchmodel without running it
April 22, 2024
Fantastic tip from Alban, particularly useful when you have a giant model and limited VRAM.
Needless text
April 22, 2024
Fantastic tip from Alban, particularly useful when you have a giant model and limited VRAM.
April 21, 2024
Interesting to read this breakdown of what was happening with Reader: I recall the discussions internally at Google and knew some folks floating around it (including at least one person who volunteered to take on maintenance) but this was largely new to me. Uncomfortably enough was on stage giving a talk for Google the day the shut down happened. I asked for questions, got a lot of hands, then qualified I was looking for questions about the talk and not Reader, and most of the hands went down.
February 22, 2024
January 16, 2024
Inductor is PyTorch’s compiler backend designed to optimize and generate high-performance code for arbitrary models. It works over a few phases:
January 8, 2024
A wide ranging talk that includes a lot of the new work on ExecuTorch for on-device support, including the torch.export stack. The talk really goes through the whole flow from graph capture, lowering and optimizations so its a great way to get a sense for what is happening within PyTorch!
January 4, 2024
October 7, 2023
September 19, 2023
The PyTorch composability meeting is one of the most interesting discussions of how the various parts of PyTorch fit together, particularly in the context of the PyTorch compiler and associated technologies. The meetings themselves are public, and so are the meeting notes, which are a great reference point.
June 29, 2023
A very practical exploration of how to get a transformer model going faster for inference:
June 28, 2023
The kernel dispatch time eats a lot of performance on GPU – CUDA graphs let you chain a bunch of kernels together, and they’re now more accessible from PyTorch: