Samuel Reeder

Draw something!

I study CS at UofT and work on AI infra at AMD.

Also into training and running models locally, skiing, Formula 1, and sim racing.

Work

AMD / hipDNN & MIOpen

AGS Libraries Intern, then Associate Engineer May 2025 – present

I work on hipDNN, AMD’s deep learning library, and the tools we use to test and benchmark it.

Associate Engineer

May 2026 – present

I led hipDNN’s Python benchmarking infrastructure. It runs 1,197 test cases across three GPU architectures each night. I proposed and added tensor support so hipDNN can use AITER’s attention kernels, with up to 1.8× speedup. I built a JSON loader that lets us add engines without editing C++.

9+ teams now use my one-command setup for AI coding tools, and I gave two talks about coding with AI to about 100 engineers.

AGS Libraries Software Development Intern

May 2025 – May 2026

I added six operations to hipDNN and worked on its convolution and BatchNorm engines and tests. Changes to MIOpen’s convolution API gave a 6.5% speedup across one customer’s total convolution workloads.

5 days→3 hoursExhaustive performance sweep

I distributed our exhaustive workloads across 256 GPUs with Kubernetes. About 40× faster for the full test run.

I also landed 240+ PRs and reviewed 350+ across ROCm’s public GPU libraries.

Projects

megakernels

CUDA / C++ / PyTorch / Python / TMA

Megakernels runs a whole LLM decode step as one persistent CUDA kernel. For Qwen3.5-0.8B, all 24 layers, the LM head, and sampling happen inside a single launch, with no per-op kernel boundaries and no grid-wide barriers.

916 tok/s · 2.1× llama.cpp

Write a short story about a lighthouse keeper who finds a message in a bottle.

Replay of a recorded run: the megakernel streamed 512 tokens in 680 ms (814 tok/s); llama.cpp took 1466 ms (367 tok/s).

A real recording of both engines streaming the same prompt on one RTX 5080, replayed with its original timestamps. The counters always use real time.

Decode tok/s · batch 1 · 512-token context

  • Megakernel INT8916
  • llama.cpp Q8_0443
  • Megakernel BF16533
  • vLLM BF16400
  • llama.cpp BF16335
Wall-clock tok/s, best of three runs. llama.cpp with flash attention and every layer on the GPU; vLLM 0.32 with CUDA graphs.

Decoding one token at a time reads every weight once and does almost no math with it, so memory bandwidth sets the speed limit. A normal engine launches hundreds of small kernels per token, and each boundary drains the GPU before the next one fills it. Keeping one block resident on every SM for the whole step is much harder to write and debug, but the weights never stop streaming. It’s for running small models fast on your own GPU.

INT8 at batch 1 and a 512-token context on an RTX 5080, timed wall-clock against llama.cpp Q8_0. BF16 runs at 533 tok/s, which is 1.6× llama.cpp BF16 and 1.33× vLLM. With the model’s own MTP head drafting tokens, INT8 reaches 1,205 tok/s on chat replies.

How I tested it

Each number is the best of three timed runs per engine, with a raw-bandwidth check before and after every segment so nothing else was using the GPU. Measured on the GPU’s own clock, a BF16 step streams 1.54 GB of weights and state at 857 GB/s, 94% of the 915 GB/s the card sustains in a pure bandwidth test. BF16 matches Hugging Face transformers (WikiText-2 perplexity 17.1408 vs 17.1402), INT8 raises perplexity by 0.12%, and every run is bitwise deterministic.

RLsim

Python / PyTorch / MuJoCo / TensorFlow.js / WebGPU / Three.js

RLsim lets you build a jointed creature, train a PPO controller for it, and watch it move in real MuJoCo physics. Training runs on your own GPU in the browser through WebGPU, or on a CUDA server.

84 / 87 gait checks passed

A four-legged body walking on a grid floor in RLsim's MuJoCo simulation.
Recorded in RLsim’s browser build: the same frozen controller in live MuJoCo physics, with both leg segments scaled to 100%, 130%, and 70%. All three runs passed the gait check.A silent, 12-second clip of a four-legged body walking.

A walking controller that only works on the body it was trained on is a demo, not a result. So I chose the controller on separate validation episodes, kept the final body shapes hidden until then, and published every failure instead of the best clip. It’s for anyone who wants to try reinforcement learning without a physical robot.

One frozen quadruped controller, tested on 24 held-out random body shapes and 5 speed commands, three episodes each, in native physics. It passed 86 of 87 in browser physics; the controller before it passed 65 of the same 87.

How I tested it

An episode passes if the body walks for 20 s without falling, stays within 0.35 m/s of the target speed, takes at least six steps with every leg, keeps each foot on the ground 15–85% of the time, and keeps foot drift and torso pitch low. Body shapes vary torso, upper-leg, and lower-leg length from 60% to 140%, with one corner of that range withheld from training. The controller was chosen on separate validation episodes, the final shapes were held back until then, and every failure stays in the published results.

AsciiNet

Python / PyTorch / CUDA / ConvNeXt / Transformers

AsciiNet turns images into ASCII art. I trained the 28M-parameter model using a slower converter. With SANA-Sprint, it can start from a text prompt too.

24 ms / image · 0.31 GiB peak VRAM

A few examples I generated on my computer. SANA-Sprint made the images, then AsciiNet turned them into text.

The converter I started from made good ASCII art but took 108 ms per image. I distilled it into a small model and accepted a 2.7-point drop in how recognizable the output is in exchange for running 4.5× faster. The evaluation below shows that gap instead of hiding it.

At 80 columns on an RTX 5080, it’s 4.5× faster than the converter it learned from (108 ms/image). This only times the image-to-ASCII step, not loading the model or generating the source image.

How I tested it

Qwen3-VL-8B checked how recognizable the ASCII images were. On 480 held-out questions with five choices each, it got 157 right from AsciiNet’s output (32.7%) and 170 from the slower converter’s output (35.4%). Both used 80 columns. That’s a 2.7-percentage-point gap; random guessing would give 20%. These are model scores, not ratings from people. The examples below are handpicked to show what the output looks like.

Training loss ended at about 1.503, averaged over the last 100 steps of phase 2. That includes 1.043 for choosing characters (glyph cross-entropy). Loss shows how closely the model matches the converter it learned from. The recognition test checks whether the result is recognizable.

Caspr

TypeScript / Next.js / Three.js / Jest / Firebase

Caspr lets you search, filter, and share causal graphs in 3D. I led the seven-developer team that built it for U of T’s Machine Learning Group.

Caspr application: a 3D causal graph with labeled connected nodes, a details panel, and search and filtering controls.
A graph open in Caspr, with search and filtering on the side.

The researchers we built it for had no easy way to explore their causal graphs. Instead of another static diagram, we built Caspr around finding things: open a graph in 3D, search and filter it down to the part you care about, then share the graph.

Earlier projects

Made these pre LLMs ;)

Generative Piano AI

Python / PyTorch / MIDI

This model learned from 100+ classical piano pieces. People’s ratings helped fine-tune it.

Waveform of the generated piano sample.
Training and generation recording
A sample from the retrained model, played on a sampled grand piano so every note rings out.No speech. The video shows the model training and making music in a terminal.

MIPS Tetris

MIPS Assembly / Bitmap graphics

Tetris in 1,200+ lines of MIPS assembly, with rotation, line clearing, scoring, and a next-piece preview.

Runs in Saturn or MARS.A silent, 16-second gameplay recording.

Background

University of Toronto · HBSc

Computer science with a focus on AI, plus statistics and math minors. Part of the ASIP co-op program. Expected Apr. 2027.

AMD

May 2025 – present

Associate Engineer, after an AGS Libraries internship

Work on hipDNN, AMD’s deep learning library, and the tools we use to test it.

DataAnnotation Tech

May – Oct. 2024

Data Analyst & Programmer

Wrote and debugged C++, Rust, and Python code to help train AI models, and checked the training data for changing patterns and incorrect labels.

GoChain

May – Oct. 2022

Software Engineer Intern

Redesigned the GoTrace frontend, fixed bugs in GoChain’s Go code, and built gochain.io.

Languages
C++, C, Python, Rust, TypeScript, Go
Tools
ROCm, HIP/CUDA, PyTorch, Linux, Kubernetes, Docker, GitHub Actions, Slurm, CMake, GTest, PostgreSQL, Claude Code, Codex