ONNX Runtime JavaScript API
    Preparing search index...

    Interface LoraAdapter

    Represent a LoRA adapter loaded from a file in the ONNX Runtime LoRA adapter format (.onnx_adapter).

    An adapter is independent of any inference session. It can be activated for a single run by passing it in InferenceSession.RunOptions.activeLoraAdapters.

    This feature is available only in WebAssembly backend, and is not supported yet in proxy mode (env.wasm.proxy). See InferenceSession.RunOptions.activeLoraAdapters for other limitations.

    interface LoraAdapter {
        release(): Promise<void>;
    }
    Index

    Methods

    Methods

    • Release the LoRA adapter and the underlying resources.

      The adapter must not be released while a run that uses it is still in progress.

      Returns Promise<void>