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

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

//[clika-runtime](../../../../index.md)/[io.clika.modelverse](../../index.md)/[TranslateModel](../index.md)/[Companion](index.md)/[open](open.md)

# open

[common]\
fun [open](open.md)(path: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html), options: [TranslateLoadOptions](../../TranslateLoadOptions/index.md) = TranslateLoadOptions()): [TranslateModel](../index.md)

Load a translation model from [path](open.md), a snapshot directory, on the CPU. Blocks for the load; call it off the main thread.

#### Throws

| | |
|---|---|
| [ModelverseException](../../ModelverseException/index.md) | when no translation family of the library claims the files (a chat model that translates by instruction is opened as a [GenerativeModel](../../GenerativeModel/index.md)), or the load fails, named in the message. |