Can I force rebuild a huggingface space?

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.

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?

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.

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
1 Like

Tagging @chris-rannou and @cbensimon

1 Like

Any updates on this?

Actual factory restart should be made available this week.

2 Likes

Any updates on this?

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

That will rebuild the space with a clean cache.

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