How real companies use AI
NVIDIA — agent toolkits and eval/obs
Survey NeMo / agent toolkit docs at a high level
- vLLM (browse)
- Model Context Protocol (MCP) (browse)
- Multi-agent orchestration (browse)
- Evals fundamentals (browse)
- TensorRT-LLM and SGLang (browse)
- OpenTelemetry for LLMs (browse)
- Netflix-style LLM gateway: batching, KV cache, and one API (example)
- Agents in production: ReAct loops, timeouts, and human-in-the-loop (example)
- Production RAG: chunking, hybrid search, rerank, and eval gates (example)
Learning objectives
- Survey NeMo / agent toolkit docs at a high level
- Profile an agent run for bottlenecks
- Write a bottleneck report
Platform lens on agent performance
NVIDIA's NeMo and agent toolkit documentation frame agents as pipelines amenable to profiling, optimization, and observability integration — GPUs matter for self-hosted models, but the engineering lesson generalizes: measure bottlenecks before buying hardware. Tool fan-out, serialization, and retrieval dominate many agent traces more than matmul FLOPs.
This lab surveys toolkit concepts at literacy depth, then profiles your agent run and writes a bottleneck report — same spans from production module, analyzed like a platform engineer.
Survey reading goals (high level)
From NeMo / agent toolkit docs, capture without implementing full stack:
- Agent orchestration abstractions (graphs, tools, memory hooks)
- Integration points for tracing and metrics
- Model serving alignment (Triton, vLLM) when self-hosting
- Eval harness hooks — batch runs, metric plugins
- What requires NVIDIA stack vs portable ideas
industry/nvidia/survey.md — max 2 pages; bullet portable takeaways vs NVIDIA-specific.
Callout — Don't GPU-wash software bugs: If p95 is 8s and 7s is sequential HTTP tools, faster GPU won't help.
Profiling an agent run
Use your JSONL traces or Python cProfile on orchestrator:
- Run representative scenario (≥5 tool calls, 2 LLM turns).
- Build waterfall (production module script).
- Rank spans by total time and by count.
- Classify bottleneck: LLM, tool IO, retrieval, serialization, harness verify.
Optional: py-spy or browser devtools if UI-bound.
Table template:
| Span | Total ms | % trace | Category |
|---|---|---|---|
| tool.payment_api | 3200 | 41% | tool IO |
| llm.main | 2100 | 27% | LLM |
Bottleneck report
industry/nvidia/bottleneck_report.md sections:
- Scenario — what you ran
- Top 3 bottlenecks — evidence from traces
- Recommended fixes — parallelize, cache, smaller model for router, batch retrieval
- What you won't optimize yet — explicit deferrals
- Toolkit mapping — which NeMo-style component would address which issue (conceptual)
Include one before/after if you apply a quick win (e.g. parallel tool calls).
Portable observability practices
Even without NeMo:
- Standard span names across services
- Export traces to OTLP later
- Separate profiles for dev (CPU laptop) vs staging (GPU)
When to adopt platform toolkits
NeMo-class stacks pay off at GPU fleet scale and standardized agent patterns across dozens of teams — solo capstone rarely justifies.full adoption. Survey.md conclusion: steal observability and batch eval ideas; defer full platform until team size threshold.
GPU profiling vs wall clock
If self-hosting SLM, profile GPU utilization during agent burst — low util may mean batching opportunity or CPU-bound preprocessing. Report both wall time and GPU metrics in bottleneck doc.
Batch eval throughput
Platform toolkits emphasize batch eval across many agent trajectories — relevant for nightly golden runs. Note if your eval runner could parallelize cases with worker pool — quick win from NVIDIA reading without NeMo install.
Putting it together in practice
ShipAI treats this lesson as executable curriculum, not reading alone. Before marking complete, trace one real request through your portfolio stack and label where this lesson's concepts apply — even if the first pass is messy. Document what broke in the module README; that gap list becomes your next sprint.
Compare your implementation against the industry callouts cited earlier without copying their scale. Name one deliberate simplification you kept (mock auth, SQLite not Postgres, single-region deploy) and one simplification you refuse to ship without (no eval gate, no trace on mutating tools, no fail-closed guardrail on exfil cases). That contrast is what interviewers and graders look for.
Callout — Teach back: Explain this lesson's core tradeoff to a peer in five minutes without slides. If you cannot, re-read the failure modes section and add an example from your own run logs.
Common questions and misconceptions
"Is this overkill for a side project?" Side projects can skip pieces; capstones and production cannot skip knowing the pieces exist. You may waive cost accounting in v1 but your architecture diagram should still show where it would attach.
"Should I rewrite from scratch?" Extend what you built in prior modules — graders reward evolution, not parallel unused folders. Link file paths in your checklist.
"Which metric matters most?" The metric tied to user harm or revenue: policy violations, failed refunds, silent wrong answers — not vanity leaderboard scores.
Extension paths after the micro-project
After the micro-project passes smoke check, choose one extension aligned with your capstone pillar: tighten eval coverage, add a chaos or red-team case, or wire observability into SSE streams. Extensions belong in BACKLOG unless scope freeze explicitly includes them — avoids capstone death by optional polish.
Engineering problem (staff framing)
Study public engineering patterns around NVIDIA: Toolkits + obs. Rebuild the idea, not scraped proprietary text — focus on transferable architecture.
Diagram — NVIDIA pattern (conceptual)
flowchart LR
Dev-->Toolkit-->Eval/Obs-->Deploy
Precise definitions & mental model
Extract 3 transferable patterns from NVIDIA's public tech narrative on Toolkits + obs; map each to a ShipAI module artifact.
Tradeoffs — when to use what
| Lens | Question |
|---|---|
| Scale | What breaks at 10× traffic? |
| Safety | Where are human/policy gates? |
| Cost | Where do tokens/GPUs dominate? |
Failure modes (interview + on-call)
Cargo-culting brand names without metrics; inventing fake citations; cloning UI not architecture.
Production & OSS practices
Write a lab README: hypothesis, architecture diagram, eval, cost model, what you'd ask their eng in an interview.
Micro-project: Profile + bottleneck write-up
Deliver:
- survey.md with portable vs NVIDIA-specific bullets.
- Profile trace for one representative run.
- bottleneck_report.md with ranked spans and fixes.
- Optional optimization attempt with measured delta.
- Link report from industry module README index.
Acceptance: report identifies dominant non-LLM bottleneck OR proves LLM-bound with evidence.
Checklist
- NeMo/toolkit survey committed
- Trace profile with ranked spans
- bottleneck_report.md with top 3 and recommendations
- Evidence screenshots or JSON snippets
- industry/ folder updated in index
ShipAI delivery model is: