donggcao18/any-ssr

0

stars

32

commits

Python

primary language

Sep 6, 2026

updated

README

【ICCV' 2025】Any-SSR: How Recursive Least Squares Works in Continual Learning of Large Language Model

Kai Tong, Kang Pan, Xiao Zhang, Erli Meng, Run He, Yawen Cui, Nuoyan Guo, Huiping Zhuang*

Introduction

This is the official implementation for Any-SSR Any-SSR: How Recursive Least Squares Works in Continual Learning of Large Language Model.

Overview

Environment

We recommend using the Anaconda to install the development environment.

git clone --depth=1 https://github.com/ZHUANGHP/Any-SSR.git

cd Any-SSR
conda create -n anyssr-olora python=3.11
conda activate anyssr-olora
pip install -r requirements.txt

pip uninstall torch
pip3 install torch --index-url https://download.pytorch.org/whl/cu128
FLASH_ATTENTION_SKIP_CUDA_BUILD=TRUE pip install flash-attn==2.7.2.post1 --no-build-isolation

Create .env file in the root directory. Fill in your Wandb API key:

bash
WANDB_API_KEY=your_api_key

Quick Start

Baselines

To use O-LoRA

mkdir logs/
bash scripts/train_OLoRA.sh 2>&1 | tee logs/train_OLoRA.log

To use LwF

mkdir logs/
bash scripts/train_LwF.sh 2>&1 | tee logs/train_Lwf.log

To use PP

mkdir logs/
bash scripts/train_PP.sh 2>&1 | tee logs/train_PP.log

From new branch called Analytic Continual Learning

This is the first LLM member from the continual learning branch: Analytic Continual Learning. We have published over 20 papers in this branch (check My Scholar)!

Cite our paper

If you find our paper or this repository useful, please kindly consider citing our paper.

@InProceedings{Tong_2025_ICCV,
    author    = {Tong, Kai and Pan, Kang and Zhang, Xiao and Meng, Erli and He, Run and Cui, Yawen and Guo, Nuoyan and Zhuang, Huiping},
    title     = {Any-SSR: How Recursive Least Squares Works in Continual Learning of Large Language Model},
    booktitle = {Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV)},
    month     = {October},
    year      = {2025},
    pages     = {3047-3057}
}

Contributors

donggcao18

20 commits

Kizooo1

6 commits

RHe502

2 commits

ZHUANGHP

2 commits

donggcao18/any-ssr

0

stars

32

commits

Python

primary language

Sep 6, 2026

updated

README

【ICCV' 2025】Any-SSR: How Recursive Least Squares Works in Continual Learning of Large Language Model

Kai Tong, Kang Pan, Xiao Zhang, Erli Meng, Run He, Yawen Cui, Nuoyan Guo, Huiping Zhuang*

Introduction

This is the official implementation for Any-SSR Any-SSR: How Recursive Least Squares Works in Continual Learning of Large Language Model.

Overview

Environment

We recommend using the Anaconda to install the development environment.

git clone --depth=1 https://github.com/ZHUANGHP/Any-SSR.git

cd Any-SSR
conda create -n anyssr-olora python=3.11
conda activate anyssr-olora
pip install -r requirements.txt

pip uninstall torch
pip3 install torch --index-url https://download.pytorch.org/whl/cu128
FLASH_ATTENTION_SKIP_CUDA_BUILD=TRUE pip install flash-attn==2.7.2.post1 --no-build-isolation

Create .env file in the root directory. Fill in your Wandb API key:

bash
WANDB_API_KEY=your_api_key

Quick Start

Baselines

To use O-LoRA

mkdir logs/
bash scripts/train_OLoRA.sh 2>&1 | tee logs/train_OLoRA.log

To use LwF

mkdir logs/
bash scripts/train_LwF.sh 2>&1 | tee logs/train_Lwf.log

To use PP

mkdir logs/
bash scripts/train_PP.sh 2>&1 | tee logs/train_PP.log

From new branch called Analytic Continual Learning

This is the first LLM member from the continual learning branch: Analytic Continual Learning. We have published over 20 papers in this branch (check My Scholar)!

Cite our paper

If you find our paper or this repository useful, please kindly consider citing our paper.

@InProceedings{Tong_2025_ICCV,
    author    = {Tong, Kai and Pan, Kang and Zhang, Xiao and Meng, Erli and He, Run and Cui, Yawen and Guo, Nuoyan and Zhuang, Huiping},
    title     = {Any-SSR: How Recursive Least Squares Works in Continual Learning of Large Language Model},
    booktitle = {Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV)},
    month     = {October},
    year      = {2025},
    pages     = {3047-3057}
}

Contributors

donggcao18

20 commits

Kizooo1

6 commits

RHe502

2 commits

ZHUANGHP

2 commits

Languages

Python

90.5%

Jupyter Notebook

6.7%

Shell

2.9%