Official implementation of the paper: Efficient Backpropagation with Variance Controlled Adaptive Sampling accepted by ICLR 2024.
VCAS is an efficient unbiased sampling method to accelerate back propagation (BP). It can achieve an up to 73.87% FLOPs reduction of BP with lossless performance under theoretical guarantee. Example Results.
Requirements: Python >= 3.7 + CUDA >= 11.0 + torch >= 1.12.0 + transformers >= 4.21.0
To install VCAS only, run the following:
pip install -v -e .To further run the examples, run the following :
< 7B91 div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="conda create -n vcas python=3.9 conda activate vcas pip install -r requirements.txt # install dependencies pip install -v -e . # install vcas">conda create -n vcas python=3.9 conda activate vcas pip install -r requirements.txt # install dependencies pip install -v -e . # install vcas