-
Notifications
You must be signed in to change notification settings - Fork 6
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
About evaluate and activate_subnet #21
Comments
Hi @shijian971, to better assist you, could you please provide a more complete version of your code? This will help us understand the details of your implementation. Additionally, before calling |
Thank you for your reply. python run_glue.py --task_name sst2 --model_name_or_path bert-base-uncased --do_eval --do_search --per_device_eval_batch_size 64 --max_seq_length 128 --lora --lora_weights lonas-bert-base-glue/lonas-bert-base-sst2 --nncf_config nncf_config/glue/nncf_lonas_bert_base_sst2.json --output_dir lonas-bert-base-glue/lonas-bert-base-sst2/results_12_9 |
@shijian971 Thanks for providing the code. After reviewing your code, the simplest fix to resolve the issue is to replace your custom from nncf.experimental.torch.nas.bootstrapNAS.elasticity.elasticity_dim import ElasticityDim The reason for this change is that the |
@Yuan0320 thanks,After debugging, it was found that the problem stemmed from the type of the config passed in. Currently, this problem has been solved. |
When I use the following code.
trainer.compression_ctrl.multi_elasticity_handler.activate_subnet_for_config(config)
validate_model_fn(trainer.model, eval_loader)
The results are the same during the evaluation regardless of different config.
The same issue will also occur when using the following code for evaluation.
How to solve the issue? or How to check if the activation of the subnet has been completed?
The text was updated successfully, but these errors were encountered: