I encouter the Build Error: Error while cloning repository, restart the Space so many time but it still not working. 
seems like same case Build error: Error while cloning repository - Spaces - Hugging Face Forums
My HF Space -
SNOMED CT Assistant - a Hugging Face Space by HengJay
Any good advince for fixing this problem? Very Thanks ~
1 Like
I think this is because the above file is too large. The reason is that a few months ago, the Spaces repository was changed so that only files up to a total size of 1GB can be placed in it. Spaces that have already been started are not affected for the time being, but if you duplicate or modify Spaces, this problem will occur.
If you upload large files to the model repo and download them as needed as shown below, you should be fine.
from huggingface_hub import hf_hub_download
#dl_url = "https://huggingface.co/KimTang/SNOMEDCT_BioBERT/blob/main/model.safetensors"
hf_hub_download(repo_id="KimTang/SNOMEDCT_BioBERT", filename="model.safetensors", local_dir="snomed_ct_id_term_1410k")
1 Like
For more detailed options, see this.
1 Like