microsoft / nni

An open source AutoML toolkit for automate machine learning lifecycle, including feature engineering, neural architecture search, model compression and hyper-parameter tuning.
https://nni.readthedocs.io
MIT License
13.88k stars 1.81k forks source link

dispather comand:globals.args.pythonInterpreter, '-m', 'nni', '--exp_params', 占用内存太多 #5740

Closed yjjinjie closed 5 months ago

yjjinjie commented 5 months ago

Describe the issue:

image

Environment:

Configuration:

Log message:

How to reproduce it?:

yjjinjie commented 5 months ago

1)/python -m nni --exp_params 该进程会从2G->66G->98G;

2)出现时机在生成新参数的时候

3)发现是search space设置的空间太大

内存OOM:"${seed}": {"_type": "randint","_value": [1, 4294967290] },

内存正常:"${seed}": {"_type": "randint","_value": [1, 100] },

内存正常:"${seed}": {"_type": "randint","_value": [4294967280, 4294967290] },