- python >= 3.9
- mindspore >= 2.5.0
To test the optimizer, follow these steps using the CIFAR-10 dataset:
- Download the CIFAR-10 binary dataset and unzip it with the following command:
wget -c https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/notebook/datasets/cifar-10-binary.tar.gz -P tests/data/ && tar xzf tests/data/cifar-10-binary.tar.gz -C tests/data/
- Install
mindcv >= 0.3.0
by
pip install mindcv
- Start training by running:
PYTHONPATH=$(pwd):$PYTHONPATH python tests/train.py -n adafactor
During training, the results will be displayed in the terminal, and an additional loss curve plot named loss.jpg
will be saved.