Open sukritij29 opened 11 months ago
I meet the same issue there; did you find a way to solve it?
I meet the same issue... Did anyone else solve?
I met the same issue , have you solve it ? also I'm getting this error in the same pruner step :
TypeError: TransformersEvaluator._init_optimizer_helpers.
Describe the issue:
Environment:
Configuration:
Log message:
How to reproduce it?: just run the pruning_bert_glue tutorial
from nni.compression.pruning import MovementPruner from nni.compression.speedup import ModelSpeedup from nni.compression.utils.external.external_replacer import TransformersAttentionReplacer
def pruning_attn(): Path('./output/bert_finetuned/').mkdir(parents=True, exist_ok=True) model = build_finetuning_model(task_name, f'./output/bert_finetuned/{task_name}.bin') trainer = prepare_traced_trainer(model, task_name) evaluator = TransformersEvaluator(trainer)
if not skip_exec: pruning_attn()