Missing weight in pretrained model `pegasus-xsum`
## Environment info
<!-- You can run the command `transformers-cli env` and copy-and-paste its output below.
     Don't forget to fill out the missing fields in that output! -->

- `transformers` version: 4.9.2
- Platform: Linux
- Python version: 3.9.6
- PyTorch version (GPU?): 1.9.0 with GPU
- Tensorflow version (GPU?):
- Using GPU in script?: Yes
- Using distributed or parallel set-up in script?: No

### Who can help
<!-- Your issue will be replied to more quickly if you can figure out the right person to tag with @
 If you know how to use git blame, that is the easiest way, otherwise, here is a rough guide of **who to tag**.
 Please tag fewer than 3 people.

Models:

- albert, bert, xlm: @LysandreJik
- blenderbot, bart, marian, pegasus, encoderdecoder,  t5: @patrickvonplaten, @patil-suraj
- longformer, reformer, transfoxl, xlnet: @patrickvonplaten
- fsmt: @stas00
- funnel: @sgugger
- gpt2: @patrickvonplaten, @LysandreJik
- rag: @patrickvonplaten, @lhoestq
- tensorflow: @Rocketknight1

Library:

- benchmarks: @patrickvonplaten
- deepspeed: @stas00
- ray/raytune: @richardliaw, @amogkam
- text generation: @patrickvonplaten
- tokenizers: @LysandreJik
- trainer: @sgugger
- pipelines: @LysandreJik

Documentation: @sgugger

Model hub:

- for issues with a model report at https://discuss.huggingface.co/ and tag the model's creator.

HF projects:

- datasets: [different repo](https://github.com/huggingface/datasets)
- rust tokenizers: [different repo](https://github.com/huggingface/tokenizers)

Examples:

- maintained examples (not research project or legacy): @sgugger, @patil-suraj
- research_projects/bert-loses-patience: @JetRunner
- research_projects/distillation: @VictorSanh

 -->

@patrickvonplaten

## Information

I am using the PegasusForConditionalGeneration model. I found that the pretrained weight `google/pegasus-xsum` hosted by HuggingFace does not have the weight `lm_head.weight` defined here: https://github.com/huggingface/transformers/blob/master/src/transformers/models/pegasus/modeling_pegasus.py#L1210.

## To reproduce

Steps to reproduce the behavior:

1. Download the `google/pegasus-xsum` weight from HuggingFace.
2. Load it use `torch.load`.
3. List its keys, no `lm_head.weight` is contained!

<!-- If you have code snippets, error messages, stack traces please provide them here as well.
     Important! Use code tags to correctly format your code. See https://help.github.com/en/github/writing-on-github/creating-and-highlighting-code-blocks#syntax-highlighting
     Do not use screenshots, as they are hard to read and (more importantly) don't allow others to copy-and-paste your code.-->

## Expected behavior

<!-- A clear and concise description of what you would expect to happen. -->

We should have the `lm_head` weights, because the weight file actually contains the bias `final_logits_bias` defined here: https://github.com/huggingface/transformers/blob/master/src/transformers/models/pegasus/modeling_pegasus.py#L1209. And the pretrained model name `google/pegasus-xsum` suggests that it is finetuned on the XSum dataset (which is a ConditionalGeneration task), so the weight for `lm_head` should be contained to make the finetuned model complete!

I just tested this, it works fine for me, `lm_head` is included. Colab notebook here: https://colab.research.google.com/drive/1oCrC3Tb07C7V1l-0Fx6_c8xdEbyqx9Km?usp=sharing

It's best to use `.from_pretrained` instead of `torch.load`.<|||||>A lot of thanks for your reply! :^)

I just figured out that the `lm_head.weight` actually maps the internal embeddings back to word predictions, whose weights will be tied to the input word embeddings! So the lm_head's weight will definitely not be included in the pretrained weight file. I did not realize this due to my lack of knowledge about NLP models :^(. Thanks again for your time!