Metadata-Version: 2.1
Name: benchENAS
Version: 1.0.1
Summary: A method of benchmark
Home-page: https://github.com/pypa/sampleproject
Author: xiaoyang
Author-email: yangx9810@163.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
License-File: LICENSE

- The codes have been tested on Python 3.6 + pytorch 1.1 + torchvision 0.3.0 (pytorch 1.3 seems also ok, but not test thoroughly)



- #Requirements:

 - Center Computer:
   - redis (ubuntu software, start using the command redis-server --protected-mode on)
   - sshpass (python lib)

 - Conter Computer & workers:
   - multiprocess (python lib)
   - redis (python lib)
 
- # Parameter
- alg_list = {'algorithm': 'cnn_ga', 'max_gen': 20, 'pop_size': 30, 'log_server': '192.XX.XX.XX', 'log_server_port': 6379, 'exe_path': '/home/XX/anaconda3/bin/python3'}

- train_list = {'dataset': 'CIFAR10', 'optimizer': 'SGD', 'lr': 0.025, 'batch_size': 64, 'total_epoch': 50, 'lr_strategy': 'ExponentialLR'}

- gpu_info_list = {}
- content = {'worker_ip': '192.XX.XX.XX', 'worker_name': 'cuda', 'ssh_name': 'XX', 'ssh_password': 'XXXXXX', 'gpu': [0, 1]}
- gpu_info_list['192.168.50.202'] = content

- # How to use
- Start the redis-server on the center computer (redis-server --protected-mode no)
- Start the init_compute.py script to start the compute platform with parameter[run(alg_list,  train_list,  gpu_info_list)]
- Start the algorithm you would like to perform with parameter[run(alg_list,  train_list,  gpu_info_list, search_space)] search_space default 'micro' 

