Views
No views yet
r1, r2, and r determine the shape and number of Kronecker components.1git clone https://github.com/rainstonee/CDKA.git
2cd CDKA1conda create -n cdka python=3.10 -y
2conda activate cdka1pip install --upgrade pip
2pip install -r requirements.txtpeft.zip. The custom PEFT version is required because CDKA extends the standard LoRA configuration with Kronecker-adapter-specific arguments such as r1, r2, and r.1unzip peft.zip
2pip install -e peftbash run.shmeta_math dataset with PEFT enabled and Kronecker adapter hyperparameters specified through Hydra overrides.1CUDA_VISIBLE_DEVICES=0 python run_exp.py \
2 +model=llama \
3 +peft=all \
4 +init=default \
5 +dataset_name=meta_math \
6 +seed=333 \
7 ++peft.lora_r1=2 \
8 ++peft.lora_r2=2 \
9 ++peft.lora_r=8 \
10 ++peft.lora_alpha=641++peft.lora_r1=2 \
2++peft.lora_r2=8 \
3++peft.lora_r=4 \
4++peft.lora_alpha=64r1, a large r2, and a moderate number of Kronecker components r. In practice, this provides a balanced default configuration before task-specific tuning.1@article{bai2026diving,
2 title={Diving into Kronecker Adapters: Component Design Matters},
3 author={Bai, Jiayu and Yu, Danchen and Liao, Zhenyu and Hou, TianQi and Zhou, Feng and Qiu, Robert C and Ling, Zenan},
4 journal={arXiv preprint arXiv:2602.01267},
5 year={2026}
6}