Skip to main content

//clika-runtime/io.clika.modelverse/PreTrainedModel

PreTrainedModel

sealed interface PreTrainedModel

A loaded model of any door: its config (the identity the registry resolved for its source) and close. The handles are GenerativeModel, SttModel, TtsModel, VisionModel and TranslateModel.

Inheritors​

DiarizationModel
EmbeddingModel
GenerativeModel
ImageGenerationModel
RerankerModel
SttModel
TranslateModel
TtsModel
VideoGenerationModel
VisionModel

Properties​

NameSummary
config[common]
abstract val config: PretrainedConfig
The checkpoint's identity, read when the model opened.

Functions​

NameSummary
residency[common]
abstract fun residency(): ResidencyReport
What the model holds on each device right now (ResidencyReport); a closed model refuses with ModelverseException.