Skip to main content

//clika-runtime/io.clika.modelverse/TranslateModel/Companion/open

open

[common]
fun open(path: String, options: TranslateLoadOptions = TranslateLoadOptions()): TranslateModel

Load a translation model from path, a snapshot directory, on the CPU. Blocks for the load; call it off the main thread.

Throws​

ModelverseExceptionwhen no translation family of the library claims the files (a chat model that translates by instruction is opened as a GenerativeModel), or the load fails, named in the message.