# Unable to run space locally or duplicate

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Funable-to-run-space-locally-or-duplicate%2F159987%3E%5C
**Category:** Beginners\
**Created:** [June 19, 2025, 6:33pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Funable-to-run-space-locally-or-duplicate%2F159987 "2025-06-19T18:33:17Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![william590y](https://avatars.discourse-cdn.com/v4/letter/w/2acd7d/32.png) [@william590y](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fwilliam590y)%5C
**Post date:** [June 19, 2025, 6:33pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Funable-to-run-space-locally-or-duplicate%2F159987%2F1 "2025-06-19T18:33:17Z")

</div>

I am unable to run this space locally or duplicate it despite the space running perfectly fine on the web UI.  
[HoLa-BRep - a Hugging Face Space by YuXingyao](https://huggingface.co/spaces/YuXingyao/HoLa-BRep)

I always run into the following error:

Traceback (most recent call last):  
File “/home/user/HoLa-Brep/app.py”, line 7, in   
from app.AppLayout import \*  
File “/home/user/HoLa-Brep/app/ **init**.py”, line 1, in   
from .ModelBuilder import ModelBuilder  
File “/home/user/HoLa-Brep/app/ModelBuilder.py”, line 7, in   
from diffusion.diffusion\_model import Diffusion\_condition  
ModuleNotFoundError: No module named ‘diffusion’

There does not exist any file named ‘diffusion’ in the entire space. I tried downloading the docker image and still received this error. I am confused why the space runs in the UI but not locally. Any help would be appreciated greatly.

---

<div class="post-metadata">

**Author:** ![meganariley](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/meganariley/32/56966_2.png) [@meganariley](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fmeganariley)%5C
**Post date:** [June 19, 2025, 7:28pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Funable-to-run-space-locally-or-duplicate%2F159987%2F2 "2025-06-19T19:28:53Z")

</div>

Hi @william590y When duplicating a Space, we recommend using the same hardware as the original Space in order to avoid any issues. It looks like this Space is running on Nvidia T4 small.

We have more info on GPU upgrades here: [Using GPU Spaces](https://huggingface.co/docs/hub/spaces-gpus). Let us know if you continue running into issues on the upgraded hardware.

---

<div class="post-metadata">

**Author:** ![william590y](https://avatars.discourse-cdn.com/v4/letter/w/2acd7d/32.png) [@william590y](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fwilliam590y)%5C
**Post date:** [June 19, 2025, 11:05pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Funable-to-run-space-locally-or-duplicate%2F159987%2F3 "2025-06-19T23:05:11Z")

</div>

Hi there Megan! Thank you so much for your prompt response.

I tried running the space again on the Nvidia T4 small and ran into the same exact error. Any advice on how to proceed would be appreciated.

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FJohn6666)%5C
**Post date:** [June 19, 2025, 11:17pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Funable-to-run-space-locally-or-duplicate%2F159987%2F4 "2025-06-19T23:17:59Z")

</div>

Hmm, that space seems to be in a very unusual state. Looking at the commit history, there are no signs of deletion, so it may have been Super Squash History, but I can’t find any files that seem to have been there before. I don’t think there are any matching files in the libraries installed via Dockerfile either. It may be installed as a dependency of one of the libraries. In any case, in its current state, the author’s code itself is actually running and working…🤔  
[https://huggingface.co/spaces/YuXingyao/HoLa-BRep/blob/main/diffusion/inference.py](https://huggingface.co/spaces/YuXingyao/HoLa-BRep/blob/main/diffusion/inference.py)

> **[Client Challenge](https://pypi.org/project/torchmanager-diffusion/)**

---

<div class="post-metadata">

**Author:** ![william590y](https://avatars.discourse-cdn.com/v4/letter/w/2acd7d/32.png) [@william590y](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fwilliam590y)%5C
**Post date:** [June 20, 2025, 1:08am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Funable-to-run-space-locally-or-duplicate%2F159987%2F5 "2025-06-20T01:08:05Z")

</div>

Hi there John! Thank you for the kind reply. I’ve contacted the author and I’ve been told the default provided docker command:

docker run -it -p 7860:7860 --platform=linux/amd64 --gpus all   
registry.hf.space/yuxingyao-hola-brep:latest

executes the huggingface front end, but not the core code, which is inside of the docker container. However, I can’t seem to find any reference to diffusion inside the container.

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FJohn6666)%5C
**Post date:** [June 20, 2025, 7:30am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Funable-to-run-space-locally-or-duplicate%2F159987%2F6 "2025-06-20T07:30:08Z")

</div>

Same error. I wonder if the `diffusion` module is in Persistent Storage (under the `/data` directory)…?

> **[HoLa-BRep - a Hugging Face Space by John6666](https://huggingface.co/spaces/John6666/HoLa-BRep-test)**
>
> Discover amazing ML apps made by the community

---

<div class="post-metadata">

**Author:** ![william590y](https://avatars.discourse-cdn.com/v4/letter/w/2acd7d/32.png) [@william590y](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fwilliam590y)%5C
**Post date:** [June 26, 2025, 7:06pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Funable-to-run-space-locally-or-duplicate%2F159987%2F8 "2025-06-26T19:06:29Z")

</div>

> [@broadfield-dev](#):
>
> environmental

After talking to the authors, it turned out there were indeed private files in /data

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/hellohellohello/original/2X/d/de4155eb4aa4108ecb32a1389d7cc37ae69f88b7.png) [@system](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fsystem)%5C
**Post date:** [June 27, 2025, 7:07am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Funable-to-run-space-locally-or-duplicate%2F159987%2F9 "2025-06-27T07:07:21Z")

</div>

Closed on June 27, 2025, 7:07am UTC

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.
