LoRA Adapters¶
LoRA settings load adapter checkpoints for supported model families. They are used by both offline inference and benchmark/server entry points.
Arguments¶
Key |
How to set it |
What it does |
|---|---|---|
|
Set |
Enables LoRA adapter loading. |
|
Point to the adapter checkpoint directory. Required when |
Provides the adapter weights. |
|
Set |
Avoids per-forward adapter compute when merging is supported. |
Surface |
Flags |
Notes |
|---|---|---|
Server CLI |
|
Use these when serving with an adapter. |
Benchmark CLI |
|
Use these when evaluating an adapter-backed model. |
Pre Merge Lora¶
Pre-merge avoids per-forward adapter compute when the adapter and base model can be safely merged. Use it for normal inference after confirming the LoRA path matches the base model. Disable it while debugging adapter loading issues.
Validation¶
If use_lora=True and no lora_path is provided, config construction fails.
If the path does not exist, Diffulex logs a warning.