| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 3 年前 | ||
| 3 年前 | ||
| 3 年前 | ||
| 1 年前 | ||
| 3 年前 | ||
| 3 年前 | ||
| 1 年前 | ||
| 2 年前 |
Example of fine-tuning ViT using random-LTD (https://arxiv.org/abs/2211.11586)
Install
pip install -r requirement.txt
You will also need to install updated DeepSpeed version (>=0.8.0), which contains the random-ltd library.
Key File: main_cifar.py & main_imagenet.py
-
main_cifar.py The python code is modified based on when do curricula work (https://github.com/google-research/understanding-curricula).
-
main_imagenet.py The python code is modified based on https://github.com/pytorch/examples/tree/main/imagenet
The key added feature for the above two files are our deepspeed and random-ltd.
Folders (config)
- config: This folder provides DeepSpeed configuration, including the schedules of sequence-length and the layers applied by random-ltd.
bash script
- run_cifar_random_ltd.sh/run_imagenet_random_ltd.sh This bash script contains jobs for training with random-ltd
- Run the job under the vit-finetuning directory:
DeepSpeedExamples/random_ltd/vit_finetuning$ . ./bash_script/run_cifar_random_ltd.sh
DeepSpeedExamples/random_ltd/vit_finetuning$ . ./bash_script/run_imagenet_random_ltd.sh
See more descriptions and results in our tutorial page.