Nathan Nguyen

You're in text mode. Switch to .You're in text mode. Turn on JavaScript if you'd like to see the 3D room!

Nathan Nguyen

Hi! I'm a Computer Science student at Purdue.

My interests lie at the intersection of systems programming, machine learning, inference engineering, and math. I enjoy understanding how things work under the hood and building software that works well.

Feel free to explore my room (yes, it's modeled after my actual room!) to learn more about me.


Check out my work and projects, or feel free to reach out about anything.

If you'd like to support me, you can buy me a coffee.

Work

Here's what I've been up to:

  1. May 2026 – Present

    Development Teaching Assistant

    CS 251: Data Structures and Algorithms, Purdue University · West Lafayette, IN

    I help run the course and build its projects and grading tools.

  2. Jan 2026 – Present

    Undergraduate Researcher

    Complex Flow Lab, Purdue University · West Lafayette, IN

    I built an LLM-agent system that runs long molecular dynamics simulations and recovers them on its own when something goes wrong.

  3. Jan – May 2026

    Teaching Assistant

    CS 354: Operating Systems, Purdue University · West Lafayette, IN

    I wrote kernel-level assignments and helped students debug their operating system code.

  4. May – Aug 2025

    Software Engineer Intern

    Concrete Engine · West Lafayette, IN

    I worked on backend performance, mainly caching and concurrent I/O.

Also check out my LinkedIn profile here: https://www.linkedin.com/in/nathan-nguyen-nng/

Projects

My main focus is on optimizing and deploying inference engines.

I run a large language model on my own GPUs and use it to benchmark and tune serving performance. The PC under my desk is the machine behind all of it!

  • Faster attention for long conversations on consumer GPUs.

    I built pth-flash-attn, an open-source CUDA attention kernel that helps language models work efficiently with an 8-bit KV cache, which stores information about earlier tokens. It reads the compressed cache directly using tensor cores, distributes long requests across the GPU, and integrates with vLLM as an attention backend.

    On my two RTX 3080 20 GB cards, a 128k-token prompt reached its first token in 128 seconds instead of 262 seconds, while generation speed rose from 44 to 86 tokens per second compared with int8 Triton attention. These measurements used vLLM 0.31.0 with MTP speculative decoding and a 220 W power limit per card. The project is public on GitHub and integrated into HyperQwen.

    Built with: CUDA · C++ · PyTorch · vLLM

  • Helping GPUs read compressed attention data more efficiently.

    I contributed an optimization to vLLM, an open-source engine for serving language models. Its compressed KV cache layout forced the Triton attention kernel to read data one byte at a time. I adjusted the memory alignment so the GPU could load multiple bytes together and extended the attention benchmarks to make the results reproducible.

    On my RTX 3080 setup, the tested int8 attention operations ran 1.25–1.96× faster, with kernel outputs identical to the original implementation. End to end, the wait for the first token of a 128k-token prompt fell by 21%. The tradeoff is additional cache memory: 4.6% at a head size of 256. The contributions are under review.

    Built with: Python · Triton · vLLM

  • Making large language models more practical to run on a home server.

    I contribute to Strata, an inference engine for running Qwen3.8-Flash-Next on consumer hardware. My work improves CPU thread placement, speculative decoding across multiple GPUs, adaptive expert caching, and memory checks inside containers. Strata’s maintainer merged these contributions upstream.

    On my two RTX 3080 20 GB cards, assigning helper threads to spare CPU cores increased single-stream generation from 72 to 80 tokens per second. In a separate comparison, enabling batch speculative decoding increased combined two-stream throughput from 77.3 to 89.2 tokens per second, about 15%. These are measurements from my configurations; the gains depend on hardware and how much of the model fits in GPU memory.

    Built with: C++ · CUDA · Python

  • Bringing my attention kernel into an open-source Qwen serving stack.

    I integrated pth-flash-attn into HyperQwen and added support for its MTP and DFlash2 speculative decoding paths, installation fixes, and benchmark coverage. These contributions are merged upstream. HyperQwen now selects the kernel by default for supported long-context MTP and DFlash2 configurations on compute capability 8.6 GPUs, including the RTX 3080 and 3090, using it for both the main model and its speculative drafter.

    The HyperQwen maintainer independently tested the integration on a single RTX 3090 at 250 W. With the merged MTP default, generation at roughly 100k tokens of context reached 78.5 tokens per second, compared with 68.8–68.9 on the previous backend across two runs per configuration, about 14% faster. Separate DFlash2 tests measured an improvement from 48.0 to 53.2 tokens per second at roughly 100k context.

    Built with: CUDA · PyTorch · vLLM · Python · Shell

  • A self-hosted assistant for managing applications.

    I built Trajectory to keep job, graduate school, scholarship, and fellowship applications in one place. It tracks deadlines and progress, reads postings from links, and helps draft résumés and letters using a local language model by default.

    Application data lives in a SQLite database on my machine, giving me control over where it is stored. The goal is to spend less time organizing documents and repeating the same information, while keeping a clear view of what needs attention next. I’m preparing the project for an open-source release.

    Built with: Python · FastAPI · SQLAlchemy · SQLite · React · TypeScript · Vite · Docker · Browser extension

  • An interactive portfolio modeled after my actual room.

    I built this website as a 3D version of my room, with everyday objects leading to different parts of my portfolio. Visitors can explore projects on the whiteboard, browse the photo album, and discover more about me through the space.

    The same content is available in a text view for visitors who prefer to go straight to the information. The site supports phones and desktops, with controls for motion and rendering quality so visitors can choose how they explore.

    Built with: three.js · TypeScript · Vite · Web Audio · sharp

  • My home lab for inference engineering and LLM infrastructure.

    This server runs large language models at home. It runs Proxmox, with Linux containers for model serving and experiments. It’s also where I develop and test my CUDA kernels and contributions to open-source inference engines.

    With Strata and my patch stack, it ran the 104 GB Qwen3.8-Flash-Next UD-Q4_K_XL model, reading a roughly 104k-token prompt at 2,996 tokens per second and generating text at 86 tokens per second. Those are medians from three benchmark runs. The setup also used a shared 512K-token KV pool with room for two conversations of up to 256K tokens each.

    CPU:
    Intel Xeon E5-2696 v4, 22 cores / 44 threads
    GPUs:
    2 × RTX 3080, modified with 20 GB VRAM each
    RAM:
    128 GB ECC DDR4-2400
    Motherboard:
    MACHINIST X99-MR9A PRO MAX
    Storage:
    512 GB NVMe SSD + 2 × 8 TB HDD
    Case:
    Montech X5
    Platform:
    Proxmox VE 9.2 with Linux LXC containers
    Inference stack:
    Strata · HyperQwen · vLLM

See more on GitHub: https://github.com/noon-at-cgn

Blog

I'll share my journey here. RSS feed

No posts yet. Check back soon!

Photos

No photos here yet. Check back soon!

About

I'm a Computer Science student at Purdue University. My interests are in Systems, Machine Learning, Inference Engineering and Math.

I enjoy learning how things work from first principles and using that knowledge to build things.

Also, I like to take photos in my free time.

If you'd like to support me, you can buy me a coffee.

Favorite games

These are the games I keep coming back to!

The mini fridge

Currently surviving exams and projects thanks to Golden Red Bull and Starbucks Doubleshot Energy.

Credits

  • Handwriting Kalam Bold (Latin subset) · Indian Type Foundry · OFL-1.1
  • Text Inter (Latin subset) · Rasmus Andersson · OFL-1.1
  • Small labels JetBrains Mono (ASCII subset) · JetBrains · OFL-1.1
  • 3D runtime three.js · three.js authors · MIT
  • The game artwork on my monitor was generated with AI (OpenAI's GPT Image model) as fan art of The Witcher 3, Minecraft, Genshin Impact and League of Legends. The games and characters belong to their respective owners (CD Projekt Red, Mojang, HoYoverse and Riot Games).
  • Open-source licences

Contact

Feel free to reach out about anything.