Skip to main content

Python class

LoRAStatus

LoRAStatus

class max.interfaces.LoRAStatus(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)

source

Bases: Enum

Enum for LoRA operation status.

LOAD_ERROR

LOAD_ERROR = 'load_error'

source

An error occurred while loading the LoRA adapter.

LOAD_INVALID_ADAPTER

LOAD_INVALID_ADAPTER = 'load_invalid_adapter'

source

The LoRA adapter at the specified path is malformed or incompatible.

LOAD_INVALID_PATH

LOAD_INVALID_PATH = 'load_invalid_path'

source

The path provided for the LoRA adapter is invalid or does not exist.

LOAD_NAME_EXISTS

LOAD_NAME_EXISTS = 'load_name_exists'

source

A LoRA adapter with the requested name is already loaded.

SUCCESS

SUCCESS = 'success'

source

The LoRA operation completed successfully.

UNLOAD_ERROR

UNLOAD_ERROR = 'unload_error'

source

An error occurred while unloading the LoRA adapter.

UNLOAD_NAME_NONEXISTENT

UNLOAD_NAME_NONEXISTENT = 'unload_name_nonexistent'

source

No LoRA adapter with the requested name is currently loaded.

UNSPECIFIED_ERROR

UNSPECIFIED_ERROR = 'unspecified_error'

source

An unexpected error occurred during the LoRA operation.