ML Inference Engineer

Six cameras feed one Jetson AGX Orin 20 times a second: 50 ms per frame. An illustrative perception network takes 56.9 ms in FP16 and misses it; in INT8 it takes 32.8 ms and fits. The on-vehicle inference engineer makes that fit, keeps it cool and proves the detections did not change.

Learn what the role builds and the skills it needs. Budget latency from sensor to planner. Read an edge chip's roofline and memory bus. Then batch cameras, calibrate INT8, compile the graph, manage heat and measure.

Add cameras until the frame breaks the 50 ms line, then switch to INT8. Watch where the time goes. Then we build each part of this panel from zero.

You need a little Python and the idea that a neural network turns an image into numbers. We build the rest from zero.

Chip figures come from NVIDIA's Jetson AGX Orin 64GB specifications (dense Tensor Core rates, 204.8 GB/s LPDDR5) and the Jetson Linux guide (power modes, throttle temperatures), read 22 November 2026. The network is an illustrative stand-in, not a published model. The Onboard Perception Lead guide covers the rest of the stack.

Fit the cameras in one frame

6

Jetson AGX Orin 64GB at MAXN: 43 dense FP16 and 85 dense INT8 Tensor TOPS on the GPU, 204.8 GB/s (NVIDIA). The network is illustrative: a 200-GFLOP backbone per camera, a memory-bound view transform, a BEV encoder and a head; kernels reach 60% of the roofline. The BEV view transform and the head stay FP16. Chapters 1 to 3 derive each number.

Chapter 0

What the Role Owns

Follow one camera frame from the sensor to the planner, and check it against two budgets

A car drives at 20 m/s. Its cameras take a picture every 50 ms. The planner needs a list of objects from each picture. The safety team gives perception 100 ms from the moment light hits the sensor. Yesterday a new model shipped, and the perception time went up by 12 ms.

The on-vehicle perception inference engineer owns how the trained perception network runs in the car. The role does not train the network. It makes it fit a fixed chip, a fixed power supply and a fixed deadline, and it proves the outputs still match the reference.

What the role buildsThe skill it needsChapter
A latency budget, sensor to plannersplit the frame into stages0
A speed limit for each kernelthe roofline of an edge chip1
A bandwidth planbytes per frame times frame rate2
A camera pipelinemulti-camera batching and BEV fusion cost3
An INT8 enginequantization and calibration4
A compiled graphlayer fusion and precision choice5
A power and thermal planpower modes and junction temperature6
A profile and a parity gatemeasuring against the limit7

One frame passes six stages. Call the capture time (sensor readout and the camera link) tcap and the image signal processor time tisp. Call the preprocessing time tpre, the network time tnet and the postprocessing time tpost. Call the time spent waiting in queues tq and the end-to-end latency L.

Say it aloud

L equals t-cap plus t-isp plus t-pre plus t-net plus t-post plus t-q.

L
L the end-to-end latency: light on the sensor to objects at the planner.
tcap
t-cap sensor readout plus the camera link: 8 ms here.
tisp
t-I-S-P the image signal processor turns raw pixels into an image: 6 ms.
tpre
t-pre resize and normalise for the network: 3 ms.
tnet
t-net the network for all cameras: 32.8 ms in INT8 (Chapter 3).
tpost
t-post decode boxes and hand them to tracking: 5 ms.
tq
t-q waiting in queues and scheduler jitter: 2 ms.
In plain words

Add the time of every stage the frame passes, including the time it waits. The sum is L. Compare it with the latency budget.

With numbers

With illustrative stage times: L = 8 + 6 + 3 + 32.8 + 5 + 2 = 56.8 ms, inside the 100 ms budget. In FP16, t-net is 56.9 ms and L = 80.9 ms: still inside.

FP16 passes the latency check and still fails. A new frame arrives every 50 ms, and the network needs 56.9 ms. That is the second budget: the frame period. If the network time is longer than the period, frames pile up and each waits longer than the last.

Check both budgets

Teal ticks are frames arriving; warm bars are the network at work. Push the network time past the period and watch each frame wait longer.

56.9 ms
20 Hz

Illustrative stage times: capture 8, ISP 6, preprocess 3, postprocess 5, jitter 2 ms. One network runs at a time; a frame waits until the previous one finishes.

The failure: timing only the GPU. Symptom: the network takes 85 ms of GPU time against a 100 ms budget, and the car still misses frames. Measure: a full CPU and GPU timeline, sensor timestamp to planner message. Fix: budget every stage in L, and check the network time against the frame period.

The road

  1. The edge roofline: which kernels the Orin's bandwidth limits.
  2. Memory and bandwidth budgets: bytes per frame times frames per second.
  3. Cameras and BEV fusion: how the frame time grows with each camera.
  4. Quantize and calibrate: INT8 weights and activations, checked.
  5. Compile and fuse: what an engine builder does to the graph.
  6. Heat and power: why the speed in minute one is not the speed you keep.
  7. Measure against the limit: speed of light, traces and the parity gate.
  8. Plan a camera rig: every knob on one fixed chip.
  9. Field guide: numbers, checklist, code and links.
Cameras send a frame every 50 ms. The network takes 56.9 ms per frame and L is 80.9 ms. What happens over a minute of driving?

Chapter 1

The Roofline on an Edge Chip

Find which of the Orin's two speed limits stops each kernel

An edge chip has the same two speed limits as a data-centre GPU, only smaller. Memory bandwidth is how many bytes per second reach the compute units from DRAM. Peak compute is how many operations those units do per second. For the Jetson AGX Orin 64GB, NVIDIA lists 204.8 GB/s and, on the GPU's Tensor Cores, 43 dense FP16 TFLOPS and 85 dense INT8 TOPS.

Each kernel has an arithmetic intensity: the operations it does per byte it moves. Call the peak compute F, the bandwidth BW and the intensity I. Call the speed the kernel can reach P.

Say it aloud

P equals the minimum of F, and I times B-W.

P
P the operations per second the kernel can reach.
min
the minimum of take the smaller, because the slower limit wins.
F
F peak compute: 43 trillion FP16 operations per second on the Orin GPU.
I
I arithmetic intensity: operations per byte moved.
BW
B-W memory bandwidth: 204.8 GB per second, shared by CPU, GPU and accelerators.
In plain words

Multiply the intensity I by the bandwidth BW: that is how fast memory can feed the maths. If it is below F, memory sets the speed. If not, F does. The two limits meet at the ridge, I = F / BW.

With numbers

FP16 ridge: 43 × 1012 / 204.8 × 109 = 210 operations per byte. A 3×3 convolution with 256 channels in and out on a 64 × 64 map does 4.83 billion operations on 5.37 MB. So I = 899, past the ridge, and P = 43 TFLOPS.

The same layer in INT8 meets a ridge of 85 / 0.2048 = 415. Other layers sit far to the left. A depthwise convolution, which filters each channel on its own, has I = 4.5 and reaches 0.92 TFLOPS. An elementwise add has I = 1/6. The view transform, which moves camera features into a top-down grid, has I near 67 in this lesson's network.

Place perception kernels under the roof

The slanted line is bandwidth, the flat line is peak compute. Pick a kernel to read its limit, then switch to INT8 and watch the ridge move right.

3×3 conv

Peaks from NVIDIA's Jetson AGX Orin 64GB specs: GPU Tensor Cores 43 dense FP16 TFLOPS, 85 dense INT8 TOPS; 204.8 GB/s. We count conv and depthwise intensities for a 256-channel 64 × 64 map in 16-bit; the backbone and view-transform values belong to this page's illustrative network. INT8 halves the bytes of each kernel.

So a perception backbone of large convolutions is mostly compute-bound, while its small layers and the BEV view transform are memory-bound. That split decides where INT8 helps (Chapter 4) and where fusion helps (Chapter 5).

The failure: reading the headline. Symptom: a spec sheet says 275 TOPS, yet the network runs at a tenth of the expected speed. Measure: place each heavy kernel on the roofline with its real intensity. Fix: the 275 counts sparse INT8 on GPU and DLA together; plan with the dense GPU figure and the bandwidth.

A kernel does 5 operations per byte on the Orin (FP16 ridge 210). What limits it, and how fast can it go?

Chapter 2

Memory and Bandwidth Budgets

Count the bytes one frame moves, multiply by the frame rate, and compare with what the chip can share

On the Orin, CPU, GPU, DLAs, ISP and video engines share one pool of LPDDR5 memory: 64 GB and 204.8 GB/s. Capacity is rarely the problem: perception weights take tens of megabytes. All engines share the bandwidth, so every byte the network moves is a byte the CPU and the camera path cannot.

Call the bytes one frame's network moves through DRAM Qframe and the frame rate f. Call the bandwidth the network needs Bneed.

Say it aloud

B-need equals f times Q-frame.

Bneed
B-need the bandwidth the network uses, in GB per second.
f
f frames per second: 20 here.
Qframe
Q-frame bytes read and written for one frame, all cameras: weights, activations, the BEV grid.
In plain words

Add up the bytes every layer reads and writes for one frame of all cameras. Multiply by the frames per second f. Keep B-need well under the bandwidth the network may use.

With numbers

Illustrative network, six cameras, FP16: 6 × 400 MB (backbones) + 6 × 150 MB (view transforms) + 200 MB (BEV encoder) + 60 MB (head) = 3.56 GB. At f = 20, B-need = 71.2 GB/s: 35% of 204.8. In INT8 it is 2.26 GB and 45.2 GB/s, 22%.

The raw camera stream is small next to this. Six 1920 × 1080 cameras in a 1.5-byte-per-pixel format at 20 Hz send 373 MB/s, 0.18% of the bandwidth. The network's own traffic is what fills the bus.

Share the memory bus

Teal is the camera stream, purple is the network, grey is a reserve for the CPU and other engines. Raise the frame rate and the cameras, then switch to INT8.

6
20 Hz

Bandwidth from NVIDIA's Jetson AGX Orin 64GB specs. Network bytes are this page's illustrative model. The 60 GB/s CPU and system reserve is illustrative; measure yours. Real DRAM rarely sustains its peak, so leave room.

The failure: a neighbour on the bus. Symptom: the network slows by 20% whenever the mapping process runs on the CPU. Measure: read DRAM traffic per engine from the platform's counters while both run. Fix: cut the network's bytes (INT8, fusion), or schedule the heavy CPU work away from the network's busiest phase.

If the car also runs a language model, the bytes that matter there are the weights and the KV cache. The Serving Engines and Economics of Inference lessons size those.

A frame moves 2.26 GB and the cameras run at 30 Hz instead of 20. What bandwidth does the network need?

Chapter 3

Cameras, Batching and BEV Fusion

Add up each stage's roofline time and see how the frame grows with every camera

A camera-only driving stack runs the same backbone on every camera image. A view transform then moves each camera's features into a shared top-down grid, the BEV (bird's-eye view). A BEV encoder mixes the grid, and a head outputs boxes. The backbone runs once per camera; the encoder and head run once per frame.

Send all camera images through the backbone as one batch. Each weight is then fetched once per frame, not once per camera, and each kernel launches once. Call each stage's operations Gi, its bytes Ai, the peak compute F, the bandwidth BW and the share of the roofline the kernels reach η. Call the network time per frame tnet.

Say it aloud

t-net equals the sum over i of the maximum of G-i over F and A-i over B-W, all over eta.

tnet
t-net the network time for one frame of all cameras.
Σi
the sum over i add one term per stage: backbones, view transforms, encoder, head.
max
the maximum of the slower of the maths time and the memory time, from the roofline.
Gi
G-i operations in stage i: 200 billion per camera for the backbone.
F
F peak compute: 43 TFLOPS in FP16, 85 TOPS in INT8.
Ai
A-i bytes stage i moves: 400 MB per camera for the FP16 backbone.
BW
B-W bandwidth: 204.8 GB per second.
η
eta the share of the roofline real kernels reach: 0.6, illustrative.
In plain words

For each stage, take the larger of its maths time G-i over F and its memory time A-i over BW. Divide by eta for real kernels. Add the stages. That is t-net.

With numbers

FP16 backbone, one camera: max(200 × 109 / 43 × 1012, 0.4 / 204.8) = max(4.65, 1.95) ms = 4.65 ms. Over 0.6 that is 7.75 ms, so 46.5 ms for six. View transforms 7.3 ms, encoder 2.3 ms, head 0.8 ms. t-net = 56.9 ms.

Add cameras to the rig

Blue is the backbones, pink is BEV fusion, warm is the head. Each camera adds a slice. Find the most cameras that fit under the dashed 50 ms line.

6

Illustrative network on a Jetson AGX Orin 64GB at MAXN, kernels at 60% of the roofline. The view transform and head stay FP16 in both modes.

INT8 halves the backbone: 23.5 ms for six cameras, and t-net = 32.8 ms. FP16 fits 5 cameras at 20 Hz; INT8 fits 9. The BEV share does not shrink, because the view transform is memory-bound and stays in FP16. At nine INT8 cameras it is 12 of the 48 ms.

The failure: a camera added late. Symptom: a seventh camera for the rear corner pushes the FP16 frame from 56.9 to 66 ms. Measure: rerun this sum per stage before the hardware order. Fix: INT8 backbones, a lower resolution for the side cameras, or a lower frame rate for them.

The backbone moves to INT8 and gets twice as fast, but the frame time falls from 56.9 to 32.8 ms, not to half. Why?

Chapter 4

Quantize and Calibrate

Map weights and activations to 8-bit integers, choose the scales, and check nothing broke

INT8 doubles the Orin GPU's peak and halves the bytes. Quantization maps each 16-bit number to a small integer and keeps a scale to map it back. Take one row of weights. Call its largest absolute value r and the step between two integer levels, the scale, s. Call one weight x and its integer q.

Say it aloud

s equals r over one hundred twenty-seven, and q equals x over s, rounded.

s
s the scale: the size of one integer step.
r
r the largest absolute value in the row.
127
one hundred twenty-seven the largest INT8 value used, so the range −127 to 127 is even around zero.
q
q the stored integer, from −127 to 127.
round
rounded move to the nearest integer; this is where the error comes from.
x
x one 16-bit value.
s
s the same scale, used to divide.
In plain words

Find the largest size r in the row and divide it by 127: that is the step s. Divide each value x by s and round to get q. To read it back, multiply q by s. The error is at most half a step.

With numbers

Row [0.32, −1.47, 0.89, −0.05, 2.13, −1.98]: r = 2.13, s = 2.13 / 127 = 0.01677. Then 0.32 / 0.01677 = 19.08, so q = 19, read back as 0.3187: error 0.0013. The largest error in the row is 0.0059, under s / 2 = 0.0084.

One scale for a whole tensor, called per-tensor, breaks when one channel is large. If channel 47 spans ±5.0 and channel 0 spans ±0.1, the shared step is 0.039, and channel 0 lands on only 7 integers: under 3 bits. A scale per output channel, per-channel, gives channel 0 a step of 0.00079.

Snap one channel to the grid

Purple dots are channel 0's true values; warm dots are where INT8 puts them. Grow the outlier channel, then switch to per-channel.

±5.0

Twelve illustrative values for channel 0 inside ±0.1, symmetric INT8. The outlier range sets the per-tensor scale; per-channel ignores it.

Weights are fixed, so their scales are exact. Activations change with every image, so their scales come from calibration: run a few hundred representative frames, record each tensor's values, and choose a clipping range. Max-value ranges let one bright pixel waste the grid; percentile or histogram methods clip rare extremes instead. Keep sensitive layers, such as the view transform and the head here, in FP16.

The failure: calibration on the wrong weather. Symptom: overall detection quality drops 0.3 points, but rainy night scenes drop 4. Measure: split the parity check by scene type. Fix: rebalance the calibration set across day, night, rain and road types, and recalibrate. That costs minutes, not a retraining run.

One tensor uses one INT8 scale. One channel spans ±5.0, another ±0.1. What happens to the small channel?

Chapter 5

Compile and Fuse the Graph

See what an engine builder does to a network, and count the bytes that fusion saves

A trained network is a graph of small operations. Run them one by one and each writes its output to DRAM, and the next reads it back. An engine builder such as NVIDIA TensorRT takes the graph, often exported as ONNX, and turns it into one optimised engine. It does three things:

  1. Fuses layers: a convolution, its bias, a normalisation and an activation become one kernel.
  2. Chooses a precision per layer: INT8 where calibration allows, FP16 where it does not.
  3. Times candidate kernels on the target chip and keeps the fastest.

The engine works only on the chip and builder version that built it. On Orin, TensorRT can also place supported layers on the two DLAs and let the rest fall back to the GPU.

Count what fusion saves. Call a feature map's size in bytes X and the number of elementwise operations in a row k. Unfused, each reads X and writes X. Call the bytes saved ΔQ.

Say it aloud

Delta Q equals two times k minus one, times X.

ΔQ
delta Q the DRAM bytes saved by fusing the chain into one kernel.
2
two one read and one write per kernel.
k
k the operations in the chain: 3 for bias, normalisation and activation.
X
X the feature map's size: 256 channels × 136 × 240 in FP16, 16.7 MB.
In plain words

Unfused, the chain moves 2 times k times X bytes. Fused, it reads X once and writes X once: 2 times X. The difference is 2 times k minus 1, times X.

With numbers

k = 3 and X = 16.7 MB: unfused 100 MB, fused 33 MB, so ΔQ = 67 MB, or 0.33 ms at 204.8 GB/s. With 20 such chains per backbone and six cameras, fusion saves 39 ms per frame.

Fuse a chain of kernels

Each blue box is a kernel; each purple arrow is a trip to DRAM. Lengthen the chain, then fuse it and count the arrows.

3

Feature map 256 × 136 × 240 in FP16. Twenty chains per backbone and six cameras are illustrative. The roofline network in Chapter 3 already assumes a fused engine.

The failure: an unsupported layer. Symptom: one custom operation, such as a BEV pooling step, splits the engine, and its output takes a round trip through DRAM and the CPU. Measure: read the builder's layer log for fallbacks and splits. Fix: write a plugin for the operation, or rewrite it with supported layers. Quantize, Compile, Prove Parity builds a plugin step by step.

A chain of 4 elementwise operations runs on a 10 MB feature map. How many DRAM bytes does fusing it save?

Chapter 6

Heat and Power Set the Real Clock

Turn a power mode into a chip temperature, and a temperature into a frame time

The 32.8 ms frame holds on a cool bench. In a car parked in the sun, the same chip runs hotter, and a hot chip lowers its own clocks. Every watt the chip uses becomes heat, and the cooling path must carry it to the air.

The Jetson Linux guide lists power modes for the AGX Orin 64GB: 15 W, 30 W (the default), 50 W and MAXN, which has no budget. NVIDIA's specs give the module a 15 to 60 W range. The same guide puts software throttling at 99 °C on the Orin's thermal zones and hardware throttling at 103 °C.

Call the air temperature around the module Ta, the power P and the thermal resistance from the silicon to the air Rth, in kelvin per watt. Call the steady junction temperature Tj.

Say it aloud

T-j equals T-a plus P times R-t-h.

Tj
T-j the junction temperature: the silicon itself, once it settles.
Ta
T-a the air around the module: 50 °C in a hot car, illustrative.
P
P the power the chip uses, in watts; it all becomes heat.
Rth
R-t-h thermal resistance, silicon to air: 0.9 K per watt, illustrative.
In plain words

Multiply the power P by the thermal resistance R-th: that is how far the silicon sits above the air. Add the air temperature T-a. If T-j passes the throttle point, the chip lowers its clocks.

With numbers

At 60 W and 50 °C air: T-j = 50 + 60 × 0.9 = 104 °C, past 99, so the chip throttles. At 50 W: 95 °C, safe. The 50 W mode runs slower clocks: the INT8 frame takes 37.3 ms, still under 50.

Pick a power mode for a hot day

The yellow bar is the junction temperature; the red line is the 99 °C throttle. Raise the air temperature, then lower the power mode until the chip stays cool and the frame still fits.

50 °C

Power modes and throttle points from NVIDIA's Jetson Linux guide. We draw MAXN at the 60 W top of the spec range. R-th 0.9 K/W and the clock share of each mode (100%, 85%, 60%, 35%) are illustrative. We draw a throttled chip at 75% clocks. INT8 network, six cameras.

The equation gives the steady state. A real enclosure warms over minutes, so a bench test of 30 seconds never sees the throttle. The Edge Roofline and the 7-Minute Throttle derives when it arrives.

The failure: a cold benchmark. Symptom: the frame time drifts from 33 to 41 ms after ten minutes in a hot car. Measure: log clocks, temperature and frame time with tegrastats for twenty minutes in the worst enclosure. Fix: pick the power mode that never throttles, and budget the frame at that mode's clocks.

At 50 °C air and R-th = 0.9 K/W, what is the highest power that keeps T-j under the 99 °C throttle?

Chapter 7

Measure Against the Limit

Compare a measured kernel with its roofline time, find the gap in a trace, and gate every change on parity

The roofline gives the best case. Real kernels miss it: small layers do not fill the GPU, each kernel pays a launch cost on the CPU, and a slow CPU thread can starve the GPU. The skill is to measure the gap and name its cause.

The speed of light (SOL) of a kernel is its roofline time over its measured time. Call the roofline time troof, from max(G / F, A / BW), and the measured time tmeas.

Say it aloud

S-O-L equals t-roof over t-meas.

SOL
S-O-L speed of light: the share of the roofline the kernel reached, from 0 to 1.
troof
t-roof the best possible time: the larger of G over F and A over BW.
tmeas
t-meas the time you measured on the car's chip.
In plain words

Work out the best time t-roof from the operations and bytes. Measure the real time t-meas. Divide the first by the second. A low SOL says time is lost somewhere you can find.

With numbers

INT8 backbone, one camera: t-roof = max(200 × 109 / 85 × 1012, 0.2 / 204.8) = 2.35 ms. With an illustrative measured 3.9 ms, SOL = 2.35 / 3.9 = 60%.

Three tools find the rest. trtexec, TensorRT's benchmark tool, gives per-layer times for an engine. Nsight Systems draws the CPU and GPU timeline with the gaps between kernels. tegrastats logs clocks, power and temperature on a Jetson. Two fixes come up most. Batch the cameras, so each kernel launches once per frame. CUDA Graphs record the launch sequence once and replay it with one call.

Close the gap in a trace

Blue blocks are backbone work, red slivers are launch gaps. Batch the cameras, then turn on graphs, and watch SOL climb.

Illustrative trace, INT8 backbone, six cameras: 120 kernels per pass and a 10 µs launch cost each without graphs. Kernels reach 50% of the roofline one camera at a time and 60% batched.

Speed work must not change detections. A parity gate runs a fixed set of logged frames through the reference network and the engine. It compares outputs layer by layer and box by box, and blocks the release past a set margin. Split it by scene type, as in Chapter 4.

The failure: a benchmark without the car. Symptom: trtexec shows 3.9 ms per camera, and the car sees 6. Measure: an Nsight Systems trace of the full pipeline on the car's chip, with the other processes running. Fix: find the stall (a CPU copy, a lock, a slow preprocess) and remove it.

A kernel's roofline time is 2.35 ms and it measures 4.7 ms. What is its SOL, and what do you open first?

Chapter 8

Plan a Camera Rig

Fix the chip, then let every chapter's formula decide the cameras, the precision, the rate and the power mode

A rig plan starts from the chip in the car and the two budgets. The planner below applies Chapters 0 to 6 at once. It sums stages for latency and roofline times for the frame. It counts bytes per second for the bus and the junction temperature for the clocks.

Plan the rig on one Orin

Find the most cameras that keep all four gauges green. Red means a broken budget or a throttled chip.

6
50 °C

Jetson AGX Orin 64GB figures from NVIDIA. Everything else is the chapters' illustrative model: the network at 60% of the roofline, the stage times, R-th 0.9 K/W, the clock share per mode, 75% clocks when throttled, a 60 GB/s CPU reserve and a 100 ms budget.

A worked plan for a hot day at 50 °C: MAXN would reach 104 °C and throttle, so start at 50 W (95 °C). Six INT8 cameras then take 37.3 ms at 20 Hz, and L = 61.3 ms. FP16 at 50 W takes 65.7 ms and fails the period. At 30 W, INT8 still fits at 49.8 ms, with no margin.

Double the pixels and six INT8 cameras need 63.7 ms even at MAXN. Halve them and six FP16 cameras fit at 30.0 ms. Resolution is a lever as strong as precision, with its own cost in range.

At 50 °C air, why does the planner prefer 50 W to MAXN for six INT8 cameras?

Chapter 9

Field Guide

Keep the numbers, the checklist, the code and the next lessons in one place

A perception frame must meet two budgets: latency from sensor to planner, and the frame period. The role fits the network to a fixed chip with batching, INT8, fusion and the right power mode. Then it measures against the roofline and proves the detections did not change.

TermFormulaThis lesson's number
Latency Ltcap + tisp + tpre + tnet + tpost + tq56.8 ms INT8; 80.9 ms FP16
Ridge, Orin GPUF / BW210 FP16; 415 INT8
Bandwidth neededf × Qframe71.2 GB/s FP16; 45.2 INT8
Network timeΣ max(G/F, A/BW) / η56.9 ms FP16; 32.8 ms INT8
Cameras at 20 Hzlargest N with tnet ≤ 50 ms5 FP16; 9 INT8
INT8 scales = r / 1270.01677 for r = 2.13
Fusion saving2 × (k − 1) × X67 MB per chain; 39 ms per frame
Junction temperatureTa + P × Rth104 °C at 60 W; 95 °C at 50 W
Speed of lighttroof / tmeas60% at 3.9 ms measured

Checklist before an engine ships to the car

The core, in code

pythonBW, F16, F8, ETA = 204.8e9, 43e12, 85e12, 0.6       # Jetson AGX Orin 64GB (NVIDIA); eta illustrative

def t_net(cams, int8, clock=1.0):                  # Chapter 3: sum of roofline times
    Fb = (F8 if int8 else F16) * clock               # INT8 runs only the backbone and encoder
    F, a = F16 * clock, (0.5 if int8 else 1.0)
    stages = [(cams, 200e9, 400e6 * a, Fb),          # backbone, per camera (illustrative)
              (cams, 10e9, 150e6, F),                # view transform, per camera, FP16
              (1, 60e9, 200e6 * a, Fb),              # BEV encoder
              (1, 20e9, 60e6, F)]                   # head, FP16
    return sum(n * max(g / f, b / BW) for n, g, b, f in stages) / ETA

def t_junction(t_air, watts, r_th=0.9):               # Chapter 6
    return t_air + watts * r_th

print(t_net(6, False), t_net(6, True))     # 0.0569 s, 0.0328 s
print(t_junction(50, 60), t_junction(50, 50))  # 104.0 (throttles at 99), 95.0
print(2 * (3 - 1) * 16.7e6 / BW)               # 0.00033 s saved by one fused chain

Keep going

Sources

The habit. Before you optimise a stage, write down its operations, its bytes and its roofline time on the car's chip, at the power mode the car will really run. Then measure, and explain the gap.

Now press Present or Teach. Explain from memory why FP16 passes the latency budget and still fails. Then say why BEV fusion does not shrink with INT8, and why 50 W can beat MAXN on a hot day. Then go back to the camera panel and predict how many INT8 cameras fit before you look.

ML Inference Engineer
Onboard Perception Lead · Edge Roofline and Thermals · Back to Gleams