Mathew (@DoubleMathew) header
Mathew (@DoubleMathew) profile picture
Chicago, IL
Joined November 2011
Photo by Mathew (@DoubleMathew)Photo by Mathew (@DoubleMathew)Photo by Mathew (@DoubleMathew)Photo by Mathew (@DoubleMathew)Photo by Mathew (@DoubleMathew)Photo by Mathew (@DoubleMathew)Photo by Mathew (@DoubleMathew)Photo by Mathew (@DoubleMathew)Photo by Mathew (@DoubleMathew)Photo by Mathew (@DoubleMathew)
Mathew retweeted
Exact sequence parallelism for packed multimodal masks. It picks ring attention, a sparse all-to-all or Ulysses per layer, matches single-GPU numerics, and beats a FlashMask + Ulysses hybrid in 47 of 48 cases on up to 128 H100s. lumalabs.ai/news/packed-mult…
7
17
4
100
13,040
Spent some time creating a lightweight, performant async RL stack in pure JAX with @AdityaMakkar0! We share a work log covering inference, RDMA weight transfer, memory optimizations, sharding and a few more JAX engineering insights we've seen along the way! It’s a bit of a long read, but I hope it sheds some light on the systems side of scaling RL!
33
17
6
264
27,088
Merry Christmas from Unsloth! 🎄🎁 Thank you for all the support this year! We’re excited to keep shipping open-source next year 🥰
14
10
256
9,496
Today, we launch the ElevenLabs OSS Engineers Fund - a program that provides sustained support to the open-source projects that help power our work. Over the next six months, we are contributing $22,000 to projects our engineers rely on.
25
41
18
573
255,147
We made a free notebook that fine-tunes IBM Granite 4.0 into a powerful support agent! This agent will enable real-time analysis & solving of customer interactions. You'll also learn how to train models using data from Google Sheets. Colab Notebook: colab.research.google.com/gi…
11
93
12
609
51,283
Join us, @Pytorch and @AMD for a Virtual Hackathon on Oct 18-20. 🔥 Win $10K in prizes by training the best AI agent via Unsloth! ⭐ Sign up here: luma.com/4i64p3ec
4
24
3
95
9,294
We're teaming up with @MistralAI and @NVIDIA for an Unsloth event on Tues, Oct 21 at @YCombinator's office! 🦥 Join us in San Francisco for a night of talks, merch and more. Food & drinks provided. RSVP required! ⭐ lu.ma/unsloth-yc
4
20
4
159
31,560
We managed to save >50% VRAM for multimodal RL in @UnslothAI with vLLM weight sharing! GSPO, Dr GRPO and much longer contexts are also possible! Our notebook shows how you can design good reward functions to teach a VLM to answer hard maths and logic questions with RL Currently Gemma 3, Qwen 2.5 VL, Llama Vision are supported & Mistral 3 + others are incoming! Docs: docs.unsloth.ai/new/vision-r… Colab: colab.research.google.com/gi…
You can now train Vision LLMs with Reinforcement Learning in our free notebook! Unsloth VLM RL via GRPO: 1.5× faster, 90% less VRAM, 15× longer context & no accuracy loss. Guide: docs.unsloth.ai/new/vision-r… GitHub: github.com/unslothai/unsloth Qwen2.5-VL Colab: colab.research.google.com/gi…
8
30
1
259
23,896
Google just dropped a new LLM! You can run it locally on just 0.5 GB RAM. Let's fine-tune this on our own data (100% locally):
183
1,135
73
14,088
1,957,761
qwen coder 30b, specifically the Q4_K_XL dynamic quant from unsloth has been my daily driver on the pc i basically route everything that i don't wanna waste claude tokens on through it and it's a mfing killer model
27
19
1
525
49,797
The @GoogleDeepMind Gemma 3n Challenge ($150,000 in prizes) ends in 7 days! We've made 2 new fine-tuning Gemma 3n Kaggle notebooks (Vision & Audio) to spark your creativity. Your fine-tuned model can compete for any prize. Notebooks + Challenge Details: kaggle.com/code/danielhanche…
26
1
226
11,206
We’ve teamed up with @GoogleDeepMind for a challenge with a $10,000 Unsloth prize! 🦥 Show off your best fine-tuned Gemma 3n model using Unsloth, optimized for an impactful task. The entire hackathon has $150,000 prizes to be won! Kaggle notebook: kaggle.com/code/danielhanche…
9
88
19
544
47,391
We made a complete Guide on Reinforcement Learning for LLMs! Learn about: • RL's goal & why it's key to building intelligent AI agents • Why o3, Claude 4 & R1 use RL • GRPO, RLHF, DPO, reward functions • Training your own local R1 model via Unsloth 🔗docs.unsloth.ai/basics/reinf…
21
204
15
1,107
68,604
We just crossed 10 million monthly downloads on @HuggingFace! 🦥🤗 It's all thanks to you guys - the amazing community, model builders, and HF team! 💖
25
47
3
423
30,011
ok in return, as curator i'm going to pick one ai.engineer 2024 video that y'all are still sleeping on youtube.com/watch?v=pRM_P6Uf… this is literally the @danielhanchen masterclass and I'm honestly so impressed with his depth and yet approachability/ability to explain concepts simply that others have to resort to jargon and symbols for. very honored that he's coming back to AIE 2025 again for a part 2 on RL, because there's very few that can do what he does here at a conference of this size.
1
18
1
227
61,773
Mixing 25% reasoning from Open Math Reasoning + 75% from normal chat datasets seems to do very well! Also 30B-A3B MoE needs ~17.5GB VRAM for finetuning - best to not finetune the MoE router. Loading MoE prequantized BnB is also very slow, so I disabled it for now.
You can now fine-tune Qwen3 (14B) for free with our notebook! Unsloth makes Qwen3 finetuning 2x faster with 70% less VRAM and 8x longer context lengths - with no accuracy loss. Guide: docs.unsloth.ai/basics/qwen3… GitHub: github.com/unslothai/unsloth Colab: colab.research.google.com/dr…
9
12
202
14,477
. @sh_reya 's paper confirms what I see in practice 1) Automated evals don't work (without semi-manual human alignment) 2) Most tools don't provide this alignment 3) Automated evals add mostly noise 4) You can only write good evals by looking at data and reacting to failures
18
79
11
698
76,157
Mathew retweeted
This is what PHD level intelligence looks like
35
55
17
1,523
487,674
Replying to @goodside
This is so much fun
21
57
15
797
32,706
Mathew retweeted
Replying to @vikhyatk
I'm the author of several model merging libraries, so perhaps I can explain. It's quite straightforward. When you finetune a LLM (or PEFT), you are taking a fixed base and tuning it against a dataset. Pretraining already fixed our parameters in a pretty solid matrix; so all changes must operate around this as the basis. Training can't perturbate the base model outside of a certain range without the model collapsing, so viable changes will follow allowable patterns. This is why the resulting models are homomorphic. These trainings create kernels that are commonly known as 'task vectors'. As long as these models remain homomorphic, and you only attempt to merge parts of the parameter space that are in the same alignment, two kernels can be interpolated to adjust the parameter space to have relative changes that assume the properties of both. The alignment issue - this is where sign agreement comes in. Since merging generally compares the delta weights, it is possible that kernels may train out of phase. One kernel may have been trained in a positive phase alignment with the base model, and the other developed a negative phase alignment. Since they are out of phase with each other, their kernels would interfere. I don't know if that's as clear as I would like it to be, but it's late.
7
30
1
406
14,858