François Le Lay retweeted
Finally summarized what I've been sending to friends in DMs View article
François Le Lay retweeted
Vector databases have raised billions offering hosted management of text embeddings. What are you revealing in these vectors ? 🔒
We demonstrate a practical method for full recovery of 90% of sentence length embeddings (arxiv.org/abs/2310.06816).
François Le Lay retweeted
🌟 Excited to announce the Stanford Graph Learning Workshop 2023 on Oct 24 2023!🤝 Bringing together academia & industry leaders to delve into advances in #MachineLearning & #AI in Relational domains, Foundation models, and Multimodal AI. 📢 Free registration. 📢 Calling for talks & poster/demo submissions! Showcase your innovative work in methodological advancements, diverse domain applications, & ML frameworks.
snap.stanford.edu/graphlearn…
François Le Lay retweeted
The way Datadog calculates percentiles at scale is very innovative 🔥
Usually, calculating the percentiles of large datasets is very expensive.
To know the 99th percentile of a stream of values, you need to:
- keep all the values
- sort them
- return the value whose rank matches the percentile (e.g 99th item)
Datadog cannot afford to do this with the many millions of data points that come in every second - the space and CPU requirements are not practical for a company with thousands of customers. 🐾
Naturally, they opted for sketch algorithms - those should provide them with a good-enough probabilistic result while being vastly more efficient to compute.
Unfortunately - they couldn’t get satisfactory results.
The algorithms would produce results that were too inaccurate. ❌
Why?
Many percentile sketches had guarantees in terms of *rank error*.
A rank-error guarantee of 2% means that the p95 value returned by the sketch is somewhere between the p93-p97 value.
But system latencies exhibit very fat tails - the difference between the p97 and p99 values can be 2-10x!
So what did the dogs do? 🐶
They invented a new sketch algorithm - DDSketch.
Instead of rank error guarantees, they designed it for *relative error* guarantees.
If the p99 is 60s, a 2% error means the sketch would return 58.8-61.2s.
The algorithm is surprisingly pretty simple:
• They create buckets covering ranges of the desired error rate. (+- 2% in this case) 🪣
• Each bucket keeps a counter of the amount of data points within that range. 💯
• When processing an item (latency metric data point), increment the counter of the appropriate bucket. ➕
• To count the desired percentile, you sum up the bucket’s values until you get to the desired percentile. Whatever bucket that percentile is in - that’s your value. 🏆
In this example, the 50th percentile is 1033ms. (4th value out of our total of 8)
Going by count, the 4th value is in the second bucket (b-1) and the algorithm would produce a result of 1021-1061ms.
To cover the range from 1 millisecond to 1 minute, you only need 275 buckets.
With 64-bit counters, that's just ~2kB of memory, regardless of the amount of input data.
This is why we call sketch algorithms sublinear in space growth - memory requirements do NOT grow linearly with input.
The exponential nature of the bucket distribution makes it cheap to cover an even wider range: 1 nanosecond to 1 day takes just 3x more buckets:
• 802 buckets at ~6kB.
As you can probably tell, this is pretty easy to parallelize.
You can divide this bucket-building exercise into many parallel lightweight substreams, and then merge the results freely. 🕊
The merge operation is a simple sum of the buckets & their counters, which ensures that the accuracy is kept in the same range.
It is a very scalable and performant sketch algorithm.
Kudos to Datadog for inventing it.
Good boy! 🫳🐕🦺
François Le Lay retweeted
Given the Nvidia valuations, I think it's worth sharing this anectode from the 2000s.
At its peak, the Sun Microsystems stock hit valuation of 10x sales.
When stocks took a massive beating later on, this is what its CEO Scott McNealy had to say to investors:
François Le Lay retweeted
📣Ready to dive deep into the world of #MachineLearning with Graphs? 🌐 Our new online class explores how diseases & information spread, traffic & weather predictions, & so much more!
Join us, & make sense of the world's complex data🚀.
online.stanford.edu/courses/… We kick off on June 5th!
#DataScience #OnlineCourse @StanfordEng
François Le Lay retweeted
Introducing the BigCode Evaluation Harness for Code LLMs:
github.com/bigcode-project/b…
Inspired by the lm-evaluation-harness from @AiEleuther, it ensures ease-of-use, reproducibility and efficiency. Let’s explore its key features 🧵:
François Le Lay retweeted
Pretty proud of the @Spotify team for this one – a generative, expressive and realistic AI DJ that delivers a personalized lineup of music and commentary to each user, for all those times you don’t know exactly what you want to hear. Hope you like it! 🎧 newsroom.spotify.com/2023-02…
François Le Lay retweeted
💫 HF Hub Python lib v0.0.14 💫 is out!
- 🐍Python wrapper of the Inference API
- 🦣 Large files upload now simpler than ever: welcome git-lfs auto-track!
- META: select the best model/dataset for your task directly from Python!
Star to get updated: github.com/huggingface/huggi…
🤗
François Le Lay retweeted
Welcoming @spacy_io to the 🤗Hub!
🔥Share your pipelines to the Hub with 1 command
🚀Serve predictions from the model page or in your app with hf.co/Inference-API
⬇️Install 60+ pipelines directly from the Hub at hf.co/spacy
Learn more at hf.co/blog/spacy
François Le Lay retweeted
Who said Transformers is not #enterprise ready?
Today we're announcing a new integration with @awscloud to make it easier & more secure than ever to deploy 🤗Transformers in SageMaker 🔥🔥🔥
Pick up code snippets right from the 🤗 Hub model page!
[1/4] 🧵👇
François Le Lay retweeted
📺How to train state-of-the-art sentence embeddings? 📺
Just uploaded my 3-part video series on the theory how to train state-of-the-art sentence embedding models:
youtu.be/qmN1fJ7Fdmo
François Le Lay retweeted
We just helped a team member from Mongolia get a work visa to France.
June 10: offer sent to candidate(&accepted)
June 16: appointment at the FR consulate in Ulaanbaatar, Mongolia 🇲🇳
June 22: visa application approved
June 30: @mishig25 will travel to France 🎉
Go France!! 🇫🇷🇫🇷
François Le Lay retweeted
🤗Transformers v4.7.0 was just released with 🖼️DETR by @facebookai!
DETR is an Object Detection model that can take models from timm by @wightmanr as a backbone.
Contributed by @NielsRogge, try it out: colab.research.google.com/gi…
v4.7.0 launches with support for PyTorch v1.9.0!
François Le Lay retweeted
🤗 AutoNLP supports Arabic now!!!
ندعم اللغة العربية الآن في 🤗 AutoNLP !!
✅ binary classification
✅ multi-class classification
✅ single column regression
✅ extractive question answering
✅ summarization
✅ speech recognition
Check out AutoNLP here: github.com/huggingface/auton…
François Le Lay retweeted
New JAX/Flax examples just landed in 🤗Transformers
With the power of JAX/Flax & the new cloud TPU V3-8 now you can pre-train a masked LM in just 18hrs! 🔥
pre-training RoBERTa 👉colab.research.google.com/gi…
pre-training GPT2 👉colab.research.google.com/gi…
François Le Lay retweeted
The first part of the Hugging Face Course is finally out!
Come learn how the 🤗 Ecosystem works 🥳: Transformers, Tokenizers, Datasets, Accelerate, the Model Hub!
Share with your friends who want to learn NLP, it's free!
Come join us at hf.co/course
François Le Lay retweeted
Our first experiment on collaborative training with @m_ryabinin & friends is running right now with ~50 participants training a single model and it's super exciting to see the metrics climbing 🚀
Bring your GPUs and we'll train a (big) model together!
Stay tuned for more soon
François Le Lay retweeted
Fine-tune any of the 11,000 🤗 models in Amazon SageMaker,
And now, grab your custom code snippet right from the model page! 🔥🔥🔥
Learn more at hf.co/amazon



























