ONNX Runtime JavaScript API
    Preparing search index...

    Interface LoraAdapterFactory

    interface LoraAdapterFactory {
        create(uri: string): Promise<LoraAdapter>;
        create(buffer: Uint8Array): Promise<LoraAdapter>;
    }
    Index

    Methods

    Methods

    • Create a new LoRA adapter and load it asynchronously from a LoRA adapter file.

      Parameters

      • uri: string

        The URI or file path of the LoRA adapter file to load.

      Returns Promise<LoraAdapter>

      A promise that resolves to a LoraAdapter object.

    • Create a new LoRA adapter and load it asynchronously from a Uint8Array.

      Parameters

      • buffer: Uint8Array

        A Uint8Array representation of a LoRA adapter file.

      Returns Promise<LoraAdapter>

      A promise that resolves to a LoraAdapter object.