IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /max/get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /max/get-started.md).

Python class

LoRARequest

LoRARequest​

class max.pipelines.lora.LoRARequest(operation, lora_name, lora_path=None)

source

Bases: Struct

Container for LoRA adapter requests.

Parameters:

lora_name​

lora_name: str

source

The unique name identifying the LoRA adapter.

lora_path​

lora_path: str | None

source

The filesystem path to the LoRA adapter weights. Required for load operations.

operation​

operation: LoRAOperation

source

The type of LoRA operation to perform (load or unload).