Skip to main content

Module worker

Module worker 

Source
Expand description

Blocking worker thread, request dispatch, and probe wiring.

Structsยง

WorkerConfig
Execution-policy configuration shared by all workers.
WorkerGuard ๐Ÿ”’

Functionsยง

probe_run_dense ๐Ÿ”’
Runs a single session.run() for the probe, measuring RSS before and after.
run_probe_batch ๐Ÿ”’
Runs one probe batch: tokenize texts, build padded arrays, call session.run(), and return RSS deltas. Uses embed_denseโ€™s no-pad tokenizer path.
run_worker ๐Ÿ”’