//clika-runtime/io.clika.modelverse/Pipeline
Pipeline
sealed class Pipeline
A task pipeline: one call that runs a loaded model's door end to end and answers the result, under the task's own name (Modelverse.pipeline with a task string: text-generation, automatic-speech-recognition, text-to-speech, translation, image-to-text, object-detection, depth-estimation, image-feature-extraction, zero-shot-image-classification, feature-extraction, text-ranking, voice-activity-detection, text-to-image, text-to-video, and their aliases). Each pipeline's invoke blocks on the caller's thread for the model's reply; a failure throws ModelverseException with the model's message. The pipeline owns its model: close closes it. The handle's own doors stay reachable through model for a caller that streams.
Inheritors
Properties
| Name | Summary |
|---|---|
| model | [common] abstract val model: PreTrainedModel The loaded model the pipeline runs. |
| task | [common] val task: String The task the pipeline serves, in transformers' spelling. |
Functions
| Name | Summary |
|---|---|
| close | [common] open fun close(): <Error class: unknown class> |