Hongli Zhan (@HongliZhan) header
Hongli Zhan (@HongliZhan) profile picture

🤖Shaping model behaviors @IFM_AI, Silicon Valley Lab // 🤘Ph.D. @UTAustin

San Francisco Bay Area
Joined May 2020
Photo by Hongli Zhan (@HongliZhan)Photo by Hongli Zhan (@HongliZhan)Photo by Hongli Zhan (@HongliZhan)Photo by Hongli Zhan (@HongliZhan)Photo by Hongli Zhan (@HongliZhan)Photo by Hongli Zhan (@HongliZhan)Photo by Hongli Zhan (@HongliZhan)Photo by Hongli Zhan (@HongliZhan)
PhD defended at UT Austin today.🤘 The best thing was having an advisor who believed in me before I believed in myself. Jessy taught me how to write, how to think, and how to chase research ideas. Then the rest followed. Thank you, @jessyjli
11
4
3
124
13,150
We’re excited to collaborate with the NSF–Simons AI Institute for Cosmic Origins (@CosmicAI_Inst) at UT Austin on AI for Open Science, centered on a shared interest in AI for Open Science. 🔭 Together, we’ll advance foundation models to accelerate astronomical discovery. CosmicAI will apply IFM’s models to astronomy challenges and complex datasets, giving feedback on emerging AI capabilities in real-world science. We’ll openly share the resulting models, built on the open foundation of K2 Horizon, and lessons learned with the scientific and open-source AI communities. Here’s to AI as an engine for scientific discovery! ✨
16
6
27
1,306
Looking for a reference manual for building a frontier LLM? We wrote one 👇 The K2 Horizon technical report is now on arXiv: 134 pages on how we built six models, from architecture to inference. It may be the most detailed LLM training reference you can read today. • Architecture: we bring two new attention designs, MoVA and softplus attention gating, to strengthen reasoning. With them, our 36B model nearly matches a 32B dense one on one-seventh of the active parameters. • Pre-training: we trained four models, from 3.7B to 36B, on the same 22T tokens. Their normalized loss curves collapse onto nearly the same line, so a recipe that works on a small model carries over when scaling up. • Data: 60+ pages on the part most reports skip. How we generated ~10T synthetic tokens, and why we chose the data mix on predicted scores at scale, which reversed the small-run ranking. • Post-training: we document our full production-scale run for the 375B flagship. • Inference: Uno gives an autoregressive model diffusion speed with one small adapter. Up to 2.2× faster decoding, lossless by construction, no draft model. This is the last piece of the openness puzzle. K2 Horizon already shipped with 380 checkpoints, 13 TB of pre-training data, 58 training runs and 17 code repositories. The report explains the decisions behind them. More details: arxiv.org/abs/2611.21003
25
85
24
559
56,602
On Turn-Level Best-of-N Sampling for Scaling LLM Agents Jalaj Bhandari, Dhawal Gupta, Hongli Zhan, Zhenting Wang, Varad Pimpalkhute, Zhengzhong Liu, Eric Xing, Rupesh Srivastava arxiv.org/abs/2611.06868 [𝚌𝚜.𝙰𝙸]
1
1
4
333
Hongli Zhan retweeted
We learned a TON in the last 6 months about Agentic RL infrastructure at scale, and now we're happy to share it with everyone. RL360 was used for the training of K2 Horizon series (artificialanalysis.ai/models…). It builds on top of miles from @radixark, adding a lot of optimizations for efficient agentic RL at scale. Our amazing team at @IFM_AI built this with a lot of hard work. Thanks to @varad0309 @willis_guo @wang1999_zt @mingshanhee @DavidRBellamy @omkarenator @_matthewyang @qiancheng1231 @bhandari_jalaj and many others!
We're open-sourcing RL360, the RL infrastructure behind K2 Horizon's six domain experts: 8,192 concurrent sandboxes, 150 steps in 7 days, ~1.3M rollouts. Long-horizon agentic RL runs thousands of agents in real sandboxes on tasks that take minutes. Some of those sandboxes crash mid-task, and a crash arrives as the same low score as a wrong answer. Without infrastructure that can keep up, GPUs are underutilized and the model gets penalized for system crashes rather than its own mistakes. RL360 is built for this. We share how it works, what broke at scale, and what we learned in the thread. Code: github.com/ifm-ai/RL360 Run: wandb.ai/mbzuai-llm/rl360-pu…
2
14
1
50
4,098
We're open-sourcing RL360, the RL infrastructure behind K2 Horizon's six domain experts: 8,192 concurrent sandboxes, 150 steps in 7 days, ~1.3M rollouts. Long-horizon agentic RL runs thousands of agents in real sandboxes on tasks that take minutes. Some of those sandboxes crash mid-task, and a crash arrives as the same low score as a wrong answer. Without infrastructure that can keep up, GPUs are underutilized and the model gets penalized for system crashes rather than its own mistakes. RL360 is built for this. We share how it works, what broke at scale, and what we learned in the thread. Code: github.com/ifm-ai/RL360 Run: wandb.ai/mbzuai-llm/rl360-pu…
11
48
13
320
50,529
The most detailed open LLM data release yet: K2 Horizon's pre-training data and post-training data-generation pipelines are now open! 13 trillion pre-training tokens across 5 datasets and 24 subsets. Over 10 trillion tokens of synthetic data spanning mathematics, reasoning, coding, planning, and problem-solving. Beyond the scale, four highlights for model builders (details in the threads): - Scaling synthetic data without losing diversity. Our generation methods produce diverse training examples at scale, nearly matching natural web text in measured diversity. - More verification isn't always better. Strict verification can throw away useful training signal. - Small-scale wins can mislead. Our chosen data mix actually lost in smaller experiments. - Beyond teacher imitation. Our post-training data generation methods produce training trajectories the teacher couldn't generate on its own. Open pre-training datasets, post-training data-generation pipelines, and processing tools for researchers to inspect, reuse, and build on. Pre-training data: huggingface.co/collections/I… Post-training data-generation code & tools: github.com/ifm-ai/DATA_NAVIG…
20
66
18
397
117,214
Hongli Zhan retweeted
We trained an LLM with FlashAttention-3 in BF16 🔥 Training looked healthy for a long time. Then the grad norm shot up 1000× 📈 and the loss ended 0.2 nats above FP32 attention. Not a single NaN 😶 The cause is in the attention backward 🧵 📄 arxiv.org/abs/2609.34272
21
78
14
634
69,841
Our training library xLLM is out 🚀 In addition to being performant, I wanted to highlight the flexibility. It’s not just a “nice to have.” In our training runs, we kept finding small bugs in the chat template (our final Jinja is 1k lines 😬). Being able to adjust the tokenizer and chat template quickly is what allowed us to fix them while training.
Replying to @IFM_AI
xLLM supports fine-tuning on chat and instruction-style data by keeping the tokenizer and data mixture changeable through its online pipeline. It handles tokenization, mixing, and packing during training, so a new tokenizer or chat template is just a config change, not a reprocessing run: • Tokenization runs straight from JSONL • Data mixtures are configurable, with buffered shuffle • Bestfit packing keeps documents intact with little padding when they fit within a sequence Throughput is unaffected, because parallel loading and asynchronous preparation overlap the CPU work with GPU training.
2
7
30
2,274
Hongli Zhan retweeted
There’s a rank specifically for Google now? 😭😭
477
484
257
10,578
7,301,175
Rework is inevitable in large-scale LLM pre-training and fine-tuning. What it costs isn't. Introducing xLLM, an efficient and flexible infrastructure for pre-training and fine-tuning dense and MoE LLMs. It keeps key training decisions changeable without giving up throughput. Efficient, at 6,295 tokens/sec per GPU on K2-Horizon-MoVA-36B-A4B and 10,050 tokens/sec per GPU on Llama3-8B on H200s. Flexible, because the tokenizer, data mixture, model architecture, and training stages can change without rebuilding the dataset or the system around them. xLLM ships with the checkpoints, training logs, and recipes behind K2 Horizon: github.com/ifm-ai/xllm K2-Horizon-MoVA-36B-A4B: huggingface.co/IFM/K2-Horizo…
56
95
129
336
369,328
Hongli Zhan retweeted
The MoVA model is here: huggingface.co/IFM/K2-Horizo… We are going to release the code and technical report soon.🔥
K2-Horizon-36B-A4B scores 25 on the Artificial Analysis Intelligence Index, matching models with over 20× the total parameters while using 4B active parameters per token. These capabilities come from our new architecture MoVA (Mixture-of-Value Attention), which incorporates MoE-based sparsity into the compute of value vectors in multi-head attention. It opens a second axis for scaling sparsity in an LLM, beyond MoE in the FFN module. Importantly, MoVA enjoys the following advantages: • Simple and compatible with efficient attention algorithms, such as flash attention, GQA, and sparse attention • No additional KV cache cost comparing to standard GQA K2-Horizon-36B-A4B available at: huggingface.co/IFM/K2-Horizo…
1
6
1
11
4,723
Hongli Zhan retweeted
This is one of our initial attempts of using applying diffusion models. The plug-and-play property of Uno make it flexible in many areas, think about using them in post training or other complex scenarios. Further, think about it this way: diffusion enhances both depths (denoising steps) and length (parallel testing scaling), it may has the potential to unlock stronger reasoning.
Today’s LLMs still write like typewriters: one token at a time. This sequential process creates a hard inference bottleneck. We're introducing Uno, a diffusion-augmented LLM that delivers autoregressive quality at diffusion speed. It’s a lossless speedup method that accelerates generation without degrading response quality. With Uno, K2-Horizon-7B outperforms state-of-the-art diffusion methods in both quality and throughput, delivering up to a 2.2× speedup with no loss in quality. Paper: arxiv.org/abs/2609.04010 Model available at: huggingface.co/IFM/K2-Horizo…
7
34
2,406
K2-Horizon-7B scores 21 on Artificial Analysis Intelligence Index, punching above its weights. It scores 50% above the next best model under 10B, beating Qwen3.6-35B-A3B and closely matching Qwen3.6-27B. • Try it: huggingface.co/IFM/K2-Horizo… • 8-bit quantization: huggingface.co/IFM/K2-Horizo… • Uno, the speed-up diffusion-augmented version: huggingface.co/IFM/K2-Horizo…
12
25
6
273
17,329
The new horizon of open source models.
K2 Horizon 375B A23B, a new open weights model from UAE's MBZUAI, scores 47 on the Artificial Analysis Intelligence Index, with relatively strong agentic performance and a 30 point jump over its predecessor K2 Horizon 375B A23B is an open weights Mixture-of-Experts model with 375B total and 23B active parameters from @IFM_MBZUAI, MBZUAI's Institute of Foundation Models. It scores 47 on the Intelligence Index, alongside models such as MiniMax-M3 (45, also a MoE with 23B active parameters), and a large upgrade from its predecessor K2 Think V2 (17, 70B dense model). It leads nearby open weights models on agentic evals and has a low hallucination rate, but trails on knowledge and the hardest reasoning evals. K2 Think V2 ranks among the most open models on our Openness Index; MBZUAI is updating the supporting documentation and code for K2 Horizon and we expect to add it to the Openness Index soon. Key takeaways: ➤ Strong on agentic tasks, weaker on knowledge and deep reasoning. MiniMax-M3, a recent model that is close to it on the Intelligence Index, makes the cleanest comparison: K2 Horizon 375B A23B leads on GDPval-AA, our real-world knowledge work benchmark (Elo 1430 vs 1380), and on τ³-Banking (34.2% vs 15.3%), but trails on GPQA Diamond (87.3% vs 92.9%) and Humanity's Last Exam (32.0% vs 39.0%) ➤ Low hallucination rate, driven by abstention rather than knowledge. K2 Horizon 375B A23B attempts only 40% of AA-Omniscience questions, declining the remaining 60% rather than guessing. The result is a 26% hallucination rate, among the lower rates we have measured, while accuracy is 18%, essentially unchanged from K2 Think V2 ➤ A new architecture over its predecessor. K2 Horizon 375B A23B is a 375B parameter Mixture-of-Experts model with 23B active, succeeding the 70B dense K2 Think V2, and extends context from 262K to 512K tokens. Its 23B active parameters match MiniMax-M3 (428B total, 23B active) Key model details: ➤ Architecture: Mixture-of-Experts, 375B total parameters, 23B active ➤ Context window: 512K tokens ➤ Multimodality: Text input and output only ➤ Pricing and availability: Yet to be announced ➤ Licensing: Open weights (license details to be announced)
5
9
76
4,536
Meet K2 Horizon model fleet. The smallest model is designed for devices where memory, power consumption and local processing matter. The largest model is intended for demanding reasoning and enterprise AI workloads. Developers can prototype on smaller models and scale to larger models without leaving the K2 Horizon fleet. Start building: docs.ifm.ai
13
19
3
113
6,723
Build on K2 Horizon. •⁠ ⁠Self-host all six models with vLLM or SGLang, weights on Hugging Face •⁠ ⁠Run locally with Ollama •⁠ ⁠Use it in OpenCode and OpenClaw •⁠ ⁠Deploy through our API platform Details in IFM developer doc: docs.ifm.ai Download weights: huggingface.co/collections/I… Access API Keys: platform.ifm.ai/signin
15
10
2
54
38,099
At 0.9B parameters, the smallest member of the K2 Horizon fleet is designed to bring capable, open AI to devices as compact and personal as a watch. Our goal is to make intelligence available at every scale—from everyday edge devices to enterprise clusters—while giving developers a common model family they can build and scale with. Small in footprint, but part of a much larger horizon. Meet K2 Horizon 0.9B. ifm.ai/k2
20
9
73
2,712
Hongli Zhan retweeted
It's currently trending as the #1 paper of the day on HF! Thanks for sharing our work, @burkov Folks, pls upvote if you liked our work 🤗 huggingface.co/papers/2609.0…
The paper addresses a core inefficiency in large language models: next-token prediction produces high-quality outputs but forces slow, sequential generation that wastes accelerator capacity and inflates latency and training cost, especially for long traces and concurrent agentic workloads. The work set out to deliver lossless speedups that preserve the exact output distribution of a strong autoregressive model while generating multiple tokens per step. The authors introduce diffusion-augmented LLMs, called Uno. They keep a full set of autoregressive weights trained with standard next-token prediction and add lightweight LoRA adapters that are trained in a short Diffusion Distillation phase to propose blocks of tokens in parallel. At inference, a new Ψ-Spec sampler draws parallel drafts from the diffusion pathway and verifies them against the frozen autoregressive distribution, accepting the longest valid prefix. The method can be applied either by training both pathways from scratch or by augmenting existing open-weight models such as Qwen3-8B. Throughput is measured on a fixed 1 K / 8 K input-output test at multiple batch sizes, and quality is assessed on agentic tool-use, coding, and long-context reasoning benchmarks. Read the paper with an AI tutor: chapterpal.com/s/d0f1bb1f/un…
1
8
29
2,167
K2 Horizon is ready for your favorite vibe test or a weekend project 😉 Please share your feedback, positive or negative. Our data team is at the ready to keep making it better 🫡
Build on K2 Horizon. •⁠ ⁠Self-host all six models with vLLM or SGLang, weights on Hugging Face •⁠ ⁠Run locally with Ollama •⁠ ⁠Use it in OpenCode and OpenClaw •⁠ ⁠Deploy through our API platform Details in IFM developer doc: docs.ifm.ai Download weights: huggingface.co/collections/I… Access API Keys: platform.ifm.ai/signin
2
17
28,409