---
title: "PreTrainedModel"
sidebar_label: "PreTrainedModel"
description: "Kotlin binding reference: PreTrainedModel."
---

<!-- Generated by tools/api_reference/generate_api_docs.py. Do not edit. -->

//[clika-runtime](../../../index.md)/[io.clika.modelverse](../index.md)/[PreTrainedModel](index.md)

# PreTrainedModel

sealed interface [PreTrainedModel](index.md)

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

#### Inheritors

| |
|---|
| [DiarizationModel](../DiarizationModel/index.md) |
| [EmbeddingModel](../EmbeddingModel/index.md) |
| [GenerativeModel](../GenerativeModel/index.md) |
| [ImageGenerationModel](../ImageGenerationModel/index.md) |
| [RerankerModel](../RerankerModel/index.md) |
| [SttModel](../SttModel/index.md) |
| [TranslateModel](../TranslateModel/index.md) |
| [TtsModel](../TtsModel/index.md) |
| [VideoGenerationModel](../VideoGenerationModel/index.md) |
| [VisionModel](../VisionModel/index.md) |

## Properties

| Name | Summary |
|---|---|
| [config](config.md) | [common]<br>abstract val [config](config.md): [PretrainedConfig](../PretrainedConfig/index.md)<br>The checkpoint's identity, read when the model opened. |

## Functions

| Name | Summary |
|---|---|
| [residency](residency.md) | [common]<br>abstract fun [residency](residency.md)(): [ResidencyReport](../ResidencyReport/index.md)<br>What the model holds on each device right now ([ResidencyReport](../ResidencyReport/index.md)); a closed model refuses with [ModelverseException](../ModelverseException/index.md). |