Skip to main content

OneXMonitor parameters

Config options

LLM extension and export queues

For decoder / LLM workloads, the PyTorch adapter can emit multiple signals per forward pass. The background exporter sends them in batches. If the HTTP path is slower than signal production, in-process queues can fill.
  • signal_queue_maxsize / request_queue_maxsize: Increase these when running large models or long generations and you observe exporter warnings about a full queue.
  • capture_llm_extension: Extra structured metadata for backends and debugging. Disable if you do not need it.
  • llm_extension_cuda_memory: Disable if you want to avoid reading CUDA memory statistics in llm_extension.
Example:

Sampling and throughput control

  • Sample rate: When sample_rate is less than 1.0, the SDK exports only a fraction of requests. The decision is made once per request (by request_id), so either all signals for a request are exported or none. Use this in high-traffic production to reduce volume while keeping representative coverage (e.g. sample_rate=0.1 for 10% of requests).
  • Max requests per minute: When set, the exporter limits how many batch HTTP requests it sends to the platform per 60-second sliding window. Batches are sent as soon as possible under this cap. Use this to avoid overloading the ingestion API when many models or processes export concurrently.
Example:

Logits and probabilities capture

For Uncertainty, Calibration, and Confidence assessments, the platform can use model logits and/or probabilities. By default they are not captured (privacy and payload size).
  • capture_logits: When true, the SDK extracts the logits tensor from the model forward output (e.g. HuggingFace CausalLMOutputWithPast.logits) and adds a logits field to the response payload with shape, sample (first N values), and numel.
  • capture_probabilities: When true, the SDK computes softmax(logits) and adds a probabilities field with the same structure. Requires the model output to expose logits (e.g. .logits attribute or first element of a tuple).
  • logits_sample_size: Caps how many values are included in the sample (default 64). Use a higher value for small classification heads; keep lower for large vocabularies.
When either option is enabled, the main output field in the response is serialized without the raw logits tensor so you avoid duplicating data and control size via the sampled fields. Example: