Not enough free space on Hugging Face Space when running rkllm converter

Hi all,

I created a Hugging Face Space to wrap a model converter:
:backhand_index_pointing_right: Convert To RKLLM - a Hugging Face Space by xiaoyao9184

It works fine locally, but fails on the Space instance with the following error:

Not enough free space
(This happens when the rkllm converter runs.)

However, the converter (rkllm) itself is not open-sourced, so I can’t inspect exactly what it does internally. Based on monitoring on local, I noticed that the temporary files it creates (mainly inside the site-packages directory) do not fully consume the disk space — there should still be sufficient space left.

So I’m wondering:

  • Does Spaces impose any additional restrictions on /tmp or disk usage that might not reflect in visible usage?
  • Are there known hidden quotas or ephemeral filesystem behaviors that could cause this?

The original issue I referenced is here:
:backhand_index_pointing_right: rkllm.build conversion fails with "Not enough free space" despite sufficient disk space on HuggingFace Space · Issue #297 · airockchip/rknn-llm · GitHub

Any suggestions or clarification would be greatly appreciated. Thanks!

1 Like

First of all, in Spaces, especially in Gradio spaces ('s Docker images), users only have write permissions for directories under /home/user/ (or maybe /home/). We cannot write to /tmp except for in starting process…
Also, directories starting with . (e.g. .cache/, .gitignore/) may not have read/write permissions for users.

So I think it’s a permission issue.

That’s interesting — I actually did a test via this Space:
:backhand_index_pointing_right: Test Free Space Site Packages - a Hugging Face Space by xiaoyao9184

From what I observed, both /usr/local/lib/python3.10/site-packages and /tmp are writable during runtime. I was able to write files to both locations without any permission errors.

So it seems the issue might not be caused by permission restrictions in those paths — at least in my case.

1 Like

In that case, I think you can use up to 50GB without any problems…
Since the RAM of free space is 16GB, the amount you can use will decrease if swapping occurs…:thinking: