Python class
LoRAType
LoRAType
class max.interfaces.LoRAType(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)
Bases: Enum
Enumeration for LoRA Types.
A
A = 'lora_A'
Represents the LoRA A matrix (high rank tensor to low rank tensor).
B
B = 'lora_B'
Represents the LoRA B matrix. (low rank tensor to high rank tensor)
BIAS
BIAS = 'lora.bias'
Represents the LoRA bias matrix. (added to matrix B)
B_KV
B_KV = 'lora_B_kv'
Represents the combined K and V LoRA B matrices for QKV fusion.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!