huggingface / huggingface/chat-ui

ChatUI on HuggingFace Spaces errors out with PermissionError: [Errno 13] Permission denied

Open
#511 3 comments 0 reactions 0 assignees View on GitHub
spaces support
Dominant language
TypeScript
Stars
11k
Forks
1.7k
Avg merge
21h 24m
Merged PRs (30d)
56

Description

When I try following the below two tutorials I hit the same error, where the container code tries to create a directory and fails due to permission issues on the host

tutorials:
1. https://huggingface.co/docs/hub/spaces-sdks-docker-chatui#chatui-on-spaces
2. https://huggingface.co/blog/Llama2-for-non-engineers

Note: I have set the env vars `HUGGING_FACE_HUB_TOKEN` and in a prior attempt `HF_TOKEN` as well.

Screenshot 2023-10-16 at 1 25 04 AM

stack trace on hugging face space
```
Traceback (most recent call last):

File "/opt/conda/bin/text-generation-server", line 8, in
sys.exit(app())

File "/opt/conda/lib/python3.9/site-packages/text_generation_server/cli.py", line 131, in download_weights
utils.download_and_unload_peft(

File "/opt/conda/lib/python3.9/site-packages/text_generation_server/utils/peft.py", line 38, in download_and_unload_peft
os.makedirs(model_id, exist_ok=True)

File "/opt/conda/lib/python3.9/os.py", line 215, in makedirs
makedirs(head, exist_ok=exist_ok)

File "/opt/conda/lib/python3.9/os.py", line 225, in makedirs
mkdir(name, mode)

PermissionError: [Errno 13] Permission denied: 'skrelan'
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.