Skip to content

TrnRT v0.2.0

Latest

Choose a tag to compare

@github-actions github-actions released this 25 Nov 01:58
590321e

Serving APIs for agent clients, and three builds chosen by users per engine in place of release 0.1.0's presets. Rebuild the compile cache: every build has its own graphs.

Where TrnRT stands. On InferenceX AgentX, one TrnRT engine (8 Trainium2 chips) delivers 1.6–1.75× an 8-GPU H200 node's total tokens per dollar at 1–8 users, 1.34× at 12 and 1.07× at 16, and 3.5–5.2× an H100 node's at 12–32 users, at AWS Capacity Block list prices. Each trn2 user is slower at P90 (10.7–62.2 tok/s against H200's 50.1–272), H200 leads at 24–32 users, and trn2 delivers 0.56–0.76× H200's tokens per dollar on the 8K/1K recipe. The conditions, every table and the source runs are in docs/RESULTS.md.

Highlights

  • Three builds, latency, balanced (default) and throughput, picked with --preset auto --users N (#46).
  • OpenAI Responses and Anthropic Messages APIs, native /generate, /tokenize, admin and info endpoints, n choices, stop_regex (#36).
  • Structured outputs (JSON schema, regex, EBNF), penalties and thinking budgets, behind --structured-outputs and --penalties (#36).
  • Scheduling policies, priorities, queue limits and prefix-cache eviction policies (#36).
  • Stricter request checks: unknown fields, malformed tools and strict: true tools are refused with a 400 that names them (#19, #40). --generation-config auto|none turns the checkpoint's sampling defaults on or off (#44), and the checkpoint's max_new_tokens caps a request that sets no limit (#45).
  • Faster router and streaming tool-argument parsing for long agent contexts (#38, #39).

Device check. Each build's graphs are proven equal to the device-measured reference builds with tools/graph_equiv.py on CPU. The device check of this release's own commit (docker/check_image.py --device, and each build compiled and served on all 32 ranks of a trn2.48xlarge) has not been run yet.

Full list: CHANGELOG.md.


What's Changed

  • ci: bump actions/labeler to 7.0.0 and docker/login-action to 4.8.0 by @dependabot[bot] in #43
  • serve: APIs serving GLM-5.3-Flash by @AmanSwar in #36
  • ci: bump ruff to 0.17.5, in the lint extra and the pre-commit hook by @dependabot[bot] in #42
  • engine: three builds by users per engine, at the graphs we serve by @AmanSwar in #46
  • router: keep the request JSON and the prefix walk off the event loop by @PStarH in #38
  • serve: parse streamed tool arguments incrementally by @PStarH in #39
  • serve: add --generation-config auto|none to turn the checkpoint's sampling defaults off by @FFAX-max in #44
  • serve: refuse malformed tools arrays and non-boolean parallel_tool_calls with 400 by @PStarH in #40
  • serve: the checkpoint's max_new_tokens caps a request that sets no token limit by @FFAX-max in #45
  • serve: refuse an unknown request field with a 400 that names it, instead of ignoring it by @jimburtoft in #19
  • serve: stop_regex refuses empty-able and optional empty branches; a cancelled /generate aborts only its own requests by @sanchitmonga22 in #51
  • release: prepare 0.2.0, with results against H100 and H200 in the README and docs by @sanchitmonga22 in #52
  • release: v0.2.0 by @sanchitmonga22 in #53

New Contributors

Full Changelog: v0.1.0...v0.2.0