# LLM Course code errors

**URL:** <https://discuss.huggingface.co/t/llm-course-code-errors/173989>\
**Category:** 🤗Transformers\
**Created:** [March 4, 2026, 5:47am UTC](https://discuss.huggingface.co/t/llm-course-code-errors/173989 "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](https://discuss.huggingface.co/u/John6666)\
**Post date:** [March 4, 2026, 6:02am UTC](https://discuss.huggingface.co/t/llm-course-code-errors/173989/2 "2026-03-04T06:02:06Z")

</div>

[The error is caused by those pipelines being deprecated in Transformers v5](https://discuss.huggingface.co/t/issue-with-summarization-and-translation-pipeline/173919), 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](https://discuss.huggingface.co/t/llm-course-code-errors/173989)._
