Source link to `LlamaForSequenceClassification` seems broken, if so, update it.
Author: Vasudeva-bit
Pull request: no
Labels: name: Documentation

**Bug description.**
The source link to `LlamaForSequenceClassification` seems broken. The current link is [this](https://github.com/huggingface/transformers/blob/v4.41.3/src/transformers/models/llama/modeling_llama.py#L1299) in the [docs](https://huggingface.co/docs/transformers/model_doc/llama#transformers.LlamaForSequenceClassification). If so, kindly update it to [this](https://github.com/huggingface/transformers/blob/main/src/transformers/models/llama/modeling_llama.py).


**Describe the expected behaviour**
It should take the user to the right active GitHub page/file upon updating.


Comments:
It looks like there's no tag for `v4.41.3`, maybe cc @ydshieh, @stevhliu 

Hi @Vasudeva-bit, thanks for raising this issue! 

@pcuenca Yes, there's an issue where the docs seem to point to a v4.41.3 release which doesn't exist. I think there might also be something wider happening with the docs builds. Sharing some observations that I posted internally regarding this: 

OK, I think it’s something more generally about the build of the docs. It’s true that we weirdly have v4.41.3 shown as the last stable release on the docs. However, there’s also some weird indexing issues.

For example, we can explicitly go to earlier v4.41 versions of the model doc to view different behaviour
**Llama**
* v4.41.0 & v4.41.1
    * Renders successfully
    * https://huggingface.co/docs/transformers/v4.41.0/en/model_doc/llama#overview
* v4.41.2 & v4.41.3
    * Not all objects properly indexed or headers rendered on the page
    * https://huggingface.co/docs/transformers/v4.41.2/en/model_doc/llama#overview 
* main
    * Renders correctly again
    * https://huggingface.co/docs/transformers/main/en/model_doc/llama#overview
* v4.40.2 - previous minor version release
    * Renders correctly
    * https://huggingface.co/docs/transformers/v4.40.2/en/model_doc/llama

The only commit on llama.md between v4.40.2 and main is:
* https://github.com/huggingface/transformers/commit/07bf2dff78dce04314447efe46ccb70480374daf
* Not included in any of the v4.41.x releases so doesn’t explain difference between v4.41.1 and v4.41.2

Some models will successfully render on the “v4.41.3” docs without issue
**DETR**
* https://huggingface.co/docs/transformers/v4.41.3/en/model_doc/detr#transformers.DetrModel

Some models are broken both on v4.41.3 AND on the development version of the docs
**IDEFICS**
* v4.41.3: https://huggingface.co/docs/transformers/v4.41.3/en/model_doc/idefics
* main: https://huggingface.co/docs/transformers/main/en/model_doc/idefics

Some models work on v4.41.3 and are broken on main
**BLIP-2**
* v4.41.3: https://huggingface.co/docs/transformers/v4.41.3/en/model_doc/blip-2
* main: https://huggingface.co/docs/transformers/main/en/model_doc/blip-2

Some models the headers render correctly on the page e.g. not ## ClassName[[transformers.ClassName]] but are not indexed on the sidebar AND is also broken on v4.40.2
**Mamba**
* v4.41.3: https://huggingface.co/docs/transformers/v4.41.3/en/model_doc/mamba
* main: https://huggingface.co/docs/transformers/main/en/model_doc/mamba
* v4.40.2: https://huggingface.co/docs/transformers/v4.40.2/en/model_doc/mamba

cc @mishig25 @stevhliu As the doc build itself is outside my wheelhouse :) 

The incorrectly rendered headers should be fixed in https://github.com/huggingface/doc-builder/pull/512 by @mishig25 👏 

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.

Closing as the issue was resolved