François Fleuret

François Fleuret

@francois.fleuret.org

Research Scientist Meta/FAIR, Prof. University of Geneva, co-founder Neural Concept SA. I like reality. https://fleuret.org

5.7K followers234 following413 posts

View full thread

- Multi-token prediction: sums the training over multiple future tokens, possibly with additional readout heads. - FlashAttention: computes the attention on the fly, avoiding a memory footprint O(T^2) (+ optimizes very carefully for the GPU!)

- Ring Attention: takes advantage of multi-node hardware to scale the computation according to the sequence length - Speculative decoding: a cheaper model generates tokens, and a rejection process corrects this generation to march the full-model distribution.

View full thread

- RoPE (Rotary Positional Embedding): makes the attention depend only on the relative Q/K positions - MoE (Mixture of Experts): The FFN block is implemented with multiple MLPs and a gating mechanism selects which ones process each token.

- Warmup: very short ramping-up of the learning rate, starting from 0 - Cosine schedule: the learning rate varies less at the beginning and end of the schedule - AdamW: decouples weight includes decay from Adam

- RMSNorm instead of Layernorm: normalize only the scaling - MLA (Multi-head Latent Attention): stores a low-rank projection of the attention block input and compute the KV from it - SwiGLU: non-linearity for the FFN block with per-component gating

Maybe the wall was the friends we made during that journey Ted.

Ted Underwood@tedunderwood.com

The year is 2435. Human beings — now sentient spheres of glowing gas — finally understand why matter exists. Our knowledge of the world is complete, and can go no farther! One the telepresence screen, a simulation of a 21c internet pundit pops up: "Told you deep learning was hitting a wall!"

It does this by generating an optimized cuda kernel on the fly. So it's cool for causal masks, but it also allows an amazing trick to deal with batches of sequences of various lengths *without padding*! 2/3

To do so, you concatenate all the sequences to make a batch of a single sequence, and carve the attention matrix into a block-diagonal one (possibly with causal structure in each block) so that sequences cannot look at each other. Magic! 3/3

Something that annoys me much is when people (generally in political / "societal" discussions) equate the validity of a statement with the validity of *what "people" may understand* and generally then fix a true statement they consider false with a false statement they consider true. 1/2

The typical example would be "you get overweight if you eat more calories than you spend". In 90% of discussions you will face someone saying "that's not true" because they think this implies one ignores the complex societal / psychological / medical reasons why this would happen. 2/2

General structure of a paper: - general ideas - general case - general case - general case - what we actually do how it should be: - what we actually do - why we think it's great as one method of a general class - how we got there - how we got there - how we got there

One of the goosebumpsiest short movie ever (where this quote comes from). We will have this sound snippet played at the ceremony when we will leave earth for the stars. www.youtube.com/watch?v=YH3c...

youtube.comWanderers - a short film by Erik Wernquist [Official Version]YouTube video by Erik Wernquist - Digital Artist
François Fleuret@francois.fleuret.org

"We invest far-off places with a certain romance. This appeal, I suspect, has been meticulously crafted by natural selection as an essential element in our survival."