PinnedInTDS ArchivebyAlex Dremov·Jan 15, 2025Understanding Flash Attention: Writing the Algorithm from Scratch in TritonFind out how Flash Attention works. Afterward, we’ll refine our understanding by writing a GPU kernel of the algorithm in Triton.
PinnedInTDS ArchivebyAlex Dremov·May 28, 2024Simple Ways to Speed Up Your PyTorch Model TrainingIf all machine learning engineers want one thing, it’s faster model training — maybe after good test metrics
InTDS ArchivebyAlex Dremov·Jan 9, 2025Speed Up PyTorch With Custom Kernels. But It Gets Progressively DarkerWe’ll begin with torch.compile, move on to writing a custom Triton kernel, and finally dive into designing a CUDA kernel from scratch.
InLevel Up CodingbyAlex Dremov·Jun 15, 2023Swift Actors — Common Problems and TipsSwift actors are a powerful tool to address data races and make your code thread-safeA response icon1A response icon1
Alex Dremov·Jun 13, 2023Moving from singletons to explicit dependencies is kind of a major professional growth in my…
InLevel Up CodingbyAlex Dremov·Jan 10, 2023Dive into Swift’s Memory ManagementSwift uses ARC to track and deallocate unused objects. Learn about the three types of reference counts and how ARC works — in this post