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

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

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

# AutoModel

[common]\
object [AutoModel](index.md)

Load any registered model by name: the family's declared modalities pick the door, or task names it ([Task](../Task/index.md)). The answer is the door's handle, a [PreTrainedModel](../PreTrainedModel/index.md). A door this binding serves no handle for yet (image segmentation) refuses with `UNSUPPORTED`, naming the task.

## Functions

| Name | Summary |
|---|---|
| [fromPretrained](fromPretrained.md) | [common]<br>fun [fromPretrained](fromPretrained.md)(source: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html), options: [LoadOptions](../LoadOptions/index.md) = LoadOptions(), task: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)? = null): [PreTrainedModel](../PreTrainedModel/index.md) |
| [kindFor](kindFor.md) | [common]<br>fun [kindFor](kindFor.md)(source: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html), options: [LoadOptions](../LoadOptions/index.md) = LoadOptions(), task: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)? = null): [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)<br>The door [source](kindFor.md) loads through, as its task: from [task](kindFor.md) when given, else from the family's modalities. |