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

LoRAType

LoRAType​

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

source

Bases: Enum

Enumeration for LoRA Types.

A​

A = 'lora_A'

source

Represents the LoRA A matrix (high rank tensor to low rank tensor).

B​

B = 'lora_B'

source

Represents the LoRA B matrix. (low rank tensor to high rank tensor)

BIAS​

BIAS = 'lora.bias'

source

Represents the LoRA bias matrix. (added to matrix B)

B_KV​

B_KV = 'lora_B_kv'

source

Represents the combined K and V LoRA B matrices for QKV fusion.