Options for configuring the model asset and hardware accelerator.
Signature:
export declare interface UniversalEmbedderBaseOptions
Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
| modelAssetBuffer | Uint8Array | ReadableStreamDefaultReader | The model asset buffer containing the .litertlm file. | |
| modelAssetPath | string | string | The path to the model asset file. | |
| device | GPUDevice | An optional pre-created GPUDevice to use for GPU inference. |
UniversalEmbedderBaseOptions.modelAssetBuffer
The model asset buffer containing the .litertlm file.
Signature:
modelAssetBuffer?: Uint8Array | ReadableStreamDefaultReader;
UniversalEmbedderBaseOptions.modelAssetPath
The path to the model asset file.
Signature:
modelAssetPath?: string | string;
UniversalEmbedderBaseOptions.device
An optional pre-created GPUDevice to use for GPU inference.
Signature:
device?: GPUDevice;