Skip to content
data

LoftQConfig

LoftQConfig(loftq_bits: int = 4, loftq_iter: int = 1)

Configuration stub for LoftQ quantisation-aware LoRA initialisation.

Kept for signature parity with the reference adapter library; passing a non-empty loftq_config or init_lora_weights="loftq" to LoraConfig raises NotImplementedError until 4-bit quantised LoRA layers land (LCD-717).

Parameters

loftq_bitsint= 4
Quantisation bit-width for LoftQ.
loftq_iterint= 1
Number of alternating quantisation / SVD iterations.

Examples

>>> from lucid.peft import LoftQConfig
>>> cfg = LoftQConfig(loftq_bits=4, loftq_iter=1)
>>> cfg.loftq_bits, cfg.loftq_iter
(4, 1)

Used by 1