Skip to content
IBMPublic

About

Code for the SpaRTA paper

Resources

Security policy

Stars

1 star

Watchers

4 watching

Forks

Latest commit

 

History

25 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sparse Random parameTer Adaptation (SpaRTA)

This repo contains the code of our paper Sparsity May Be All You Need: Sparse Random Parameter Adaptation.

Overview

SpaRTA is a new PEFT technique for adapting LLMs to domain-specific tasks that makes the resulting adapters easy to merge.

  • It works by randomly choosing a very small number of scalar parameters to be updated during training, resulting in real memory saving and faster training

  • It performs competitively with LoRA

  • It allows for easier merging by minimizing parameter interference

Installation

Clone the repository:

git clone https://github.com/IBM/SpaRTA.git

Create a new environment named sparta (recommended) with all the necessary dependencies:

conda env create -f environment.yml

Alternatively, you can install the necessary dependencies in an existing environment:

pip install -r requirements.txt

Usage

conda activate sparta
python SpaRTA/sparta/classification.py --help

Citation

@article{rios2025sparsity,
  title={Sparsity may be all you need: Sparse random parameter adaptation},
  author={Rios, Jesus and Dognin, Pierre and Luss, Ronny and Ramamurthy, Karthikeyan N},
  journal={arXiv preprint arXiv:2502.15975},
  year={2025}
}

About

Code for the SpaRTA paper

Resources

Security policy

Stars

1 star

Watchers

4 watching

Forks

Releases

Packages

Used by

Contributors

Languages