Kashif Rasul retweeted
Thx @_lewtun for the 1000x citation hack w/ a different IPO 😂 Our IPO (Identity Preference Optimization) was with @Learnius, Mark Rowland, @Piotbilal, Daniel Guo, Daniele Calandriello, @MunosRemi & me. Big 🤗 to TRL crew: @krasul @lvwerra @yb2698 @edwardbeeching @osanseviero.
Kashif coded IPO into TRL at lightning speed (and later fixed the loss normalization!), Lewis & Leandro reviewed, Younes brought us together, Ed reran the experiments, and Omar told the story. Daniele and I did remote the debugging in HF Slack. And tx to that we saw research turn into code people actually run <3 Go go open-source!
And some of the best memories happened offline: our IPO talk at Hugging Face, lunch in Paris w/ @mishig25 @HugoLaurencon @LoubnaBenAllal1, Midnight Runners, Paris AI running club, and dinner w/ Omar. Thx also to @SanhEstPasMoi @_philschmid @julien_c @Thom_Wolf for all the great conversation and a free t-shirt ;)
Our IPO paper: arxiv.org/abs/2310.12036
Kashif Rasul retweeted
AMD GPUs are now officially supported in TRL 🚀
I spent the past weeks running every TRL trainer on MI300X and fixing what broke, across TRL, Transformers, the Hub kernels, AITER and bitsandbytes 🧵
Kashif Rasul retweeted
Do we really need bigger weather models to get higher-resolution forecasts? Often, we don’t.
We trained a small downscaler in about an hour on a single GPU that takes temperature forecasts over France from ~28 km to 5.5 km, and we wrote a blog post to show you how: huggingface.co/blog/EmmaScha…
Kashif Rasul retweeted
1/ In RL environments, reward design is everything.
Here's what we learned from the 7,780 environments Xiaomi open-sourced for MiMo 🧵
Wake up, ppl 👀
Xiaomi just open-sourced ~7K of the RL environments it used to train MiMo on HuggingFace, across domains like code, cyber, general, music and web dev
I think this is one of the biggest things to happen in frontier open-source RL environment data.
Indepth analysis and learnings coming soon 👀
Kashif Rasul retweeted
⚡ Working on a major speedup for AsyncGRPO in TRL: training steps are up to 3.5× faster so far!
AsyncGRPO already has several packing optimizations. One packs samples together and balances the attention cost across DP ranks.
You start with the same prompt G times. In multi-turn rollouts on a harness, the conversation can also start to fork: most of the history remains identical, while a tool result or a new turn changes the suffix.
That gets expensive with GRPO because rollouts can share many long prefixes. You start from the same prompt G times, and multi-turn rollouts on a Harness can also share most of their conversation history (thanks to message-level tokenization). Each rollout is treated as its own sequence and packed on a single row, subject to a predefined token budget per DP-rank. Those rows are forwarded independently, even when most of their tokens are identical.
Tree packing instead turns the rows into a prefix tree. Shared prefixes are stored and forwarded once, while we use FlexAttention to ensure that every token still sees exactly the context it would have seen in its original rollout.
The loss is still defined on the original rollouts, so every trained token keeps its own target, advantage, and old log-prob.
The video shows the algorithm pretty well 👇
Kashif Rasul retweeted
Happy to officially bring you the new SOTA `tokenization` library.
We focused on all languages, multi-thread scaling, minimal package size and memory usage.
huggingface-tokenizers-v1.st…
We're thankful for the players of this ecosystem that have pushed us to give the best we could!
Kashif Rasul retweeted
Happy to announce the newest 🤗 PEFT release, v0.21.0 🎉
github.com/huggingface/peft/…
Check the thread below for a few highlights of this release.
Kashif Rasul retweeted
Can you predict next week's weather yourself? We just wrote a blog post that explains how! ⛅️🌍🌧️
Running weather forecasting required having a supercomputer and CS/physics Phd. Now, AI-based models need fewer resources and are available to anyone on @huggingface. So, prediction the weather should be accessible to all.
But only a few labs can actually run these models because there is no standardized documentation guiding you from the model weights to an actual forecast. Together with @EarthmoverHQ, we wrote a blog post and a demo walking you through that: huggingface.co/blog/hugging-…
The blog covers the code for fetching initial conditions from the Earthmover Marketplace, building a model's input batch, running inference and comparing the forecast against historical climate data.
You can also run Aurora (Microsoft), WeatherNext2 (Google) and AIFS (ECMWF) on our demo space. This is a first step to make AI-based weather forecasting models more accessible, and we'd love to build more of that. Tell us what's missing or your feedback in the blog comments!
Kashif Rasul retweeted
Nvidia NeMo AutoModel now supports DFlash2 training 🚀
DFlash 2 keeps the best part of block-parallel drafting while improving candidate selection and refinement, delivering 25–37% higher acceptance length and 27–39% higher single-request throughput than DSpark on the published Qwen3.8-27B benchmarks.
AutoModel now includes the DFlash 2 model, trainer, recipe, Qwen3/Qwen3.5 support, and multi-GPU training, so you can train your own drafter instead of relying on a prebuilt checkpoint.
github.com/NVIDIA-NeMo/Autom…
Many thanks to @krasul and @Chonghan_Liu for adding the support!
Kashif Rasul retweeted
Very cool open source model available on Hugging Face: Samudra 2 runs multi-year ocean forecasts (temperature, salinity, sea surface height,...) at resolutions down to 1/4° and on a single GPU.
If you're working on similar models, feel free to reach out. We're thinking about build a benchmark for ocean and atmospheric forecast models 🌍🌊
Try it here: huggingface.co/spaces/huggin…
Model weights: huggingface.co/M2LInES/Samud…
Kashif Rasul retweeted
Same reward curve. A quarter of the clock! 🚅
TRL's AsyncGRPOTrainer decouples rollouts from training: a background worker streams completions from a vLLM server while the training loop consumes them.
The bench is the well-crafted sail/Sanity-Test-R1D-1.5B.
3.8× on the clock. 1.9× on GPU-hours.
Kashif Rasul retweeted
Thinking Machines Lab did it again! Inkling Small just dropped! Try finetuning this 276B MoE with NeMo Automodel! Checkout our EP+FSDP recipe at: github.com/NVIDIA-NeMo/Autom…
Kashif Rasul retweeted
you can now train DiffusionGemma (a block-diffusion LLM) in TRL! and we're sharing an example for it
TRL trainers are made to be easily extended and adapted to different real-world use cases.
in this one, with a single method overridden in SFTTrainer (compute_loss), you can train this model
example below
Kashif Rasul retweeted
I built a small ECHO demo on TRL + OpenEnv❗️
the nice part: TRL's trainers are easy to adapt, so a small trainer subclass does the job
ran it locally and the world-model signal shows up: env-prediction improves with ECHO (pink), flat with GRPO (teal)
ECHO (Environment Cross-entropy Hybrid Objective) demo support just landed in OpenEnv, and it's a cool idea: train agents to learn a world model almost for free
original paper by @VaishShrivas, Piero Kauffman, Ahmed Awadallah and @DimitrisPapail @MSFTResearch
when an agent acts in an env, a rollout has 2 sides: what the agent writes and what the env writes back
gave an llm access to a thermal camera pointing to the raspberry pi its running from and it started to do experiments on turning the fan on and off to check for temp changes... 🤯
Here the LLM is turning on and off different GPIO pins to figure out where the fan is attached to and if its working:
This experiment gives new meaning to llm observability, where we can imagine the large llm can see the state of its datacenter or even the patch of satalite image of the datacenter and can perhaps take actions against env. impact? Food for thought. 🤔
Kashif Rasul retweeted
🔥 AITER's FA3, RoPE, and MegaBlocks kernels are now on the 🤗 Hub and integrated into Transformers.
No model code changes required. Just enable Hub kernels and go.
🚀 Up to 1.63× faster GPT-OSS-20B inference on MI300.
#AMD #ROCm #HuggingFace
























