# How to use GPT4 with trl PPO script

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-to-use-gpt4-with-trl-ppo-script%2F88974%3E%5C
**Category:** Intermediate\
**Created:** [May 28, 2024, 12:51pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-to-use-gpt4-with-trl-ppo-script%2F88974 "2024-05-28T12:51:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ebruk](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/ebruk/32/27504_2.png) [@ebruk](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Februk)%5C
**Post date:** [May 28, 2024, 12:51pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-to-use-gpt4-with-trl-ppo-script%2F88974%2F1 "2024-05-28T12:51:42Z")

</div>

I want to use the GPT4 model with this script: [trl/examples/scripts/ppo.py at main · huggingface/trl · GitHub](https://github.com/huggingface/trl/blob/main/examples/scripts/ppo.py). However, I could not add GPT models to the pipeline as a reward model from outside of hugging face models.
