-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Eject docker usages in NAS benchmarks #2645
Conversation
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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
.
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 |
There was a problem hiding this comment.
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
examples/nas/benchmarks/nds.sh
Outdated
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here.
change documentation PR to #2651 |
@JunweiSUN will do the documentation. #2647