553 points · by julien_c · 7y ago · 225 comments
It's so damn convenient, and so nicely done.
And they keep doing neat things like this one: https://github.com/huggingface/swift-coreml-transformers
Kudos to Julien Chaumond et al for their work!
Why does he call them Swift Core ML? They are core ml, usable in swift and objective-c.
We rarely hear about CI servers being taken over but it has to happen frequently enough.
Ultimately you need to be able to rebuild the product when upstream goes poof.
Sounds very smart on their party: move forward with what matters (building your codebase, tests, etc) and don't do something (like an internal cache), unless you have to -- the ops equivalent of lazy-loading...
Sounds like the build pipeline was set up by a regular dev.
This is at the tradeoff of making your data significantly more irritating to access, as it's no longer just plugging in a URL into a program, plus everyone who wants your dataset needs to set up a billing account with Amazon or Google.
[1] https://github.com/huggingface/pytorch-transformers/search?q...
Maybe spend less time on Twitter and more on your business model?
IP address data is pretty sensitive information, and throwing it out there like this, even in aggregate, is not OK because of what it shows.
No matter how much PR this gets, this goes both ways.
If you want to have a business relationship with someone, pay them.
Apple obviously didn't.
Apple's ownership of 17.x is so well known it is described in an xkcd: https://xkcd.com/195/.
I mean I've worked at some of the riches companies in the world and I think the conversation would have gone like this
Me: hey project manager our access to server X where we get the really needed X1 resource has been blocked. Probably cause we are hammering their server (which we probably talked about some months ago)
Project manager: hmm a paid account will need to go through approval. Can you tell them we are trying to get a paid account, see if you can get them to give us temporary access, and maybe we can cache the result so we don't hit their server that often.
Me: ok I'll do that.
In fact I mean if I was on a small company providing a service that a really big company was abusing in such a way that I think they might like to pay for it - I think the smart thing would be to force them to contact me somehow because how do I even call the part of the big company I need to talk to.
I’m not sure I would feel comfortable doing that - stringing along a fellow engineer for the benefit of a freeloading PM.
https://github.com/huggingface/pytorch-pretrained-BigGAN/blo...
When you look further down you find:
https://github.com/huggingface/pytorch-pretrained-BigGAN/blo...
And that's just a quick search for s3 in the repo. It would not surprise me in the least to discover a `from_pretrained` that points at one of the s3 resources being pulled. There's probably other stuff like that as well in the code that could be causing equally nasty heartache .. especially if non-persistent containers are involved....
(This is a WAG aka Wild A Guess)
EDIT: Dug a little more and found:
https://github.com/search?q=org%3Ahuggingface+s3&type=Code
Unless I'm mistaken here, there's a crap ton of code that could be downloading models at runtime ... Which seems significantly less than ideal ...
I'm working through how to best integrate apt-cacher-ng, sccache, and a pip cacher. It costs me nothing to hit apt or pypi, but like, somebody is paying that bill. A little perspective goes a long way.
I wonder if I could do something to just proxy all requests and cache those on a whitelist and stick it on my CI network.
Go ahead and try, see how far their "free" tier really goes.
Does anyone have any numbers on this?
Of course, you can trick Cloudflare into caching your large media assets using some funky Page Rules... but I wouldn't suggest it. Mostly just for moral reasons. If you have that much traffic, you should be making some money off it and then paying Cloudflare with it!
1. https://support.cloudflare.com/hc/en-us/articles/200172516 2. https://support.cloudflare.com/hc/en-us/articles/11500015027...
FYI he is bragging, not complaining. There are a dozen ways to reduce or eliminate this problem.
You're an order of magnitude off.
45 TB per day is 1,350 TB in a month, or 1,350,000 GB.
Show me somewhere you can get a petabyte of egress inside a calendar month for 4 figures USD...
Let's suppose you even used the cheaper egress from Cloudfront rather than serving from S3 (lol @ your wallet if you serve 1 PB doing that).
https://aws.amazon.com/blogs/aws/aws-data-transfer-prices-re...
The first petabyte costs an average of $0.045 per GB - $45,000.
The remaining 350 TB costs another $10,500 for a total of $55,500.
Serving off S3 directly? Yeah, that'll be more like $150,000.
Correct me if I'm wrong, but most colocation/dedicated server providers offer such prices. E.g. hetzner.com @ €1/TB, sprintdatacenter.pl @ €0.91/TB, dedicated.com @ $2/TB (or $600/month for an unmetered 1 Gbps connection).
But if you want S3/CDNs/<insert any cloud offering here>, then yeah, they're expensive.
BTW per Cloudflare ToS[0]:
> Use of the Service for the storage or caching of video (unless purchased separately as a Paid Service) or a disproportionate percentage of pictures, audio files, or other non-HTML content, is prohibited.
Backblaze will send out data for 1 cent per GB, or $13,500. BunnyCDN apparently starts at 1 cent per GB in North America and Europe, and has a fewer-PoP plan that would be $5,550. And let's be fair, you don't need many points of presence for half-gig neural network models.
The other option is buying transit. Let's say we want the ability to deliver 80% of the 45TB in 4 hours as our peak rate. Then we need 20gbps of bandwidth. That's around $9,000 in a big US datacenter. Aim for a peak of 6/8 hours and it's $6,000/$4,500.
My guess is that they don't earn money yet. They more or less are just out of school so it's a young startup. Actually studied with some of them and I'm still a student.
https://docs.aws.amazon.com/AmazonS3/latest/dev/configure-re...
By splitting it out you have no guarantee that the big guys will just use the free one.
Maybe a server farm, where each instance downloads a model when spinning up?
You would not believe how many people and how many libraries pull from primary sources directly instead of using local copies of common resources. I found this conversation because I'd just finished fixing that in our code and taking about 5 minutes off the build process.
Let me restate that: We were spending 5 minutes just downloading schema files. In an automated build. Every time, sometimes on several machines at once.
At one point we were trying to convince him that intentionally slowing all requests down by say 500 ms would get the attention of people who were misbehaving. Anyone who was downloading it once and caching would hardly notice the 500 ms. Those running it once per task would be forced to figure their shit out.
I'd say there's only a 10% chance Apple's firewall would let BitTorrent through, and only a 3% chance the CI servers would maintain a positive seed ratio.
Possibly it might solve the problem because users would cache the resources themselves to avoid the hassle of getting BitTorrent into their CI pipeline...
Wasabi's own docs[1] mention a ballpark definition of "reasonable" as monthly transfer being less than total storage. Above that you'll get a call.
I'm sure they'd still be cheaper than AWS, but it's not going to be $5/TB/month to service the entire world.
You can still use a few dedicated servers on Hetzner though. They'll easily let you serve 200TB / month from each server for $100. It's obviously not comparable to proper CDN though, but it's does work for many companies.
Making objects in S3 publicly available and then complaining about their extortionate bandwidth charges is...silly.
S3 is very expensive, but averaging 4 gigabits 24x7 is not going to be cheap anywhere.
A normal upstream (if you were in a colo or some sort of DC) will charge you about $0.50 per meg. So, 4gbps would cost you... $200/mo. [1]
I think people don't realize just how much more expensive IaaS providers are. We're literally talking orders of magnitude.
[1] https://blog.telegeography.com/outlook-for-ip-transit-prices...
But it certainly works if you need to CDN a bunch of large files.
Or perhaps you have reached out to them, but are for some reason still complaining on Twitter to drum up PR or something?
Regardless, this posting is ridiculously context-free to the point of being click-baity. (But hey, good job, I clicked on it anyway.)
And then people wonder why people don't want to make their stuff free/open source. Even when it's free people still think you're somehow entitled and overcharging.
> Even when it's free people still think you're somehow entitled and overcharging.
I just explicitly advocated for the opposite of that, so I'm not sure where you're getting that.