Samitha Jayaweera (@samithaj) header
Samitha Jayaweera (@samithaj) profile picture

Machine Learning Engineer | Researcher | Dota2 veteran

Sri Lanka
Joined May 2009
Photo by Samitha Jayaweera (@samithaj)Photo by Samitha Jayaweera (@samithaj)Photo by Samitha Jayaweera (@samithaj)Photo by Samitha Jayaweera (@samithaj)Photo by Samitha Jayaweera (@samithaj)Photo by Samitha Jayaweera (@samithaj)Photo by Samitha Jayaweera (@samithaj)Photo by Samitha Jayaweera (@samithaj)Photo by Samitha Jayaweera (@samithaj)
Samitha Jayaweera retweeted
Big announcement today: for the first time in probably 6 years we are adding 1 default dependency to transformers: kernels. The kernel library brings good default performances to any model, on many hardware. It does not require crazy installs like FA2 use to, it only downloads what your hardware needs for your torch version. There’s a lot more to it, inviting you to read huggingface.co/docs/kernels/…. This is super important for transformers as it reinforces our commitment to performances, but also to community built kernels: you are all actors of the ecosystem, and a crazy dev can push a specialized kernel that will help the entire community. Kernels are explicitly registered in transformers and will be activated by default, we tested but of course if you have any feedback or issues, ping us on github we’ll fix them asap!
17
51
6
415
30,595
Anxiety is real when your Claude quota hits 95% in the middle of the workweek. 💀 Why can't we choose our own reset day? @claudeai I literally unsubscribed and resubscribed hoping to change it, but nope same day, same suffering 😭
🤖 Made with AI
54
Samitha Jayaweera retweeted
Introducing e-means, an algorithm beating k-means in 10x fewer epochs. With order of magnitude wall-clock speedups, e-means is released in FAISS and needs no hyperparameter tuning beyond k. It is robust to various scales and datasets. Still skeptical ? Just try e-means [1/10]🧵
157
1,306
280
11,080
1,031,293
Samitha Jayaweera retweeted
We're giving away a Hogwarts Legacy custom wrapped NVIDIA GeForce RTX 5090 to celebrate its official release with DLSS 5 🪄 To enter: 🟢 Share this post 🟢 Comment #RTXON Terms and Conditions: nvidia.com/en-us/geforce/con…
83,613
71,135
7,663
66,496
6,174,366
Samitha Jayaweera retweeted
Concept Country has developed its first open-source model, Qwen Concept 27B. With 54% less thinking tokens and 3% better performance on GPQA Diamond compared to its base Qwen 3.8 model, we have achieved 30% more useful tokens per joule without additional post-training.
13
43
14
440
67,760
Samitha Jayaweera retweeted
18 of the 20 best open models today are Mixture-of-Experts. Dense is basically over. And yet the know-how to train a good MoE still lives mostly in the heads of a handful of teams. So we spent 800k GPU hours running the experiments ourselves and wrote everything down. Super happy to finally release "The Ultimate MoE Training Handbook", free and open, organized around the questions training teams hit: - how many experts, how big, shared or not? - why is half my step spent in all-to-all, and how do I hide it? - why is my run 25x slower with no error in the logs? - softmax, sigmoid or sqrt(softplus) router, and why keep it in fp32? - aux loss or DeepSeek's loss-free bias? - upcycle a dense checkpoint or train from scratch? - can I serve with fewer experts per token than I trained with? ⚠️ Warning: it's long (~70k words, budget a few days, sorry) but with 55 interactive figures, code you can run and numbers from our own runs. Read it here: huggingface.co/spaces/huggin…
139
624
82
4,555
283,625
Samitha Jayaweera retweeted
The good news: you can mid-train yourself to the frontier! At a fraction of the cost! Without distillation! What we did: We took Qwen3.5 14B and mid- and post-trained it to beat every other open model and perform as well as the very best frontier models. This is no simple toy task or format fixing, we are training the model to understand and reason over DNA sequences. Bio is the next frontier for AI and universal access will be crucial to make progress. The fun part: because we train the model on both natural language and DNA sequences you can actually 'chat to your DNA': Ask it questions, ponder the impact of mutations, or ask it to generate a small sequence. We'll soon see the frontier labs move away from math and cyber towards bio. It already started, and we believe researchers should have access to capable models. We are releasing the full recipe, so you can do it, too! Model: huggingface.co/HuggingFaceBi… Blog: huggingface.co/spaces/Huggin…
38
123
10
1,302
81,548
Samitha Jayaweera retweeted
Life is good now. 🎉 Tell your agent to: - create a new volume in you mac - disable fseventsd (and spotlight) on it - and move your projects folder to it - remount it For extra points move you pnpm cache folder to it. (Start the conversation outside of your projects folder, Also you might need to kill a ton of processes)
MacBooks are crappy for multi/parallel agent work. fseventsd keeps going wild after a few days. "kill fseventsd on a cadence" feels dumb. So... aside from moving to linux, anyone had experience with a volume specifically for your agent workspaces, and disable fseventsd there?
56
71
15
2,366
298,171
Samitha Jayaweera retweeted
We were able to fine tune an open weight model (Qwen3.5-9B) on proprietary internal data at @coinbase, and it out performed frontier models, at much lower cost and speed, for a specialized task (fraud prevention in this case). I think we'll see more of this pattern inside companies. The frontier models are amazing generalists. But increasingly you'll see specialist models out perform on more narrow tasks, either working on teams, or by themselves. We're making it easy to fine tune models internally for our employees. We even have a skill for it in our internal harness that makes it easy to spin these up and start training them: "/fine-tune-and-serve-llm I want to fine-tune Qwen for payments risk review. help me get started" I imagine we'll have some backend services that could be replaced entirely by this new architecture.
608
782
547
9,439
1,618,203
Samitha Jayaweera retweeted
Try Underdog: free, capable, private AI running locally on your device New build and Saluki 27B are out. Under 8GB, beats Qwen 3.8 27B at tool calling Like, repost, and comment one task you wouldn’t give a cloud agent to get an invite🦴
Today we're releasing Underdog Saluki 27B Based on Qwen 3.8 27B, Saluki is almost 7x smaller than its full-precision counterpart while it keeps 96% of its benchmark performance and beats Qwen at tool calling It's the best model <8GB that runs in Underdog Saluki is available today under Apache 2.0. Try today in Underdog underdog.ai/saluki
251
189
27
865
73,109
Samitha Jayaweera retweeted
realising MLX-LM-LoRA version v5.8.6 🚀 "pip install -U mlx-lm-lora" github.com/Goekdeniz-Guelmez… New training algorithms added: - KLPO: KL-Regularized Policy Optimization for Critic-Free Agentic Reinforcement Learning by @yifanzhang_ - DSLA: Directional and Similarity-aware Latent Alignment by me Updated: - Online training backend version 2: extreme speed increase in rollout generation and general. GRPO for example have 40% to 60% speed increase and 10% to 25% less RAM usage thanks to MLX's (by tpegolotti) new VJPs. - Offline training: general increases in training speed and RAM usage too. More in the comments! Give it a try and let me know what you think 😁
3
9
2
62
10,308
Samitha Jayaweera retweeted
In light of the latest Anthropic's latest not-particularly-oblique attempt to build a case against open weights, I thought I would write down how I currently think about open weight AI models. (1) Open weights have been deeply, irreplaceably useful for AI safety.
22
80
18
526
49,288
Samitha Jayaweera retweeted
1/ Introducing Cua Perception: Cua Driver can now see. Nothing to click? It reads the pixels. Canvases, games, remote desktops and custom-drawn apps become labelled regions an agent can act on, parsed locally on the CPU. github.com/trycua/cua
52
124
23
1,648
105,284
Samitha Jayaweera retweeted
1/ Fast Computer Use is now solved with @typesafeai Jev + Cua Driver. Available in development preview for macOS, Windows, and Linux. We call it jev-use. Draft #3943: github.com/trycua/cua
70
222
87
2,706
423,252
Samitha Jayaweera retweeted
After co-inventing ChatGPT, I kept asking myself: why have superhuman chat models not led to AGI? I’ve spent the last 2 years in stealth building a new way to train models (RLCD), and a new type of frontier AI model that we are releasing today: Jev • 20-200x faster • 40-400x cheaper (w/ output tokens free) • Frontier composable intelligence optimized for decisions AFAICT the shortest path to AI-based economic revolution
3,995
8,235
6,821
76,393
40,254,783
Samitha Jayaweera retweeted
new course just dropped: CS 312: Deep Learning Alchemy w/ @stanfordnlp ! A very interesting new class concept from @tatsu_hashimoto : - Assignments are worth 0% of the grade - 85% of your course grade is 40-minute quizzes where you get a code diff for an experiment you've never run and ask you to predict validation loss differences - The premise? that prediction == understanding. If we don't have any intuition as to the outcomes of an experiment, then it's often safe to say we don't understand it (or at least, it means we don't have beyond surface level knowledge). And also, everything is public (in the style of cs336!) (Answer to the question below in, and links 🧵)
14
78
6
1,145
112,864
Samitha Jayaweera retweeted
The VRAM barrier is officially dead. I just ran Qwen 3.8 Flash Next (MoE) 125B A6B with a 250,000 context window on a single 24GB RTX 4090. 21 tokens/sec decode. 364 t/s prefill. no mtp. no dflash. no kv cache quantization! We are running datacenter models on consumer hardware. Tested on Ubuntu 22 | CUDA 13.0 | PCIe 4.0 x16 | 110 GB DDR4 System RAM with a continuous 28k prompt across all runs. ### The Benchmarks & Scaling # 1. Hybrid Offload (-ncmoe 40 @ 80k Context) Offloaded 40 expert layers to the GPU, pushing VRAM to the ceiling. ./build/bin/llama-server -m Qwen3.8-Flash-Next-UD-Q4_K_XL-00001-of-00004.gguf -c 80000 --port 8080 -v --fit off -b 4096 -ub 4096 -ncmoe 40 Prefill: 383.85 t/s | Decode: 22.52 t/s Footprint: 23.85 GB VRAM | 97 GB RAM # 2. Full CPU MoE Offload (-cmoe @ 80k Context) Pinned all 512 expert layers to DDR4 RAM (-cmoe), keeping attention on the 4090. llama.cpp flags: (Same as above, replace -ncmoe 40 with -cmoe) Prefill: 355.72 t/s | Decode: 20.84 t/s Footprint: 11.66 GB VRAM (12GB+ VRAM freed up!) | 110 GB RAM # 3. The 180,000 Context Run Prefill: 357.75 t/s | Decode: 20.98 t/s | VRAM: 15.6 GB | RAM: 110 GB # 4. The 250,000 Context Absolute Ceiling ./build/bin/llama-server -m Qwen3.8-Flash-Next-UD-Q4_K_XL-00001-of-00004.gguf -c 250000 --port 8080 -v --fit off -b 4096 -ub 4096 -cmoe Prefill: 364.29 t/s | Decode: 20.97 t/s Footprint: 18.3 GB VRAM (Still ~5.7 GB of VRAM headroom!) | 110 GB RAM ### Key Insights: -b 4096 -ub 4096: doubles the prompt ingestion from ~150 to 364+ t/s. -cmoe Free Lunch: Shifting expert layers to DDR4 RAM slashes VRAM from 24GB to 11.6GB with virtually zero decode penalty (22.5 -> 20.9 t/s), enabling the 250k context ceiling. Qwen 3.8 Flash-Next (UD-Q4_K_XL) is a massive 111.4 GB model split across 4 shards. To run this architecture, you must build from the experimental PR branch (#27742) by @danielhanchen: git clone && cd llama.cpp git fetch origin pull/27742/head:qwen-next && git checkout qwen-next cmake -B build -DGGML_CUDA=ON -DCMAKE_CUDA_ARCHITECTURES=native -DBUILD_SHARED_LIBS=OFF cmake --build build --config Release -j $(nproc) --target llama-server A single 4090 paired with 100 GB of cheap DDR4 RAM will comfortably serve production grade 125B inference. While Qwen 3.8 27B (dense) still holds the crown for single 3090/4090 rigs, Flash Next proves 125B hybrid models are officially viable on consumer hardware. Hugging Face GGUF link and complete performance telemetry graphs are dropped in the replies below. GLM 5.3 Flash VS Qwen 3.8 Flash Next, which one takes the open weights crown this week?
Qwen3.8-Flash can now be run locally! 🔥 The 125B MoE model outperforms Claude-Opus-4.6 (Max). Run on 75GB RAM via Unsloth GGUFs. Qwen3.8-Flash-Next enables CPU RAM / unified mem setups to deliver near VRAM speeds. Guide: unsloth.ai/docs/models/qwen3… GGUF: huggingface.co/unsloth/Qwen3…
163
447
84
4,698
1,070,696
Samitha Jayaweera retweeted
Claude has become a language, so I built a translator. English <-> Claudish
343
1,162
254
16,657
1,146,982