# Probsparse Self-attention

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fprobsparse-self-attention%2F37806%3E%5C
**Category:** Beginners\
**Created:** [April 26, 2023, 2:29pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fprobsparse-self-attention%2F37806 "2023-04-26T14:29:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Helectuss](https://avatars.discourse-cdn.com/v4/letter/h/87869e/32.png) [@Helectuss](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FHelectuss)%5C
**Post date:** [April 26, 2023, 2:29pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fprobsparse-self-attention%2F37806%2F1 "2023-04-26T14:29:14Z")

</div>

Hello,  
I was reading this blog post [Multivariate Probabilistic Time Series Forecasting with Informer](https://huggingface.co/blog/informer).  
At the end of probsparse attention it says “Please be aware that this is only a partial implementation of the `probsparse_attention`, and the full implementation can be found in 🤗 Transformers.”  
I cant seem to find the full implementation code in Transformers. Anyone can help me?

---

<div class="post-metadata">

**Author:** ![phimos](https://avatars.discourse-cdn.com/v4/letter/p/e68b1a/32.png) [@phimos](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fphimos)%5C
**Post date:** [May 14, 2025, 2:05am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fprobsparse-self-attention%2F37806%2F2 "2025-05-14T02:05:25Z")

</div>

You can find it here:

> <https://github.com/huggingface/transformers/blob/b311a3f50697c9602cc5d13a5faf7f6059c392ca/src/transformers/models/informer/modeling_informer.py#L432>
