Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Eject docker usages in NAS benchmarks #2645

Merged
merged 6 commits into from
Jul 7, 2020

Conversation

ultmaster
Copy link
Contributor

@ultmaster ultmaster commented Jul 6, 2020

@JunweiSUN will do the documentation. #2647

@ultmaster ultmaster requested a review from JunweiSUN July 7, 2020 04:01
Comment on lines 3 to 8
echo "Downloading NAS-Bench-101..."
wget https://storage.googleapis.com/nasbench/nasbench_full.tfrecord

echo "Generating database..."
rm -f /outputs/nasbench101.db /outputs/nasbench101.db-journal
NASBENCHMARK_DIR=/outputs python -m nni.nas.benchmarks.nasbench101.db_gen nasbench_full.tfrecord
rm -f ${NASBENCHMARK_DIR}/nasbench101.db ${NASBENCHMARK_DIR}/nasbench101.db-journal
python -m nni.nas.benchmarks.nasbench101.db_gen nasbench_full.tfrecord
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wget -P ${NASBENCHMARK_DIR} https://storage.googleapis.com/nasbench/nasbench_full.tfrecord 
python -m nni.nas.benchmarks.nasbench101.db_gen ${NASBENCHMARK_DIR}/nasbench_full.tfrecord

Would this be better since someone may run this script in other directory instead of examples/nas/benchmarks?

BTW, should we check if ${NASBENCHMARK_DIR} is empty and if so specific ${NASBENCHMARK_DIR} to ~/.nni/nasbenchmark at the beginning of this script and generate this directory?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can mkdir if it does not exist.

The tfrecord will not be used any more after generation. I should delete them right after the generation. And I'm against saving temporary files under NASBENCHMARK_DIR.

Comment on lines 3 to 8
echo "Downloading NAS-Bench-201..."
gdown https://drive.google.com/uc\?id\=1OOfVPpt-lA4u2HJrXbgrRd42IbfvJMyE -O a.pth

echo "Generating database..."
rm -f /outputs/nasbench201.db /outputs/nasbench201.db-journal
NASBENCHMARK_DIR=/outputs python -m nni.nas.benchmarks.nasbench201.db_gen a.pth
rm -f ${NASBENCHMARK_DIR}/nasbench201.db ${NASBENCHMARK_DIR}/nasbench201.db-journal
python -m nni.nas.benchmarks.nasbench201.db_gen a.pth
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here.

gdown https://drive.google.com/uc\?id\=1OOfVPpt-lA4u2HJrXbgrRd42IbfvJMyE -O ${NASBENCHMARK_DIR}/a.pth
python -m nni.nas.benchmarks.nasbench201.db_gen ${NASBENCHMARK_DIR}/a.pth

Comment on lines 4 to 9
wget https://dl.fbaipublicfiles.com/nds/data.zip -O data.zip
unzip data.zip

echo "Generating database..."
rm -f /outputs/nds.db /outputs/nds.db-journal
NASBENCHMARK_DIR=/outputs python -m nni.nas.benchmarks.nds.db_gen nds_data
rm -f ${NASBENCHMARK_DIR}/nds.db ${NASBENCHMARK_DIR}/nds.db-journal
python -m nni.nas.benchmarks.nds.db_gen nds_data
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here.

@JunweiSUN
Copy link
Contributor

change documentation PR to #2651

@chicm-ms chicm-ms merged commit fe6111d into microsoft:v1.7 Jul 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants