-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ValueError: ExperimentConfig: type of experiment_name (None) is not typing.Optional[str] #5468
Comments
Hello, |
Thank you beta1scat,It works |
I met this error, too. Why does this happen? |
Hello,you can try "pip install typeguard==2.13" |
Describe the issue:
Hello,Following the document and guide of NNI in a new computer, I tried to start the HPO Quickstart with Pytorch Document Link,I followed the steps and then at the step of "experiment.run(8080)",it occured the error"ValueErr
or: ExperimentConfig: type of experiment_name (None) is not typing.Optional[str]"
![20230321221536](https://user-images.githubusercontent.com/4904955/226643049-0537c3c6-2e0e-462b-b87e-c3304f720e5e.png)
The full error output is as followed:
I have tried it in varites of running envrionment but the error occured as well.So I am not sure that there is some essential step that not mentioned in the doc , or some issues of NNI.
I also tried the method with nnictl Document Link,When I used the demand " nnictl create --config config.yml --port 8080"(Both for my config files and the nni example config),it could occur the error that :
Even I tried the other trial project or the command "nnictl hello",these also happened.But the command like "nnictl --version" runs normally.
Environment:
Configuration:
from nni.experiment import Experiment
experiment = Experiment('local')
search_space = {
#'features': {'_type': 'choice', '_value': [128, 256, 512, 1024]},
'lr': {'_type': 'loguniform', '_value': [1e-4, 1e-3]},
#'momentum': {'_type': 'uniform', '_value': [0, 1]},
'num_epochs': {'_type': 'choice', '_value': [3, 4, 5]},
'eps': {'_type': 'uniform', '_value': [1e-8, 1e-7]},
}
experiment.config.trial_command = 'python model.py'
experiment.config.trial_code_directory = '.'
experiment.config.tuner.name = 'TPE'
experiment.config.tuner.class_args['optimize_mode'] = 'maximize'
experiment.config.max_trial_number = 10
experiment.config.trial_concurrency = 2
max_experiment_duration = '1h'
experiment.run(8080)
Log message:
How to reproduce it?:
Following the two Documents mentions above in the new computer, then these would be reproduced.
The text was updated successfully, but these errors were encountered: