Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[storage] Cloudflare R2 support #11

Open
gadicc opened this issue Nov 23, 2022 · 4 comments
Open

[storage] Cloudflare R2 support #11

gadicc opened this issue Nov 23, 2022 · 4 comments

Comments

@gadicc
Copy link
Collaborator

gadicc commented Nov 23, 2022

There has been a lot of interest around Cloudflare's R2 support too... I don't use it personally but will happily accept a PR for this (see e.g. https://github.com/kiri-art/docker-diffusers-api/tree/dev/utils/storage), or if will implement it myself if no one else does provided there's sufficient interest among docker-diffusers-api users (you can thumbs up this issue if it's important to you).

@gadicc
Copy link
Collaborator Author

gadicc commented Dec 7, 2022

Lol, I didn't actually realise the Cloudflare R2 was S3-compatible. So, I'd be very, very surprised if this wasn't working already, just set the build-arg:

AWS_S3_ENDPOINT_URL="https://<accountid>.r2.cloudflarestorage.com"

and it should work out the box! (set also the other AWS_S3_ args too, of course, as per docs/storage.md).

@jd0713 if you already have a cloudflare account maybe you could let us know some speeds from banana, if relevant. (I guess it's only relevant if you're using the dreambooth training, or otherwise have some hosted model on R2... if not, let me know your use case ^_^)

@Hades32
Copy link

Hades32 commented Jan 4, 2023

It is working, I'm using it. Region has to be set to auto but that's it

@Hades32
Copy link

Hades32 commented Jan 4, 2023

Speeds to banana are OK. Seem to be limited from Bananas side

@gadicc
Copy link
Collaborator Author

gadicc commented Jan 4, 2023

Ah amazing, thanks for reporting back!

I've actually started using R2 too and am loving it (and host all our pre-built optimized models there). I still need to measure speeds to/from banana though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants