Skip to main content

Python class

LoRAType

LoRAType

class max.interfaces.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.