use-ml-inference
Generic inference and prediction metadata primitives for RustUse.
Experimental
use-ml-inference is experimental while use-ml remains below 0.3.0.
Example
use ;
let request = new?;
let score = new?;
let mode: MlInferenceMode = "online".parse?;
assert_eq!;
assert_eq!;
assert_eq!;
# Ok::
Scope
- Inference request IDs, prediction IDs, modes, statuses, and serving labels.
- Input/output kind labels, batching labels, latency buckets, and confidence scores.
- Generic prediction metadata only.
Non-goals
- Serving models, running inference, making network calls, or streaming outputs.
- Chat completions, prompt completions, message roles, assistant responses, system prompts, tool calls, function calls, or streaming chunks.
License
Licensed under either Apache-2.0 or MIT.