Install our extension to search inside any video instantly.

Building ChatGPT in Rust: Part 3

Added:
3,086 views30likes2:13:58StephenBlumOriginal Release: 2026-06-19

This video demonstrates the implementation of positional encoding in a transformer-based ChatGPT model built in Rust. The presenter explains how positional encoding is added to token embeddings to provide sequence order information, as transformers process tokens in parallel and cannot inherently determine token order. The implementation uses a learned embedding approach (similar to GPT-2) where positions are passed through an embedding layer and added to token embeddings. The video shows debugging challenges including tensor shape mismatches, type errors (expecting long but receiving float), and the importance of proper batch handling. The presenter emphasizes incremental development, debugging through print statements, and the value of building complex systems from scratch to gain deeper understanding of AI architecture.

Related Videos

AI Agent Mastery Certification Course: Lab 4 – Tools & MCP

arizeai

350 views2026-06-16

Real-time Voice cloning, Kimi K2.7 CODE, GLM 5.2 and 3D reconstruction | AI News

kaiexplainsYT

111 views2026-06-16

He Believes AI Could Replace Humanity Faster Than Anyone Expects

LondonRealTV

815 views2026-06-15

General Session by Rami Rahim-The next generation of networking: From vision to self-driving reality

HPE

108 views2026-06-17

[PLDI 2026] Flatirons 3 - LCTES (Jun 16th)

acmsigplan

191 views2026-06-16

Google DeepMind’s AI Halves UK Housing Planning Time

60secondsignals

467 views2026-06-17

The Creators of Claude Code and OpenClaw don't Prompt Their Agents Anymore?!

ColeMedin

569 views2026-06-18

Why prompt injection is AI's biggest fail

usemultiplier

1K views2026-06-17

Trending

Nobel Scientist Creates Device to Harvest Water From Desert Air

DrBenMiles

2200K views2026-06-16

GROW A GARDEN 2 UPDATE

KreekCraft

668K views2026-06-20

উটের কুঁজের মধ্যে কি থাকে?

MrBonGrow

1861K views2026-06-18

아픈데 손은 호강 중

Memody-q3b

5995K views2026-06-14