Expand description
Worker lifecycle guard, in-band JIT guard wiring, and inference outcomes.
Structsยง
- Embed
Route ๐Context - Per-route context passed to
finalize_embed_routeafter inference. - Worker
Guard ๐
Enumsยง
- Inference
Outcome ๐ - Outcome of a single inference call in the worker request loop.
Functionsยง
- adaptive_
warmup_ ๐non_ trt_ compile_ ms - Adaptive-warmup no-op compile duration for non-TRT execution providers.
- build_
shape_ ๐guard - Builds the per-request in-band TRT JIT guard from the worker config and the live pool-wide warmed-sequence ceiling.
- classify_
inference_ ๐outcome - Maps inference error flags to the worker-loop
InferenceOutcome. - finalize_
embed_ ๐route - Shared post-inference path for dense, sparse, and dual routes.
- log_
client_ ๐abandoned_ before_ dispatch - Emits the pre-dispatch abandonment WARN when the client disconnected while the request was still queued.
- log_
guard_ ๐rejection - Emits a
WARNdescribing an in-band TRT JIT guard refusal. - next_
consecutive_ ๐failures - Returns the consecutive-failure counter value after applying an outcome.
- should_
unload_ ๐on_ outcome - Returns
truewhen the worker loop should unload models after inference.