Expand description
Inference on a worker thread: callers submit a request and read streamed text, and can cancel.
Structs§
- Canceller
- Stops a generation from another thread or task.
- Generate
Request - One generation request.
- Generation
- A running generation.
- Stats
- Worker
- An engine on its own thread. The engine is loaded on the first request (and again after a failed load), so creating a worker is cheap. Requests run one at a time, in order.
Enums§
Traits§
- Engine
- A loaded model.
on_textgets each piece of text as it is sampled and returnsfalseto stop.