
ECE @UWaterloo // prev: cutedsl @NVIDIA, quant research @citsecurities
E7 4417
Joined February 2017
- Tweets570
- Following487
- Followers3K
- Likes1.2K
Pinned Tweet
I implemented an LLM end-to-end in hardware, and ran it on an FPGA.
Zero Python. Zero CUDA. Just pure SysVerilog.
All my progress + everything I learned from 200h of LLM chip design (demo at the end)👇
Great news: the one research area Claude won't touch— pretraining, dist. training infra, ML accel. design —happens to be exactly what I'm about to spend a PhD on under @tri_dao & Ravi 😂
Let's pray the safeguards hold for another half decade!
mythos will be bad ON PURPOSE on ai "frontier llm research" tasks, this is very very sad for the research community
also the fact that this is un purpose not visible to the user is crazy
1
16
1,614
Long live SGD! Surprising to me that LR=0.1 (!!) with zero momentum worked so well.
We invite you to ponder: what would an RL-native PEFT algorithm that turns RLVR’s parameter efficiency into compute efficiency look like? 🤔
Pavan Jayasinha retweeted
I spent the past month reimplementing DeepMind’s Genie 3 world model from scratch
Ended up making TinyWorlds, a 3M parameter world model capable of generating playable game environments
demo below + everything I learned in thread (full repo at the end)👇🏼
Pavan Jayasinha retweeted
We beat Nvidia’s cuBLAS kernels on B200s in 170 LOC.
Using zero CUDA. Just pure Mojo.
Here’s exactly how we went from 1% to 106% of Nvidia benchmark perf from scratch (with code) 👇🧵
Pavan Jayasinha retweeted
TogetherAI's Chief Scientist @tri_dao announced Flash Attention v4 at HotChips Conference which is up to 22% faster than the attention kernel implementation from NVIDIA's cuDNN library. Tri Dao was able to achieve this 2 key algorithmic changes. Firstly, it uses a new online softmax algo to skip 90% of output rescaling. Secondly, in order to better overlap the softmax computation with the tensor core computation, it uses software emulation of exponential (MUFU.EX2) to boost throughput.
This is the key advantage of the CUDA moat, is developers like Tri Dao implement algorithmic breakthroughs on CUDA. Tri Dao or any of his researchers does not use ROCm AMD GPUs or Trainium chips. Furthermore, Flash Attention v4 uses CUTLASS CuTe Python DSL which is 10x harder to port to ROCm HIP, verus CUDA C++ is easilier to port ROCm HIP.
I got carried away trying to implement radix sort in CUDA today.
Ended up getting to ~0.42 billion elements sorted per sec on GH200 - not terrible for a price of 130 lines of code.
Code for the cuda curious: (and other jobless Canadians on Mem Day) github.com/Sinestro38/gpu_ra…
Pavan Jayasinha retweeted
🚨🔥 CUTLASS 4.0 is released 🔥🚨
pip install nvidia-cutlass-dsl
4.0 marks a major shift for CUTLASS: towards native GPU programming in Python
slidehelloworld.png
docs.nvidia.com/cutlass/medi…
Got nerd-sniped from writing a paper to building a Kamikaze drone for my URA.
Ended up building this from scratch with my supervisor in 3mos with no prior experience in mechanical + robotics bringup.
I'm open sourcing the full system parts list (see below) 👇 👀 🤐
2
33
2,669
PSA: My supervisor (Adam Srebrnjak Yang, MSc) is goated at anything physical or software-in-the-loop related. His 13pg portfolio is jaw-dropping. Luckily, he just got on the job market.
I'd highly recommend shooting him a message if you're hiring.
linkedin.com/in/adam-srebrnj…
2
7
1,440
Phase 5: Design verification (Synthesis + Post-Implementation simulations)
Even though this is the last phase, in actual development, testing and design verification is done alongside developing each module. It's the most important stage to verify your HDL performs as expected.
Here's what design verification means:
- After writing the verilog for a module, you (1) synthesize it which means you generate a circuit of gates (from an available set of primitives), and then (2) you implement it which means you place and route these gates on a die or in the case of an FPGA you lay out the LUTs and DSPs physically on the chip.
- After each stage, a new granularity of testing is unlocked: (1) functional verification is the fastest simulation and it checks that you're generating the correct waveforms by running the verilog module assuming zero propagation delay, (2) synthesis verification tests that you're simulation waveforms match expected once you account for the delay models of each gate/component, and (3) post-implementation simulation is the slowest simulation of the final netlist after place-and-route which simulates the entire chip including gate/component + routing delays.
So this is the workflow I had to go through for doing DV in this project:
1. Code Check (Lint): Catching Verilog errors early.
2. Basic Logic Check (Functional Simulation): Does it do the right math?
3. Hardware Translation Check (Synthesis/Implementation): Does it map correctly to the FPGA?
4. Post-Hardware Mapping Check (Post-Synth/Impl Simulation): Did the mapping break anything? Does it do the right math accounting for gate and routing delays?
5. Speed Check (Timing Analysis): Can it run fast enough to overcome critical path?
6. Efficiency Check (Utilization Analysis): Does it use FPGA resources well?
7. Real-World Check (Board Deployment): Does it work on the actual chip?



















