Blog
Writing
I’m building a robot and writing down what happens. Mostly the useful parts: what broke, what worked, and what changed.
- PinnedCUDA · kernelsKernels, fusion, and where the time actually goes
The tensor cores were never the bottleneck: bf16 already runs at 97% of their peak. The gap was the glue kernels around the matmuls, and it took a byte ledger to see it.
62 lessons · 97% of tensor peak - PinnedRL · sim-to-realEvery way one simulator's walk dies in another
Isaac said they walked; the independent checker fell every time. Actions never clipped at the training limit, playback at training damping instead of the real motor's.
26 lessons · damping 42 vs 10 - PinnedRL · reward designReward design, and every way the policy gamed it
The reward paid for touchdowns and nothing punished their count, so 195 tiny steps scored like 14 real ones. The shuffle was the optimum.
56 lessons · 195 strikes vs 14 planned - PinnedRL · evaluationSeeds, checkpoints, and the statistics of passing
The plan rested on a guess: at a 30% per-seed pass rate, one of 4 seeds passes by luck alone; the arithmetic killed it before the GPU hours did.
74 lessons · 76% pass by luck - PinnedQuantizationWhat the bytes actually cost when you shrink them
Half the bytes bought 1.18×, not 1.7×. Q8 proves the bus sustains 41 GB/s, so Q4 leaves a third of it unused. That is the dequantization cost.
74 lessons · 16.5 vs 11.3 tok/s - PinnedEdge inferenceA VLA on 8 GB: the cache, the memory, the latency
The SSD cannot hold the weights: streaming layers read every step costs 81 s a chunk. Offload works only for what the model rarely reads.
114 lessons · 81 s per chunk - PinnedMeasurementBaselines, harnesses, and how the measuring went wrong
The slow blur was assumed to be part of the benchmark. An equivalent fast version gave identical output. It was never the benchmark, just slow.
79 lessons · 13 ms vs ~2,800 ms - 01JournalAnvil-1: π₀.₅ in real time on an 8 GB Jetson
Rewriting π₀.₅ in Rust and W8A8 Hadamard PTX runs action chunks in 323.4 ms inside 4.8 GB on an 8 GB Jetson, within 2 points of full precision across 1,936 paired episodes.
Nov 2026 · engineers - 02JournalTeaching the voice to read the arm’s mind
A 5 MB translator copies the arm policy’s memory into the voice model. “What are you doing?” goes from 0% to 88%.
Oct 2026 · engineers - 03JournalI paid my robot to walk. It learned to stand still.
The reward paid a robot that never moved 0.956 of the maximum. Tuning the number was a patch; giving it a walk to copy was the fix.
Sep 2026 · no prior knowledge needed - Day 01Lab bookThere is no VRAM on this board
The board shows 7,620 MB of one shared pool, not 8,000.
Sep 1 · engineers - Day 02Lab bookPower modes, Super, and why TOPS lie
At 15W the caps are 612 MHz GPU and 2133 MHz memory clock, not the poster clocks.
Sep 2 · engineers - Day 03Lab bookThe fit equation: weights + KV + vision
KV cost per token comes from three numbers in the model file: 144 KB for Qwen3-4B, 56 KB for Qwen2.5-7B.
Sep 3 · engineers - Day 04Lab bookInstrumentation is the only legal language
A harness records the mode, clock cap, release, commit and idle, then takes 30 samples.
Sep 4 · engineers - Day 05Lab bookSystem occupancy by subtraction
43 services run at idle with the desktop up.
Sep 5 · engineers - Day 06Lab bookArithmetic intensity of the camera path
The same 720p frame became a GPU tensor in 11.35 ms with CPU work and a copy.
Sep 6 · engineers - Day 07Lab bookA fused Ampere preprocess kernel
Fusing three kernels into one cut the preprocess from 479.9 us to 205.5 us per frame.
Sep 7 · engineers - Day 08Lab bookTensorRT plugins when the graph has a hole
Folding the preprocess into the resnet18 engine cut end-to-end time from 6.27 ms to 5.31 ms per frame.
Sep 8 · engineers - Day 09Lab bookRust as host, CUDA as device
Same fused kernel, two hosts, a pageable copy inside the timed loop.
Sep 9 · engineers - Day 10Lab bookA reproducible kernel artifact
Days 7 to 9 frozen at commit a23e893 in jetson-8gb-kernels.
Sep 10 · engineers - Day 11Lab bookONNX contracts and CUDA Graphs
Both engines captured a CUDA graph.
Sep 11 · engineers - Day 12Lab bookFP16 baseline, INT8 on trial
INT8 ran 1.38x faster than FP16 on resnet18 and agreed with FP32 on 82.4% of images.
Sep 12 · engineers - Day 13Lab bookName the runtime correctly
llama.cpp and ollama decoded Qwen3-1.7B at 23.4 and 22.7 tok/s.
Sep 13 · engineers - Day 14Lab bookQuantization Orin can execute
Q4_K_M decoded 1.18x faster than Q8_0, not 2x, and scored the same 8/10 on the tool cases.
Sep 14 · engineers - Day 15Lab bookBuilder memory vs. runtime memory
The build peaked at 3167 MB of process RSS, under the 4096 MB workspace flag.
Sep 15 · engineers - Day 16Lab bookKeep the frame on the GPU side
The CPU JPEG path, jpegenc then jpegdec, took 16.95 ms per 720p frame: 51% of the frame budget.
Sep 16 · engineers - Day 17Lab bookEmbeddings as the cheap semantic layer
ViT-B/32 embeddings ran at 68 fps in 500 MB.
Sep 17 · engineers - Day 18Lab bookDetectors under a RAM cap
yolo11n ran 19.5 ms slower than yolov8n with fewer flops.
Sep 18 · engineers - Day 19Lab bookVision tokens are context tokens
For Qwen2.5-VL-3B, 4.4x the vision tokens gave 2.9x the wait.
Sep 19 · engineers - Day 20Lab bookThe live pipeline exam
p99 was 18.8 ms against a 33.3 ms period.
Sep 20 · engineers - Day 21Lab bookChoose the house SLM
Qwen3-4B Q4 is the house model: tools 5 of 5, restraint 2 of 2.
Sep 21 · engineers - Day 22Lab bookPrefill, decode, and the wrong headline
One Qwen3-4B tool call took 2,061 ms on the board, the median of five, and three reruns on 2026-10-04 gave 2,070 / 2,061 / 2,066 ms (15 calls, p10 1,431, p90 4,076): 796 ms to the first token, then 1,265 ms for 10 JSON tokens at 7.1 tok/s on that call.
Sep 22 · engineers - Day 23Lab bookTool calling as the acceptance test
Qwen3-4B passed 8 of 10 frozen tool cases, restraint 2 of 2, in two free runs that matched row for row.
Sep 23 · engineers - Day 24Lab bookServing shape: process, not notebook
On a 10-minute soak, llama-server and ollama started in 40,020 and 41,998 ms and decoded at 10.8 and 11.2 tok/s.
Sep 24 · engineers - Day 25Lab bookPacking STT + SLM + TTS + eyes
The floor and three residents, desktop up, took 5,178 of 7,620 MiB and left 2,442.
Sep 25 · engineers - Day 26Lab bookVLM latency is not VLA latency
On Qwen2.5-VL-3B one image-to-action step took 2,617 ms, 76% of it prefill.
Sep 26 · engineers - Day 27Lab bookThe Nano-legal VLA menu
Two tests, a named board and a GB that fits, left two names on the menu, NanoVLA and a planner.
Sep 27 · engineers - Day 28Lab bookArchitecture that buys Hertz
In the sim, torque held 30 ms stale made the biped fall at 0.83 s, before its first planned step.
Sep 28 · engineers - Day 29Lab bookPolicy Hz vs. control Hz
In the sim the same controller walked 1.19 m at 1000 Hz and fell at every rate I tried from 200 Hz down.
Sep 29 · engineers - Day 30Lab bookThe budget I would defend in a room
Day 25's residents took 5,178 of 7,620 usable MiB and left 2,442.
Sep 30 · engineers