AE
Anubhav Elhence
Physical AI · Silicon · Robotics
Physical AI & GPU Systems Monograph 35 min read 6 Live Interactive Labs · 10 Sketchnotes

From Silicon Bits to Walking Humanoids: Dissecting NVIDIA Alpamayo 2 Edge (2.6B VLA) on Blackwell B300 & Pascal Silicon

An interactive, hardware-first engineering investigation stretching from 3 exponent bits in IEEE-754 and a relu2(260.0) FP16 overflow crash all the way to Blackwell Ultra sm_103 10 Hz power waveforms, 10-step Flow-Matching ODEs, 50 Hz GEAR-SONIC Unitree G1 MuJoCo physics, and live online Linux ext4 storage engineering.

AE
Anubhav Elhence
Ph.D. Researcher in Physical AI, Robotics & Hardware-Software Codesign · BITS Pilani — Lab In-Charge, IoT Tinker Lab
Follow on LinkedIn
Opening Hook: Why This Monograph Exists

Download NVIDIA's newly released 2.634-billion-parameter Alpamayo 2 Edge for Robotics Vision-Language-Action model, plug it into a 12 GB NVIDIA TITAN Xp workstation, and press Run. It crashes on line 1. Not because you ran out of VRAM—because of three bits in an IEEE-754 exponent and warp-level matrix instructions that didn't exist in 2017 silicon. Then rent a 275 GB Blackwell Ultra B300 for one hour, and it crashes again on an ATen NVRTC sm_103 architecture flag! Fixing both—and pushing all the way to a physically walking 29-DOF Unitree G1 humanoid—teaches more about modern Physical AI than ten slide decks.

01. Silicon Bits, GPU Streaming Multiprocessors & the relu2 FP16 Cliff

Every engineering decision in modern deep learning ultimately traces back to bit layout and silicon geometry. Every IEEE-754 floating-point value encodes a real number with a sign bit ss, an exponent ee (governing dynamic range), and a mantissa mm (governing step precision):

x=(−1)s⋅(1+m)⋅2e−bias,max⁡FP16=(2−2−10)⋅215=65,504,max⁡BF16≈3.39×1038x = (-1)^{s} \cdot (1 + m) \cdot 2^{e - \text{bias}}, \qquad \max_{\text{FP16}} = (2 - 2^{-10}) \cdot 2^{15} = 65{,}504, \qquad \max_{\text{BF16}} \approx 3.39 \times 10^{38}

Eq. 1.1 — IEEE-754 floating-point encoding. BF16 preserves all 8 exponent bits of FP32 while halving memory footprint to 2 bytes/parameter.

Why does this matter specifically for Alpamayo 2 Edge? Inspecting its released config.json reveals a crucial architectural choice inside its Cosmos 3 Edge text backbone (Cosmos3EdgeTextMLP): hidden_act = "relu2" (Squared ReLU):

relu2⁡(x)=max⁡(0,x)2  ⟹  FP16 overflows to +∞ whenever x>65,504≈255.9375\operatorname{relu2}(x) = \max(0, x)^{2} \implies \text{FP16 overflows to } +\infty \text{ whenever } x > \sqrt{65{,}504} \approx 255.9375

Eq. 1.2 — Because Squared ReLU squares activations, a single pre-activation outlier at x = 256.0 exceeds FP16's 65,504 ceiling.

Even more insidiously, inside an un-upcast FP16 RMSNorm layer (y/1d∑yi2+ϵy / \sqrt{\frac{1}{d}\sum y_i^2 + \epsilon}), squaring relu2⁡(x)\operatorname{relu2}(x) computes x4x^4—which overflows 65,504 as early as x≈16x \approx 16 and silently collapses outputs to 0.0 by x=50.0x = 50.0! Test both cliffs live below (backed by our FastAPI NumPy IEEE-754 probe):

Interactive IEEE-754 Bit Inspector & Live relu2(x) = max(0,x)² Overflow Lab

Live Client IEEE-754
Exact relu2(x) = 67,600 (FP16 cliff at x = 255.94)
FP321 sign · 8 exp · 23 mantissa · Max 3.40 × 10³⁸
0x43820000 67,600
01000011100000100000000000000000
FP161 sign · 5 exp · 10 mantissa · Max 65,504
0x5C10 +Inf → NaN CRASH
0101110000010000
BF161 sign · 8 exp · 7 mantissa · Max 3.39 × 10³⁸
0x4382 67,600
0100001110000010
Engineering Verdict: OVERFLOW CRASH! Because Alpamayo 2 Edge uses squared ReLU (relu2(x) = max(0,x)²), x=260.0 produces 67,600 > 65,504 (FP16 max) → +Inf → RMSNorm NaN → WaypointPolicy raises ValueError('nonfinite waypoints')! BF16 keeps all 8 FP32 exponent bits and stays rock-solid.

Inside the Silicon: Pascal GP102 (sm_61) vs. Blackwell Ultra B300 (sm_103)

A GPU does not execute threads independently like a CPU core. Each Streaming Multiprocessor (SM) issues one instruction across 32 threads in lockstep (a warp) backed by a 256 KB register file. On Pascal GP102 (TITAN Xp, sm_61), every CUDA core computes one scalar Fused Multiply-Add (a⋅b+ca \cdot b + c) per clock, and NVIDIA stripped out almost all FP16 ALUs (leaving a 1:64 rate vs FP32) with zero Tensor Cores and zero BF16 instructions. Starting with Ampere (sm_80) through Blackwell Ultra (sm_103), dedicated systolic Tensor Cores execute entire 16×8×1616 \times 8 \times 16 matrix multiply-accumulate tiles per warp instruction—delivering 64 to 256 FMAs/clock with native BF16 support.

Interactive WebGL 3D · Inside a GPU Streaming Multiprocessor (SM)
Drag horizontally to orbit 3D SM die · Cyan tiles = Systolic Tensor Cores (16×8×16 MMA/clk)
NVIDIA Blackwell B300 SXM6 Cutout

NVIDIA B300 SXM6 AC (sm_103)

VRAM Capacity
275 GB HBM3e
Native BF16 Silicon
YES (Tensor Core)
Attention Kernel
FA2 / SDPA (188.5 ms)
Single-GPU SFT
128.5 GiB @ BS=8
Systolic Tensor Cores execute 64–256 FMAs per clock cycle and keep all 8 FP32 exponent bits in BF16—immunity against relu2 overflow.

Empirical B300 Benchmark & Live Checkpoint Crash Proof

Benchmarking all 2,634,369,779 parameters of nvidia/Alpamayo2-Edge-Robotics on our live B300 SXM6 AC (4× 720p RGB frames = 1,008 visual / 1,123 total tokens, embodiment="indoor") produced textbook bandwidth-bound scaling AND live verification of the relu2 overflow cliff:

DtypeEnd-to-EndGPU sample()ThroughputPeak VRAMMax XY DriftInjected x=260 Outlier
BF16218.72 ms188.5 ms4.57 Hz5.16 GB1.40 mmSAFE — [0.2548, 0.0016, 0.0015]
FP16230.93 ms198.59 ms4.33 Hz5.16 GB0.26 mmCRASH — ValueError: nonfinite waypoints
FP32379.31 ms348.38 ms2.64 Hz10.3 GB0.00 mmSAFE (reference) — 1.85× slower
IEEE-754 Float Bit Layouts Sketchnote
Handwritten Lecture Note #01 — IEEE-754 bit geometry & 2.6B VLA VRAM budget.
Inside a GPU SM Silicon Sketchnote
Handwritten Lecture Note #06 — Pascal GP102 scalar cores vs. Ampere/Blackwell Tensor Cores.

02. Attention Kernels: SRAM Tiling vs. the N×N HBM Wall

In a multi-frame Vision-Language-Action model, every camera frame becomes up to 256 visual tokens. Computing standard Scaled Dot-Product Attention softmax⁡(QKT/d)V\operatorname{softmax}(QK^T/\sqrt{d})V naively writes the entire intermediate N×NN \times N score matrix SS and probability matrix PP back to off-chip GPU HBM—hitting a quadratic memory-bandwidth wall of Θ(Nd+N2)\Theta(Nd + N^2) bytes moved.

FlashAttention-2 eliminates that wall without approximating a single mathematical term: it streams small tiles of Q,K,VQ, K, V into ultra-fast on-chip SM SRAM (~20 TB/s), maintains exact online softmax running statistics (mi,ℓi)(m_i, \ell_i), and writes only the final output OO back to HBM—dropping I/O complexity to O(N2d2/M)O(N^2 d^2 / M). Toggle between both regimes in our 3D WebGL model:

Interactive WebGL 3D · Attention Memory Hierarchy (HBM vs On-Chip SRAM)
HBM I/O Complexity
O(N² d² / M) — Linear Memory
N×N Matrix Materialized?
NEVER — Fused Online Softmax
Hardware Requirement
Ampere+ (sm_80+ MMA & cp.async)

Why does flash-attn 2.8.3 refuse to run on a TITAN Xp? Its hand-tuned CUTLASS kernels rely on Ampere+ mma.sync and asynchronous global-to-shared copy (cp.async) instructions. Meanwhile, PyTorch's built-in attn_implementation="sdpa" automatically dispatches to the best kernel supported by your die—allowing Alpamayo 2 Edge to run cleanly on both Blackwell Ultra sm_103 (zero 20-minute C++ compilation!) and Pascal sm_61.

03. Live Blackwell B300 Telemetry, Empirical Roofline & the sm_103 NVRTC Fix

Before measuring a single millisecond on our rented NVIDIA B300 SXM6 AC (compute_cap = (10, 3), 275 GB HBM3e, 1,100 W TDP), real systems engineering struck immediately: image_grid_thw.prod(-1) crashed inside ATen's CUDA jiterator with invalid value for --gpu-architecture because PyTorch 2.8.0+cu128 bundled nvidia-cuda-nvrtc-cu12==12.8.93, which predates Blackwell Ultra sm_103! Upgrading only nvidia-cuda-nvrtc-cu12 → 12.9.86 (preserving the exact libnvrtc.so.12 ABI without touching PyTorch) fixed it instantly and passed all 60/60 pytest assertions in 9.02s.

P(I)≤min⁡ ⁣(Ppeak, I⋅BHBM),Iridge=PpeakBHBMP(I) \le \min\!\left(P_{\text{peak}},\ I \cdot B_{\text{HBM}}\right), \qquad I_{\text{ridge}} = \frac{P_{\text{peak}}}{B_{\text{HBM}}}

Eq. 3.1 — The Hardware Roofline Model. Batch-1 autoregressive/ODE decoding has arithmetic intensity I ≈ 1–2 FLOPs/Byte, pinning it strictly to the HBM bandwidth ceiling.

Our live B300 profiler uncovered two extraordinary systems insights that never show up in papers:

  • Amdahl's Law Inversion at BS=1: The tiny 198.8M Action Expert consumed 156.1 ms (85% of total GPU time!) versus only 28.4 ms for the 12.2× larger 2.436B VLM backbone—because 10 Euler ODE steps × 28 decoder layers = 280 tiny sequential kernel stages dominated by launch latency and HBM streaming!
  • Why BS=16 Capped GPU Utilization at 46%: Inspecting joint_attention.py:42 revealed that _sdpa_attention loops serially in Python for row in range(BS) (issuing 9,856 sequential SDPA launches at BS=32!), capping B300 utilization below 50% until Single-GPU SFT finally drove the SMs to 100% compute & 539 W!
Live Empirical B300 Telemetry Dashboard (sm_103 · 275 GB HBM3e)
Real 10 Hz nvidia-smi waveform across Idle → BS=1 Infer → BS=16 Infer → Single-GPU SFT BS=4 & BS=8Embedded B300 summary trace
3. Infer BS=1
GPU: 35.4% avg / 44% peak
VRAM: 6 GiB · Power: 241.9 W
4. Infer BS=16
GPU: 43.3% avg / 46% peak
VRAM: 6 GiB · Power: 240.1 W
5. SFT BS=4→8
GPU: 26.1% avg / 100% peak
VRAM: 128.52 GiB · Power: 539.1 W
Full high-res telemetry render captured directly from B300:Open Full-Resolution PNG ↗
NVIDIA B300 Live 10 Hz GPU Compute, HBM, VRAM & Power Trace
Fig. 3.1 — Actual 10 Hz nvidia-smi telemetry captured live on NVIDIA B300 SXM6 AC across Idle (129 W), BS=1 Infer (35–44% GPU, 6.0 GiB), BS=16 Infer (46% GPU), and Single-GPU SFT BS=4 (80.5 GiB) & BS=8 (128.5 GiB, 100% GPU, 539 W).

04. Inside NVIDIA Alpamayo 2 Edge (2.634B) & Flow-Matching ODEs

Alpamayo 2 Edge Dual-Module VLA Cutout
Exact Verified Parameter Count: 2,634,369,779
  • Cosmos 3 Edge VLM Backbone — 2,435,616,496 (92.46%): Vision Tower (412.65M) + Projector (76.69M) + Reasoning LLM (1,677.84M) + LM Head (268.44M).
  • Flow-Matching Action Expert — 198,753,283 (7.54%): 28-layer d=512 continuous decoder coupled via Joint Attention.
  • Exponential Recency Token Budget: Across 8 camera history frames, visual tokens compress dynamically as [81, 91, 106, 129, 164, 220, 256, 256] = only 1,183 visual tokens (keeping 8-frame latency nearly flat at 198 ms!).

Why Continuous Flow Matching Beats MSE Regression

When a robot approaches a sofa centered in a living room, passing to the left and passing to the right are both optimal demonstrations. A standard Mean-Squared-Error (MSE) regressor predicts the conditional expectation E[a∣c]\mathbb{E}[\mathbf{a}\mid \mathbf{c}]—the literal arithmetic average of left and right, steering straight into the center of the obstacle! Instead, Alpamayo's Action Expert learns a continuous conditional velocity field vθ(xt,t∣c)v_\theta(\mathbf{x}_t, t \mid \mathbf{c}) trained via Flow Matching and sampled via 10 Euler ODE steps:

LFM(θ)=Et,x0,x1 ⁣[∥vθ ⁣((1−t)x0+tx1, t∣c)−(x1−x0)∥22],xt+Δt=xt+Δt vθ(xt,t∣c)\mathcal{L}_{\text{FM}}(\theta) = \mathbb{E}_{t,\mathbf{x}_0,\mathbf{x}_1}\!\left[\left\|v_\theta\!\left((1-t)\mathbf{x}_0 + t\mathbf{x}_1,\, t \mid \mathbf{c}\right) - (\mathbf{x}_1 - \mathbf{x}_0)\right\|_2^2\right], \qquad \mathbf{x}_{t+\Delta t} = \mathbf{x}_t + \Delta t\, v_\theta(\mathbf{x}_t, t \mid \mathbf{c})

Eq. 4.1 — Conditional Flow-Matching objective and 10-step Euler ODE sampler (Δt = 0.1) denoising Gaussian noise x₀ ~ N(0, I) into 8 continuous [forward_m, left_m, yaw_rad] waypoints.

Interactive Lab · Flow-Matching ODE (10 Euler Steps) vs. Naive MSE Regression

Running NVIDIA's official embodied_vqa.ipynb and offroad_open_loop.ipynb on our B300 confirmed both semantic reasoning (DeepMind ERQA Item 6 exact match 'B') and smooth off-road trajectory accuracy on TartanDrive 2.0: ADE = 0.30 m and 4-second FDE = 0.85 m across 6 high-speed moments (4.35–9.40 m/s)!

TartanDrive 2.0 Multi-Moment Analysis
Fig. 4.1 — Measured B300 TartanDrive 2.0 open-loop evaluation (ADE 0.30 m, 4 s FDE 0.85 m).
Alpamayo 2 Edge Architecture Sketchnote
Handwritten Lecture Note #03 — Cosmos 3 Edge backbone + Flow-Matching Action Expert + SE(2) body frame.

05. Unitree G1 Physics, 50 Hz GEAR-SONIC & Closed-Loop Failures

Why can't the 2.634B VLA and Habitat-Sim live inside one Python environment? The VLA requires Python 3.12 + PyTorch 2.8, while compiled C++ Habitat-Sim 0.2.4 ships prebuilt binaries only for Python 3.9. NVIDIA solves this with clean microservice isolation: server.py runs the VLA behind http://127.0.0.1:8765, while the simulator renders head-camera frames, POSTs them for 8 body-frame waypoints, and delegates bipedal locomotion to NVIDIA GEAR-SONIC (50 Hz ONNX) driving the 29-DOF Unitree G1 inside 200 Hz MuJoCo physics:

[XkYk]=[X0Y0]+[cos⁡θ0−sin⁡θ0sin⁡θ0cos⁡θ0][ΔxkΔyk],τi=Kp,i ⁣(qdes,i−qi)−Kd,iq˙i\begin{bmatrix} X_k \\ Y_k \end{bmatrix} = \begin{bmatrix} X_0 \\ Y_0 \end{bmatrix} + \begin{bmatrix} \cos\theta_0 & -\sin\theta_0 \\ \sin\theta_0 & \cos\theta_0 \end{bmatrix} \begin{bmatrix} \Delta x_k \\ \Delta y_k \end{bmatrix}, \qquad \tau_i = K_{p,i}\!\left(q_{\text{des},i} - q_i\right) - K_{d,i}\dot{q}_i

Eq. 5.1 — SE(2) body-to-world waypoint transform (left) and the 200–1,000 Hz joint PD torque control law driving 29 Quasi-Direct-Drive BLDC actuators (right).

Watch both of our real B300 MuJoCo recordings below—and use the interactive 68° monocular FOV simulator to experience the exact +88.6° closed-loop heading overshoot we discovered in Cycles 7–8!

Real B300 MuJoCo + 50 Hz GEAR-SONIC Simulation Recordings
VLA REPLANNING
10 Cycles · 253.7 ms
COLLISIONS / FALLS
0 Falls · 0 Hits
PELVIS STABILITY
Min Z 0.747m · 6.73°
CLOSED-LOOP FINDING
+88.6° FOV Blind-Spot
Unitree G1 29-DOF Humanoid Cutout
29-DOF QDD Actuators · Head D455 (68° FOV)
Interactive Lab · Why +88.6° Heading Overshoot Blinded the Monocular Camera

In Cycles 7–8 of our real B300 closed-loop run, two consecutive +45° left-turn commands rotated the G1's torso to +88.6°—sweeping the emerald goal rug completely out of its 68° horizontal RealSense D455 FOV. Drag the yaw slider to reproduce the exact blind-spot failure!

GOAL RUGG1Yaw = +88.6° | 68° Monocular FOV
✕ BLIND SPOT! Goal rug rotated outside 68° FOV — closed-loop drift begins! Fix: multi-camera surround rig or yaw-damped waypoint horizon.
Unitree G1 MuJoCo Physics Telemetry
Fig. 5.1 — Episode 17 biomechanics: Pelvis Z = 0.770±0.008 m, max tilt 8.43°, peak torque 42.44 N·m, 2.49 ms ONNX tracker.
Unitree G1 Hardware & 3-Tier Control Pyramid
Handwritten Lecture Note #09 — 29-DOF G1 hardware anatomy & decoupled 5 Hz → 50 Hz → 1 kHz control pyramid.

06. Single-GPU SFT Memory Algebra: Why an 80 GB H100 Requires ZeRO-2

Fine-tuning a 2.634B VLA with FP32 master weights, BF16 autocast, and fused AdamW exposes the brutal arithmetic of training memory. Out of 2.634B2.634\text{B} parameters, 2,319,523,059 (88.05%) are trainable while 16 unreached tensors (314.8M, 11.95%) stay frozen. Reconciling every single gigabyte measured on our B300 at BS=4:

VRAMBS=4=9.86⏟FP32 weights+8.74⏟FP32 grads+17.33⏟AdamW m,v+41.38⏟activations=77.31 GiB alloc / 78.80 GiB reserved\text{VRAM}_{\text{BS}=4} = \underbrace{9.86}_{\text{FP32 weights}} + \underbrace{8.74}_{\text{FP32 grads}} + \underbrace{17.33}_{\text{AdamW } m,v} + \underbrace{41.38}_{\text{activations}} = \mathbf{77.31\text{ GiB alloc}}\ /\ \mathbf{78.80\text{ GiB reserved}}

Eq. 6.1 — Byte-exact single-GPU SFT memory reconciliation measured on B300. Sharding the 26.07 GiB grad+AdamW states 8× via ZeRO-2 drops H100 memory to ~59 GiB/GPU.

In just 6 steps at BS=4, flow-matching loss dropped cleanly from 0.9418 → 0.0745 at 0.568 s/iter (7.04 samples/s = 1.21× H100+FA2), with zero NaN grads and zero leaked frozen-parameter gradients. Doubling to unsharded BS=8 reached 128.52 GiB (47.9% of B300) at 7.90 samples/s (1.36× H100+FA2) and lit up the Blackwell SMs at 100% compute & 539.1 W!

Single-GPU SFT VRAM Breakdown on B300 vs H100
Fig. 6.1 — Measured single-GPU SFT VRAM breakdown on B300 (BS=4 vs BS=8) juxtaposed against the 80 GB H100 ceiling.

07. Interactive GPU-Powered Repository & Live Filesystem Sandbox

Static code snippets hide how software actually stresses hardware. Below is our live FastAPI SSE GPU Sandbox Workbench: browse all 7 real Python scripts from our B300 run (plus policy.py and our production Dockerfile), select any experiment, and press Power Up GPU & Run to watch the Blackwell SM core bar, VRAM gauge, and Watt meter ramp dynamically while generated plots & MuJoCo videos materialize live inside outputs/!

GPU-Powered Repository & Live Filesystem Sandbox
anubhavelhence/alpamayo-b300-lab · FastAPI SSE Sandbox Engine · NVIDIA B300 SXM6 AC Telemetry
SM COMPUTE
0%
HBM CTRL
0%
VRAM / 268G
0.0 GiB
POWER / 1100W
129 W
IDLE (129 W)
Repository Tree
outputs/ (Live)0

Run a GPU command below to watch plots, JSON telemetry & MP4 videos materialize live here!

src/alpamayo2_edge_robotics/policy.py
# Loading repository source from FastAPI...
Live Sandboxed Execution Stream (SSE)
anubhav@b300-sxm6:~/alpamayo_ws$ # Select any experiment below and press 'Power Up GPU & Run' to watch live telemetry & file generation.

08. Workstation Hardware Triage: PCIe Buses, NVMe vs. HDD & Live Online ext4 Resizing

Before touching any cloud GPU, we forensically audited our local 24-thread Core i9-12900 + TITAN Xp Ubuntu workstation—which felt sluggish despite 25 GB of free RAM. Hardware bus inspection (lsblk -d -o NAME,SIZE,ROTA,TRAN,MODEL) exposed the truth:

Spinning Mechanical HDD vs M.2 NVMe SSD Cutout
The ~1,000× Random IOPS Gap

All of Ubuntu (/, swap, /home) was sitting on a 7200 RPM spinning SATA HDD (ROTA=1, ~150 random 4K IOPS, 8–12 ms seek latency) while the Micron 3400 512 GB PCIe 4.0 NVMe SSD (ROTA=0, 100,000+ IOPS, 0.05 ms latency) held Windows. Worse, / was 95% full (only 2.6 GB free) due to 16.4 GB of orphaned Vitis-AI Docker layers, while 1,321 GiB (~1.3 TB) on /dev/sdb sat completely unallocated!

Without rebooting or losing a single byte of our 198 GB Xilinx Vivado/Vitis FPGA toolchain, we executed five surgical systems fixes: (1) pruned 16.4 GB of stale Docker build cache and moved data-root to /home/docker-data with the NVIDIA runtime; (2) lazy-loaded 5 Xilinx .bashrc scripts into use_xilinx() to eliminate LD_LIBRARY_PATH contamination; (3) expanded /dev/sdb3 (/home) live online from 458 GB → 1.8 TB (1.4 TB free) via sfdisk + partx -u + resize2fs; (4) replaced the 30 GB swap partition with a 32 GB /home/swapfile, expanded / online from 46 GB (95% full) → 75 GB (31% used, 50 GB free); and (5) set RESUME=none + update-initramfs -u to guarantee zero boot stalls.

Linux Workstation Before vs After Sketchnote
Handwritten Lecture Note #05 — Zero-reboot online ext4 expansion & Docker relocation case study.
Workstation Motherboard Bus Topology Sketchnote
Handwritten Lecture Note #10 — Motherboard PCIe 3.0/4.0, GDDR5X VRAM, NVMe & SATA HDD bus topology.
Complete Visual Lecture Deck (Click Any Note to Zoom Fullscreen)

All 10 Handwritten Engineering Sketchnotes

Engineering Dispatches

Get deep silicon-to-robotics monographs in your inbox.

Zero fluff. Only empirical GPU benchmarks, FPGA/CUDA architecture notes, interactive WebGL proofs, and reproducible VLA robotics experiments.