Error while converting BigBirdPegasus tensorflow checkpoints into pytorch model using "convert_bigbird_pegasus_tf_to_pytorch.py"
Hi,

I want to covert TensorFlow checkpoints generated from training a BigbirdPegasus model for the summarization task into a PyTorch model using the prepared script for it (i.e., "convert_bigbird_pegasus_tf_to_pytorch.py") which is located in the following URL:
https://github.com/huggingface/transformers/tree/main/src/transformers/models/bigbird_pegasus/modeling_bigbird_pegasus.py

During conversion, I faced the following error:
Traceback (most recent call last):
  **File "convert_ckpt.py", line 212, in <module>
    convert_bigbird_pegasus_ckpt_to_pytorch(args.tf_ckpt_path, args.save_dir, config_update=config_update)
  File "convert_ckpt.py", line 202, in convert_bigbird_pegasus_ckpt_to_pytorch
    torch_model = convert_bigbird_pegasus(tf_weights, config_update)
  File "convert_ckpt.py", line 148, in convert_bigbird_pegasus
    raise ValueError(f"could not find new key {new_k} in state dict. (converted from {k})")
ValueError: could not find new key model.decoder.layernorm_embedding.bias.Adafactor in state dict. (converted from pegasus/decoder/LayerNorm/beta/Adafactor)**

Can anybody help me with solving this error?

Thanks in advance


This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the [contributing guidelines](https://github.com/huggingface/transformers/blob/main/CONTRIBUTING.md) are likely to be ignored.