Engineering notes
Engineering Insights
Practical checklists for early engineering decisions in on-device deployment, agent evaluation, and GPU measurement.
Before Moving Generative Vision onto a Device
Prepare a comparable end-to-end baseline before optimizing the slowest stage.
- Pin model version, input dimensions, batch, warmup protocol, and acceptance images. Time decoding, preprocessing, inference, postprocessing, and data transfer separately.
- Check supported operators and precision during conversion. Compare mask boundaries, color, and temporal consistency on the same examples after each change.
- On the device, record end-to-end latency, peak memory, and sustained behavior. Inference times on another device describe only that backend and test condition.
Evaluate Agents by Cost per Successful Task
Put completion, evidence, recovery, review, and cost in the same evaluation to expose architecture trade-offs.
- Use synthetic and approved representative tasks to define constraints and scoring. Include routine tasks, boundary cases, and negative controls.
- Pin pricing assumptions and record model calls, retries, and required human handling. Report total cost and failure rate separately when no task succeeds.
- Show completion and verification coverage when comparing policies. Label counts as measured, replayed, simulated, or estimated.
Find GPU Waiting Causes in Job Traces
Interpret utilization, waiting, and reservations against the job lifecycle.
- A useful trace captures submission, waiting, start, completion, exit reason, device, and sampled memory. Record the sampling interval so missing samples are not mistaken for idle time.
- Compare the default and candidate policies under the same workload and device caps. Keep the job mix, arrivals, and stop criteria consistent.
- Separate admission, waiting, and execution in the analysis. A single-device controlled run can demonstrate measurement, while multi-host sizing needs its own tests.