Smaller adapters. Explicit control.#

Apply spectral compression to PEFT LoRA factors and export physically compact files while preserving adapter scaling.
Allocate retained directions or caller-supplied quality curves with deterministic CPU planners. No GPU needed.
Connect SGLang and explore packaged NF4/GDN experiments with clear version, initialization, and hardware boundaries.
Start with one adapter#
Install matching GPU dependencies, then compress a local adapter:
from loraforge.adapters import compress_peft_adapter
result = compress_peft_adapter(
"adapter-original",
"adapter-r4",
keep=4,
device="cuda:0",
)
FlashTSQR is the default compression backend. The output directory is new; input files stay unchanged. Compression quality depends on the adapter and retained rank: measure it on your task before deployment.
Find your path#
Goal |
Start here |
|---|---|
Install the library and choose dependencies |
|
Run a CPU planner or compress PEFT files |
|
Understand tensor ownership and scaling |
|
Inspect signatures and experimental status |
|
Evaluate the recorded measurements |
|
Contribute or build this site |