# Failing to start a ChatUI with a model

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ffailing-to-start-a-chatui-with-a-model%2F61072%3E%5C
**Category:** Beginners\
**Created:** [November 4, 2023, 8:29pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ffailing-to-start-a-chatui-with-a-model%2F61072 "2023-11-04T20:29:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tomernaveh](https://avatars.discourse-cdn.com/v4/letter/t/a88e4f/32.png) [@tomernaveh](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Ftomernaveh)%5C
**Post date:** [November 4, 2023, 8:29pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ffailing-to-start-a-chatui-with-a-model%2F61072%2F1 "2023-11-04T20:29:32Z")

</div>

I’m trying to use autotrain to fine-tune a llama 2 7b base model. I’m trying to use the ChatUI module to use my trained model and it fails. To narrow the issue I tried to use the same ChatUI space with the original base llama-2-7b model but got the same error so it looks like the issue is with the ChatUI config not the fine-tuning part. Here’s the error I’m getting when ChatUI it built:

Traceback (most recent call last):

File “/opt/conda/lib/python3.9/site-packages/huggingface\_hub/utils/\_errors.py”, line 261, in hf\_raise\_for\_status  
response.raise\_for\_status()

File “/opt/conda/lib/python3.9/site-packages/requests/models.py”, line 1021, in raise\_for\_status  
raise HTTPError(http\_error\_msg, response=self)

requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: [https://huggingface.co/api/models/meta-llama/Llama-2-7b-hf](https://huggingface.co/api/models/meta-llama/Llama-2-7b-hf)

Note that I do have access to the llama 2 model.  
Any help will be much appreciated.
