Skip to main content

Module guard

Module guard 

Source
Expand description

Worker lifecycle guard, in-band JIT guard wiring, and inference outcomes.

Structsยง

EmbedRouteContext ๐Ÿ”’
Per-route context passed to finalize_embed_route after inference.
WorkerGuard ๐Ÿ”’

Enumsยง

InferenceOutcome ๐Ÿ”’
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 WARN describing 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 true when the worker loop should unload models after inference.