# \[Bart\] Bart model families' embedding shape?

**URL:** <https://discuss.huggingface.co/t/bart-bart-model-families-embedding-shape/39750>\
**Category:** Beginners\
**Created:** [May 13, 2023, 1:08pm UTC](https://discuss.huggingface.co/t/bart-bart-model-families-embedding-shape/39750 "2023-05-13T13:08:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![com3dian](https://avatars.discourse-cdn.com/v4/letter/c/e99b99/32.png) [@com3dian](https://discuss.huggingface.co/u/com3dian)\
**Post date:** [May 13, 2023, 1:08pm UTC](https://discuss.huggingface.co/t/bart-bart-model-families-embedding-shape/39750/1 "2023-05-13T13:08:17Z")

</div>

Hi I’m implementing a finetuned Bart model for summarization, therefore I’m making decisions between using the ‘facebook/bart-large’ or the ‘facebook/bart-large-cnn’. But when I look into the layers in both models, I found the shapes of their embedding layers are different, is this a special trick?

Code to repeat

```python
from transformers import BartTokenizer, BartModel, BartForConditionalGeneration
BARTmodel = BartModel.from_pretrained('facebook/bart-large')
CGmodel = BartForConditionalGeneration.from_pretrained('facebook/bart-large-cnn')
BARTmodel.shared
-----------
Embedding(50265, 1024, padding_idx=1)

```

```python
CGmodel.model.shared
-----------
Embedding(50264, 1024, padding_idx=1)

```
