# Can I force rebuild a huggingface space?

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcan-i-force-rebuild-a-huggingface-space%2F18419%3E%5C
**Category:** Spaces\
**Created:** [May 27, 2022, 1:08am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcan-i-force-rebuild-a-huggingface-space%2F18419 "2022-05-27T01:08:52Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![NabarunGoswami](https://avatars.discourse-cdn.com/v4/letter/n/6a8cbe/32.png) [@NabarunGoswami](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FNabarunGoswami)%5C
**Post date:** [May 27, 2022, 1:08am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcan-i-force-rebuild-a-huggingface-space%2F18419%2F1 "2022-05-27T01:08:52Z")

</div>

I want to know if it is possible to force a full rebuild of a huggingface space without committing any changes to the repository.

The use case is I would like to pip install a development package from a github repository, and if there is a bug fix in the github repository, I would like to trigger a build of the space to get the latest package.

---

<div class="post-metadata">

**Author:** ![satpalsr](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/satpalsr/32/3553_2.png) [@satpalsr](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fsatpalsr)%5C
**Post date:** [May 27, 2022, 3:05am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcan-i-force-rebuild-a-huggingface-space%2F18419%2F2 "2022-05-27T03:05:06Z")

</div>

In Space settings, you can find “Factory reboot this space”. This will build your space again without using cached requirements. Is this what you want?

---

<div class="post-metadata">

**Author:** ![NabarunGoswami](https://avatars.discourse-cdn.com/v4/letter/n/6a8cbe/32.png) [@NabarunGoswami](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FNabarunGoswami)%5C
**Post date:** [May 27, 2022, 4:22am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcan-i-force-rebuild-a-huggingface-space%2F18419%2F3 "2022-05-27T04:22:13Z")

</div>

I have tried doing that, but even though the information for Factory reboot says it does not use the cached version of requirements, the build logs show that the caches are being used, so it does not get the latest version for the package from Github.

```auto
Step 18/30 : COPY requirements.txt $HOME/app/requirements.txt
 ---> Using cache
 ---> 02abf4bb48b9
Step 19/30 : RUN pip install -r requirements.txt
 ---> Using cache
 ---> bce71515be6d

```

---

<div class="post-metadata">

**Author:** ![julien-c](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/julien-c/32/41937_2.png) [@julien-c](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fjulien-c)%5C
**Post date:** [May 27, 2022, 10:10am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcan-i-force-rebuild-a-huggingface-space%2F18419%2F4 "2022-05-27T10:10:51Z")

</div>

Tagging @chris-rannou and @cbensimon

---

<div class="post-metadata">

**Author:** ![NabarunGoswami](https://avatars.discourse-cdn.com/v4/letter/n/6a8cbe/32.png) [@NabarunGoswami](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FNabarunGoswami)%5C
**Post date:** [June 2, 2022, 2:05am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcan-i-force-rebuild-a-huggingface-space%2F18419%2F5 "2022-06-02T02:05:45Z")

</div>

Any updates on this?

---

<div class="post-metadata">

**Author:** ![chris-rannou](https://avatars.discourse-cdn.com/v4/letter/c/7feea3/32.png) [@chris-rannou](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fchris-rannou)%5C
**Post date:** [June 13, 2022, 2:43pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcan-i-force-rebuild-a-huggingface-space%2F18419%2F6 "2022-06-13T14:43:50Z")

</div>

Actual factory restart should be made available this week.

---

<div class="post-metadata">

**Author:** ![mdagostino](https://avatars.discourse-cdn.com/v4/letter/m/57b2e6/32.png) [@mdagostino](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fmdagostino)%5C
**Post date:** [March 27, 2023, 6:29pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcan-i-force-rebuild-a-huggingface-space%2F18419%2F7 "2023-03-27T18:29:22Z")

</div>

Any updates on this?

---

<div class="post-metadata">

**Author:** ![freddyaboulton](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/freddyaboulton/32/32732_2.png) [@freddyaboulton](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Ffreddyaboulton)%5C
**Post date:** [March 27, 2023, 6:53pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcan-i-force-rebuild-a-huggingface-space%2F18419%2F8 "2023-03-27T18:53:59Z")

</div>

Yes! You can do a Factory Reset from the settings tab.

That will rebuild the space with a clean cache.

---

<div class="post-metadata">

**Author:** ![fazni](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/fazni/32/21316_2.png) [@fazni](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Ffazni)%5C
**Post date:** [November 19, 2023, 12:42pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcan-i-force-rebuild-a-huggingface-space%2F18419%2F9 "2023-11-19T12:42:13Z")

</div>

I’m experiencing the same issue, but a factory rebuild couldn’t resolve it. Are there any alternative solutions to fix this problem?

---

<div class="post-metadata">

**Author:** ![jkorstad](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/jkorstad/32/47209_2.png) [@jkorstad](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fjkorstad)%5C
**Post date:** [May 9, 2025, 5:08pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcan-i-force-rebuild-a-huggingface-space%2F18419%2F10 "2025-05-09T17:08:12Z")

</div>

Having the same issue with both restart and Factory Reset not fully rebuilding the Space (trying to change default Python version to 3.11 for a project), when rebuilding, most things will change however the 3.10 is stubborn and pulling from a docker cache that I cannot seem to rebuild.
