# Problems to push a trained model to the hub

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fproblems-to-push-a-trained-model-to-the-hub%2F71473%3E%5C
**Category:** Beginners\
**Created:** [February 1, 2024, 1:03pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fproblems-to-push-a-trained-model-to-the-hub%2F71473 "2024-02-01T13:03:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ergh0](https://avatars.discourse-cdn.com/v4/letter/e/f05b48/32.png) [@ergh0](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fergh0)%5C
**Post date:** [February 1, 2024, 1:03pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fproblems-to-push-a-trained-model-to-the-hub%2F71473%2F1 "2024-02-01T13:03:02Z")

</div>

Hi,

I’ve started to work through huggingFaces rl cource and I’m in unit1. So far everything worked fine but I have trouble to push my model to the hub. At the line

`import gymnasium as gym  
from stable\_baselines3.common.vec\_env import DummyVecEnv  
from stable\_baselines3.common.env\_util import make\_vec\_env

from huggingface\_sb3 import package\_to\_hub

## TODO: Define a repo\_id

## repo\_id is the id of the model repository from the Hugging Face Hub (repo\_id = {organization}/{repo\_name} for instance ThomasSimonini/ppo-LunarLander-v2

repo\_id = ergh0/ppo-LunarLander-v2

repo\_id = ergh0/ppo-LunarLander-v2

I get the error message NameError: name ‘ergh0’ is not defined

It is my username on huggingFace and I’ve successfully added a token to the process. What is it that I’m doing wrong here?

---

<div class="post-metadata">

**Author:** ![ergh0](https://avatars.discourse-cdn.com/v4/letter/e/f05b48/32.png) [@ergh0](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fergh0)%5C
**Post date:** [February 1, 2024, 1:20pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fproblems-to-push-a-trained-model-to-the-hub%2F71473%2F2 "2024-02-01T13:20:55Z")

</div>

Solved it myself, forgot the quotes

repo\_id = “ergh0/ppo-LunarLander-v2”
