of

suspend fun of(encoding: Encoding, loader: BpeLoader): EncodingConfig

Asynchronously obtains an instance of EncodingConfig.

Return

An instance of EncodingConfig.

Parameters

encoding

The encoding scheme.

loader

The loader to be used for obtaining the encoding scheme.


suspend fun of(model: String, loader: BpeLoader): EncodingConfig

Asynchronously obtains an instance of EncodingConfig.

Return

An instance of EncodingConfig for the specified model.

Parameters

model

The name of the model whose encoding scheme is to be used.

loader

The loader to be used for obtaining the encoding scheme.