CUDA and GPU Programming with Elliot Arledge [Podcast #155]
freeCodeCamp.org
Summary
freeCodeCamp founder Quincy Larson interviews 20-year-old computer science student Elliot Arledge about his courses on CUDA GPU programming and building large language models from scratch. Elliot explains why GPUs with thousands of cores excel at the parallel matrix multiplications and activation functions inside Transformer models, and shares how he pitched freeCodeCamp on an LLM course before mastering the topic by documenting his beginner pain points. He also details his daily workflow using Cursor and Claude 3.5 Sonnet to prototype code in C and Python while maintaining eight hours of sleep.
The conversation weighs the value of completing a university computer science degree against rapid self-directed project building, with Elliot noting he would leave MacEwan University for the right AI lab role despite local recruiters filtering out candidates without degrees. Looking ahead, Elliot explains how dozens of small data and architectural tweaks compound into major model releases, predicts that AI coding tools will help researchers discover non-Transformer architectures, and outlines his method for implementing academic papers like QLoRA in Jupyter notebooks.
How time-sensitive the topic is: Evergreen
By the numbers
20 years old: Age of guest Elliot Arledge, making him the youngest person Quincy Larson has interviewed on the podcast. (Mentioned at 1:49)
11,043 monthly donors: Number of people supporting freeCodeCamp through monthly donations at the time of recording. (Mentioned at 2:23)
8,000 to 16,000 cores: Estimated number of simple processing cores inside consumer GPUs like an NVIDIA RTX 3090 or 4090. (Mentioned at 4:47)
3.2 trillion USD: Approximate market valuation of NVIDIA cited by Elliot Arledge after a 183% one-year stock gain. (Mentioned at 7:07)
0.1 seconds: Upper bound on the time Elliot Arledge's GPU took to multiply a 4,096-by-4,096 matrix by itself. (Mentioned at 10:02)
8 hours per day: Daily sleep target Elliot Arledge credits as a superpower for maintaining all-day coding focus. (Mentioned at 15:16)
28 by 28 pixels: Input image dimensions used to train Elliot Arledge's multilayer perceptron digit classifier in C and CUDA. (Mentioned at 31:30)
20 times more likely: Rough statistic Quincy Larson recalls for how much more likely a random big-tech engineer is to hold a college degree than not. (Mentioned at 52:29)
Questions this video answers
Why are GPUs and CUDA so much faster than CPUs for training large language models?
Large language models rely on the Transformer architecture, which spends most of its compute on matrix multiplications and element-wise activation functions. Because each element in a matrix multiplication can be calculated independently like pieces of a puzzle, a GPU with thousands of simple cores can execute these operations simultaneously rather than waiting for a low-core CPU to process them sequentially.
Elliot Arledge, 8:23 to 12:52
From this keypoint: Matrix Math Powers Transformer Models
What is the main difference between CPU cores and GPU cores?
A typical CPU has a small number of sophisticated cores, often six to eight, designed to handle complex sequential tasks rapidly. By contrast, a GPU like an RTX 3090 or 4090 packs 8,000 to 16,000 simpler cores that run slower individually but achieve massive speedups on parallel workloads like fluid simulation, graphics, and deep learning.
Elliot Arledge, 2:59 to 7:43
From this keypoint: Elliot Arledge on Why GPUs Outpace CPUs
How does Elliot Arledge learn hard programming topics like CUDA and LLMs so quickly?
He dives down technical rabbit holes and meticulously documents every point of confusion before he understands the material, capturing beginner pain points that seasoned experts often forget. He also commits publicly to teaching courses on freeCodeCamp before fully mastering the subject, using the deadline to force deep, end-to-end implementation.
Elliot Arledge, 22:22 to 28:44
From this keypoint: Pitching an LLM Course Before Mastering It
How should beginners approach reading intimidating machine learning research papers?
Instead of reading a paper linearly like a storybook, start with the abstract and section headings, and check the benchmark results early to verify whether the method actually works. Highlight unfamiliar terms to query in tools like Perplexity, and focus on translating the paper's core proposed algorithm into a working PyTorch Jupyter notebook as quickly as possible.
Elliot Arledge, 1:06:50 to 1:14:12
From this keypoint: How Elliot Arledge Reads Machine Learning Papers
What are the best academic papers to read first when learning about large language models?
Elliot Arledge's introductory course uses three papers: 'Attention Is All You Need' to learn the foundational Transformer architecture, 'A Survey of Large Language Models' for a high-level comparison across the field, and the QLoRA paper to understand how low-rank adapters and quantized weights make fine-tuning efficient.
Elliot Arledge, 1:14:13 to 1:17:12
From this keypoint: Three Foundational Papers for LLM Beginners
How does Elliot Arledge use Cursor and Claude 3.5 Sonnet in his coding workflow?
He uses Cursor paired primarily with Claude 3.5 Sonnet to generate boilerplate code and spin up a working minimum viable product within a day or two. Once the prototype runs, he manually inspects the code alongside official documentation to understand every line and catch hallucinated library functions.
Elliot Arledge, 36:29 to 43:34
From this keypoint: Using Cursor and Claude 3.5 Sonnet to Prototype
Is a computer science degree still worth it if you can learn programming on your own?
Elliot Arledge argues that motivated self-learners who build projects all day can move much faster than university lab coursework, and he would leave school immediately for a strong AI lab offer. However, Quincy Larson advises finishing a CS degree if possible because risk-averse employers frequently reject candidates who lack a diploma, a barrier Elliot has already encountered with local Edmonton recruiters.
Quincy Larson, 43:36 to 53:44
From this keypoint: Quincy Larson and Elliot Debate CS Degrees
What drives major capability jumps in new AI model releases if scaling laws are predictable?
While early GPT progress came largely from adding more GPUs and layers, current improvements rely on higher-quality training data, better tokenizers, and small tweaks to the attention mechanism. When researchers combine roughly a hundred of these small incremental optimizations into a single training run, the resulting release looks like a sudden step change to end users.
Elliot Arledge, 53:47 to 1:01:05
From this keypoint: Improving LLM Scaling Laws Through Small Hacks
Will future AI models continue to rely solely on scaling the Transformer architecture?
Elliot Arledge predicts that scaling GPUs and standard next-token Transformer models cannot continue indefinitely due to compute constraints. He expects AI coding tools to accelerate research into non-Transformer architectures that incorporate recurrent reasoning loops capable of bouncing problems back and forth internally.
Elliot Arledge, 1:01:07 to 1:06:46
From this keypoint: Predicting Non-Transformer AI Within Five Years
How much sleep do developers need to maintain high productivity during long coding sessions?
Elliot Arledge targets eight hours of sleep per night, noting that cutting sleep to five or six hours ruins his cognitive output for an entire week, while sleeping past nine hours or napping leaves him sluggish. Quincy Larson adds that getting eight to nine hours of sleep creates a virtuous circle of energy that makes daily problem-solving much easier.
Elliot Arledge, 14:39 to 22:01
From this keypoint: Eight Hours of Sleep as a Developer Superpower
Credible AI™ signals
Confidence: Candid Practitioner Insight. Both speakers share direct, practical experience building software and educational curricula. Technical explanations of GPU parallelism and Transformer math are accurate and well-grounded, while lifestyle and sleep discussions are explicitly framed as personal anecdotes rather than scientific claims.
Bias: Self-Directed Builder Ethos. The conversation strongly favors hands-on project building, open-source self-education, and rapid prototyping over traditional academic pacing, though Quincy Larson balances this by defending the practical career value of completing a formal computer science degree.
Originality (78%): Honest Pedagogical Method. Elliot Arledge offers a refreshing look at learning complex low-level programming by documenting beginner confusion in real time and pitching courses before mastering the subject, providing an authentic counter-narrative to polished expert instruction.
Depth (75%): Accessible Technical Breakdown. The discussion bridges high-level analogies, such as comparing matrix multiplication to puzzle assembly, with concrete technical details like CUDA kernel profiling, QLoRA weight quantization, and architectural modifications to Transformer scaling laws.
Key points (11)
Short (27 min): key points 1, 2, 7 and 8
Medium (47 min): key points 1, 2, 4, 6, 7, 8 and 10
Relaxed (1h 8min): all 11 key points
1. Elliot Arledge on Why GPUs Outpace CPUs
Timestamp: 00:02:59 to 00:07:43 (5 min)
Speaker: Elliot Arledge
Elliot Arledge explains that while CPUs use a handful of sophisticated cores for complex sequential tasks, GPUs pack thousands of simpler cores to run mathematical operations in parallel. Quincy Larson adds that high-end consumer GPUs contain 8,000 to 16,000 cores, turning days of CPU work into an hour. They also note that NVIDIA reached roughly $3.2 trillion in valuation by designing chip architectures and software while outsourcing fabrication.
Impact: High. Why it matters: Understanding the architectural split between low-core CPUs and massively parallel GPUs explains why NVIDIA's hardware and CUDA software became the foundational bottleneck of modern computing.
“it's just that idea of running really really fast mathematical operations in parallel that's the whole point”
In the video: Elliot Arledge, at 4:13
For: Quincy Larson
2. Matrix Math Powers Transformer Models
Timestamp: 00:08:23 to 00:12:52 (4 min)
Speaker: Elliot Arledge
Transformer language models rely primarily on two parallelizable operations: matrix multiplication and element-wise activation functions. Comparing matrix multiplication to assembling independent puzzle pieces simultaneously, Elliot Arledge reports benchmarking a 4,096-by-4,096 matrix multiplication in under a tenth of a second on his GPU. Without specialized parallel hardware like H100s or AWS Trainium, running modern language models on a CPU is impractically slow.
Impact: High. Why it matters: Breaking Transformer workloads down to independent dot products and activation functions demystifies why AI scaling is fundamentally bound to GPU throughput.
“these Transformers consist of majorly just Matrix multiplies so matrix multiplication and activation functions now the reason why Cuda accelerates those so much is because matrix multiplication is like solving a giant puzzle”
In the video: Elliot Arledge, at 8:56
For: Quincy Larson
3. Eight Hours of Sleep as a Developer Superpower
Timestamp: 00:14:39 to 00:22:01 (7 min)
Speaker: Elliot Arledge
Asked how he sustains 12-hour coding sessions, Elliot Arledge credits getting eight hours of sleep a night, noting that cutting sleep to five or six hours ruins his productivity for the entire week. Quincy Larson argues that nine hours feels like a cheat code for mental clarity, though Elliot observes diminishing returns and sluggishness when sleeping past nine hours or napping. Both conclude that protecting a consistent sleep schedule creates a virtuous circle for solving daily problems.
Impact: Medium. Why it matters: Challenging the developer culture of late-night grinding, both programmers frame consistent sleep as the primary lever for sustained cognitive output.
“you want to aim for eight hours every single day and that is a superpower like every time I try to push it to like five or six hours I end up finding that my week is ruined”
In the video: Elliot Arledge, at 15:53
For: Quincy Larson
4. Pitching an LLM Course Before Mastering It
Timestamp: 00:22:22 to 00:28:44 (6 min)
Speaker: Elliot Arledge
Elliot Arledge explains that effective teaching requires writing down confusion and pain points before a concept clicks, because experts often forget what beginners struggle with. After struggling through the first ten minutes of an Andrej Karpathy lecture on building a GPT from scratch, Elliot pitched freeCodeCamp on a full LLM course before he had finished learning the material himself.
Impact: High. Why it matters: Committing to public deliverables while documenting beginner friction turns self-study into high-accountability learning by teaching.
“when you're able to go through something and and have it be difficult to learn and write that stuff down not just when you understand it but what you were thinking about before you understood it then it's much easier to explain things”
In the video: Elliot Arledge, at 23:30
For: Quincy Larson
5. Training a Digit Classifier in Raw C and CUDA
Timestamp: 00:28:46 to 00:33:38 (5 min)
Speaker: Elliot Arledge
Intimidated by Andrej Karpathy's llm.c repository, which trains GPT-2 in raw C and CUDA, Elliot Arledge dove into low-level GPU programming to bridge his gap between PyTorch and C. Although he did not replicate full GPT-2 in C, he spent roughly two months learning to profile CUDA kernels and training a multilayer perceptron from scratch to classify 28-by-28 handwritten digit images. He compares deep technical subjects to a solid cube where every surface reveals deeper hidden dependencies.
Impact: High. Why it matters: Implementing neural networks without high-level Python frameworks forces developers to confront memory flow and kernel optimization directly.
“I got far enough to understand how to like performance optimize uh quote unquote Cuda kernels the the very very fast functions the kernel is what runs on the GPU”
In the video: Elliot Arledge, at 31:00
For: Quincy Larson
6. Using Cursor and Claude 3.5 Sonnet to Prototype
Timestamp: 00:36:29 to 00:43:34 (7 min)
Speaker: Elliot Arledge
When hitting a technical wall, Elliot Arledge admits he often steps away to procrastinate before returning with fresh eyes and leaning on the AI code editor Cursor. He favors Claude 3.5 Sonnet over OpenAI's o1 for generating boilerplate and rapidly building a minimum viable product in a day or two, which he then dissects line by line against official documentation.
Impact: High. Why it matters: Using AI editors to scaffold working prototypes first and reverse-engineering the code afterward flips traditional bottom-up programming workflow.
“I'll like use cursor and speed through something super quickly to make sure that it works like figure out like worry about robustness later right just try like get get like get get an MVP working”
In the video: Elliot Arledge, at 41:22
For: Quincy Larson
7. Quincy Larson and Elliot Debate CS Degrees
Timestamp: 00:43:36 to 00:53:44 (10 min)
Speaker: Quincy Larson
Quincy Larson advocates strongly for young students to get a computer science degree as a flexible career foundation built on enduring technologies like C, SQL, and Linux. Elliot Arledge agrees the foundational subjects matter but argues university lab methods are slow and that serious self-directed builders can outpace degree programs by tinkering all day.
Impact: High. Why it matters: The exchange captures a real tension in tech hiring: self-taught speed can outpace university curricula, yet risk-averse employers still filter out non-graduates.
“if you're really serious about it I think you can do it faster and by understanding that doing projects and just experimenting and tinkering with stuff literally all day is like a faster way to go I think you can yeah I think you can just completely blow the Cs degrees out of the water”
In the video: Elliot Arledge, at 45:41
For: Elliot Arledge
8. Improving LLM Scaling Laws Through Small Hacks
Timestamp: 00:53:47 to 01:01:05 (7 min)
Speaker: Elliot Arledge
Tracing progress from GPT-1 to GPT-3, Elliot Arledge notes that early gains came largely from scaling up GPU counts, context windows, and model layers along predictable loss curves. Today, he focuses on bending those scaling laws through higher-quality training data, tokenizer improvements, and slight architectural modifications to the attention mechanism.
Impact: High. Why it matters: Framing major model releases as the compounded sum of dozens of micro-optimizations tempers hype while explaining how researchers beat raw compute limits.
“when you take like a hundred different uh mini breakthroughs and you aggregate them and they all hold up in this Grand like when they're all together um that's like that that's considered like maybe a breakthrough”
In the video: Elliot Arledge, at 58:28
For: Quincy Larson
9. Predicting Non-Transformer AI Within Five Years
Timestamp: 01:01:07 to 01:06:46 (6 min)
Speaker: Elliot Arledge
Asked by Quincy Larson to guess where AI models will be in five years, Elliot Arledge predicts that researchers cannot simply scale GPUs and next-token Transformer architectures forever. He expects AI coding tools like Cursor to create a recursive self-improvement loop that helps researchers rapidly test unexplored, non-Transformer architectures.
Impact: Medium. Why it matters: AI-accelerated code editors may shorten the experiment cycle needed to discover post-Transformer architectures with recurrent reasoning.
“I don't think it's just going to be Transformer scaling forever um it takes a lot of compute to get a really smart model I don't think you'll just be able to scale gpus forever I think there's going to be much more efficient ways to get similar tasks done”
In the video: Elliot Arledge, at 1:03:20
For: Quincy Larson
10. How Elliot Arledge Reads Machine Learning Papers
Timestamp: 01:06:50 to 01:14:12 (7 min)
Speaker: Elliot Arledge
To tackle intimidating academic papers filled with math formulas, Elliot Arledge starts with the abstract and section headings, or jumps straight to benchmark results to see if a method is worth his time. Rather than reading a paper like a storybook, he selectively reads top-to-bottom, circles unfamiliar terms to look up in Perplexity or an LLM, and focuses on how quickly he can translate the core algorithm into a working PyTorch Jupyter notebook.
Impact: High. Why it matters: Treating academic papers as executable specifications to be implemented in a Jupyter notebook gives self-taught developers a practical entry point into research.
“when you see like the core algorithm itself or the proposed algorithms how quickly can you implement that in a Jupiter notebook in in a p torch or something right how quickly can you go from A to B”
In the video: Elliot Arledge, at 1:12:43
For: Quincy Larson
11. Three Foundational Papers for LLM Beginners
Timestamp: 01:14:13 to 01:17:12 (3 min)
Speaker: Elliot Arledge
Quincy Larson highlights three papers featured in Elliot Arledge's intro to LLMs course: 'Attention Is All You Need,' 'A Survey of Large Language Models,' and the QLoRA paper on efficient fine-tuning of quantized models.
Impact: Medium. Why it matters: Pairing the original Transformer paper with a broad survey and QLoRA gives learners theoretical grounding, ecosystem context, and practical consumer-hardware fine-tuning techniques.
“you have like a smaller Matrix that you do operations with a larg Matrix which is the bigger Network and then you you essentially um you're able to you're able to be very efficient about how you train it because there's less operations being done”
In the video: Elliot Arledge, at 1:16:20
For: Quincy Larson
Conflicts of interest (2)
Mutual Course Promotion on freeCodeCamp
Professional conflict, Low severity
Quincy Larson founded freeCodeCamp and Elliot Arledge authored several courses published on the freeCodeCamp platform.
Significance: Both host and guest have a shared professional interest in praising the quality and popularity of Elliot Arledge's freeCodeCamp tutorials throughout the interview.
Wix Studio Grant Sponsorship
Commercial conflict, Low severity
The podcast is funded in part by a disclosed grant from Wix Studio.
Sources: Quincy Larson, freeCodeCamp, Wix Studio
Significance: The sponsorship is confined to a brief introductory read and does not intersect with the technical discussion of GPU programming or machine learning.
Key sources
Quincy Larson: Teacher and Founder of freeCodeCamp.org
Elliot Arledge: Computer Science Student and freeCodeCamp Course Creator
Who's in this
freeCodeCamp
Wix Studio
NVIDIA
CUDA
Andrej Karpathy
Cursor
Anthropic
OpenAI
MacEwan University
Perplexity
Also mentioned
Python (First mentioned at 13:12)
YouTube (First mentioned at 22:39)
llm.c (First mentioned at 28:57)
PyTorch (First mentioned at 30:27)
Claude 3.5 Sonnet (First mentioned at 38:37)
Jupyter Notebook (First mentioned at 40:47)
Attention Is All You Need (First mentioned at 1:14:37)
QLoRA (First mentioned at 1:14:43)
Edmonton (First mentioned at 2:01)
Alberta (First mentioned at 2:02)
Canada (First mentioned at 2:02)
NVIDIA H100 (First mentioned at 12:32)
Linux (First mentioned at 25:09)
ChatGPT (First mentioned at 25:20)
GitHub (First mentioned at 28:56)
GPT-2 (First mentioned at 29:02)
GPT-3 (First mentioned at 29:17)
GPT-4 (First mentioned at 36:03)
VS Code (First mentioned at 38:25)
Stanford University (First mentioned at 49:33)
Google (First mentioned at 52:33)
Double Dragon II (First mentioned at 0:49)
Mojo (First mentioned at 1:55)
xAI (First mentioned at 12:34)
AWS Trainium (First mentioned at 12:41)
Twitch (First mentioned at 14:32)
Doom (First mentioned at 17:13)
Fireship (First mentioned at 22:38)
The Wizard of Oz (First mentioned at 26:48)
Dallas (First mentioned at 33:07)
Plano (First mentioned at 33:09)
TensorFlow (First mentioned at 34:11)
Minecraft (First mentioned at 39:29)
Microsoft (First mentioned at 46:19)
San Francisco (First mentioned at 50:02)
University of Alberta (First mentioned at 50:32)
NAIT (First mentioned at 50:39)
Alec Radford (First mentioned at 1:13:04)
This analysis was generated by skim (skim.plus), an AI-powered content analysis platform by Credible AI. Scores and classifications represent the platform's AI-generated assessment and should be considered alongside other sources.