ci : store ccache on HF buckets (test with cuda-ubuntu for now) - #27699
Conversation
|
Seems these containers are fairly minimal. :) |
In what sense? |
|
|
Should we merge? |
Should be fine. :) |
netrunnereve
left a comment
There was a problem hiding this comment.
I'm late but I think there should be some sort of check here (maybe for the HF token?) that lets the run continue if we're running on a fork that doesn't have these buckets set up.
Also I'm guessing that these caches will start showing up in https://huggingface.co/ggml-org/buckets eventually?
Yeah, I intended to, but forgot. A simple check that
They are already, but the bucket is private. |
Actually seems to be working, silently fails with |
|
Ouch, Edit: Come to think of it |
|
@ggerganov Ok, this one might be a dud, we can remove the variable and make the bucket public, but I'm not sure if it's safe to expose the Edit: It should work as cache for a HF hosted runner though. |
I don't think this would be any different from the |
True, but since they won't run before we approve them, there's at least some barrier there. Not actually checked if there's anything that can be exfiltrated from them? |
I think it's the same for the HF bucket ccache? Does it not work like this:
|
Sure, my worry was just that it may contain a log with a secret or something, but took a look now and it doesn't seem so. |
…-org#27699) * add ccache-buckets action * use ccache-buckets * only save on master * install python3-venv for hip * add jq and python3 for cuda * only delete caches older than 5 minutes
Overview
Use Hugging Face buckets to save and restore
ccache, testing oncuda-ubuntufor now.Additional information
Keeps the latest
ccachestored in a folder (so we can organize them per repo etc) on HF buckets instead of on GHA cache.Only supports *nix
ccachefor now, nosccacheor Windows support.Test runs:
https://github.com/ggml-org/tmp/actions/runs/32833839548/job/97758228073
https://github.com/ggml-org/tmp/actions/runs/32833839548/job/97758227953
https://github.com/ggml-org/tmp/actions/runs/32840956765/job/97780129104
Requirements