# LED Config default encoder and decoder layers

**URL:** <https://discuss.huggingface.co/t/led-config-default-encoder-and-decoder-layers/61621>\
**Category:** 🤗Transformers\
**Created:** [November 9, 2023, 8:29am UTC](https://discuss.huggingface.co/t/led-config-default-encoder-and-decoder-layers/61621 "2023-11-09T08:29:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ViljamiR](https://avatars.discourse-cdn.com/v4/letter/v/b5e925/32.png) [@ViljamiR](https://discuss.huggingface.co/u/ViljamiR)\
**Post date:** [November 9, 2023, 8:29am UTC](https://discuss.huggingface.co/t/led-config-default-encoder-and-decoder-layers/61621/1 "2023-11-09T08:29:00Z")

</div>

In the `transformers.LEDConfig` documentation it is stated that:

> This is the configuration class to store the configuration of a [LEDModel](https://huggingface.co/docs/transformers/v4.35.0/en/model_doc/led#transformers.LEDModel). It is used to instantiate an LED model according to the specified arguments, defining the model architecture. Instantiating a configuration with the defaults will yield a similar configuration to that of the LED [allenai/led-base-16384] architecture.

In `transformers.LEDConfig` both the encoder and decoder have 12 layers and that should result in LED base model configuration. On the contrary, in the original paper ([https://arxiv.org/pdf/2004.05150.pdf](https://arxiv.org/pdf/2004.05150.pdf)), the LED base model has 6 layers in both encoder and decoder.

Is this a specific design choice or am I missing something? 🤔
