# LLM Course code errors

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fllm-course-code-errors%2F173989%3E%5C
**Category:** 🤗Transformers\
**Created:** [March 4, 2026, 5:47am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fllm-course-code-errors%2F173989 "2026-03-04T05:47:05Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FJohn6666)%5C
**Post date:** [March 4, 2026, 6:02am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fllm-course-code-errors%2F173989%2F2 "2026-03-04T06:02:06Z")

</div>

[The error is caused by those pipelines being deprecated in Transformers v5](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fissue-with-summarization-and-translation-pipeline%2F173919)%2C so the simplest workaround is `!pip install “transformers<5”`.

If you need to rewrite it for v5-compatible code, it involves more steps…

Edit:  
I did typo…

```bash
!pip install "transformers<5"

```

---

_[View the full topic](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fllm-course-code-errors%2F173989)._
