# Trainer not defined

**URL:** <https://community.deeplearning.ai/t/trainer-not-defined/430000>\
**Category:** Finetuning Large Language Models\
**Created:** [August 28, 2023, 4:58am UTC](https://community.deeplearning.ai/t/trainer-not-defined/430000 "2023-08-28T04:58:52Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Adam\_Hjerpe](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@Adam\_Hjerpe](https://community.deeplearning.ai/u/Adam_Hjerpe)\
**Post date:** [August 28, 2023, 8:00pm UTC](https://community.deeplearning.ai/t/trainer-not-defined/430000/2 "2023-08-28T20:00:39Z")

</div>

The trainer class is imported from the utilities.py file. See this thread on how you can download the accompanied utilities.py file.

> [@GitHub Code](https://community.deeplearning.ai/t/github-code/427489/4):
>
> Hi @manju All codes for this course are in the notebooks files. Keep in mind that, if you are running the codes locally, you will have to install all required packages by yourself. [https://packaging.python.org/en/latest/tutorials/installing-packages/](https://packaging.python.org/en/latest/tutorials/installing-packages/) I hope this help best regards elirod

---

_[View the full topic](https://community.deeplearning.ai/t/trainer-not-defined/430000)._
