GigaChat 3.5: Smaller, faster, stronger
Nikita Sushko
ML Engineer
Today, we're open-sourcing GigaChat 3.5 Ultra, our new 432B model. With this release, for the first time in our lineup, we've scaled our own hybrid architecture to hundreds of billions of parameters, sped up inference, and made the model stronger in code, agentic scenarios, and complex domains.
GigaChat 3.5 Ultra is more compact than the previous flagship: 432B parameters instead of GigaChat 3.1 Ultra's 700B. However, this isn't a "smaller, but cheaper" compromise: thanks to new data, an updated training recipe, and architectural changes, the model got stronger as well as more efficient in memory and generation speed.
Curious? Read on.

What's new?
GigaChat 3.5 is the result of more than 1,500 experiments with data, architecture, the training pipeline, and hyperparameters. The highlights:
- Our own hybrid architecture. Together with our colleagues from the R&D team, we combined MLA layers with GatedDeltaNet and added stabilizing mechanisms so that the whole thing trains reliably at the scale of hundreds of billions of parameters.
- Cheaper inference. The 432B model uses roughly a quarter of the KV cache per token, more than twice as much context fits into the same memory, and throughput has grown by about 20%.
- Fewer parameters, higher quality. The model is more compact than the 700B flagship, but thanks to new data and a new training recipe it got stronger in code, agentic scenarios, and complex domains.
- Faster generation with MTP. We added extra MTP heads for self-speculative decoding: the first two deliver most of the gain, speeding up greedy decoding by 2.2×.
- FP8 at every training stage. Lower precision sped up training by tens of percent and reduced memory consumption with no quality loss compared to bf16.
- Online RL in alignment. A new stage after Pretrain → Stage 1.5 → SFT → DPO improved Instruction Following, math, and the model's arena scores.
How did we build it?
Pretraining data
In previous releases, we built the pretraining foundation largely on synthetic data: the model generated data for itself. This works great on small models, but with hundreds of billions of parameters and trillions of tokens, synthetic data eventually "collapses" into sameness: diversity drops, and coverage of real-world scenarios is incomplete. So in 3.5 we rethought the approach and now use organic, natural text as the basis of the pretraining data.
The main breakthrough is the web. We ran HTML documents through LLM parsing (yes, that's a huge amount of compute) and got clean Markdown with formulas, tables, and structure preserved, instead of the usual jumble of tags and junk. In experiments, this gave a significant boost to MMLU, MATH, and other metrics.
We massively expanded code coverage: from 16 programming languages to more than 600.
To mine math and code from the web (forums, algorithm walkthroughs, tutorials), we trained dedicated classifiers. First we run a lightweight high-recall fastText model that cheaply filters out most of the junk, and then refine the selection with an LLM classifier.
We continue to expand our use of the YT cluster, putting an ever-growing load on it. We moved our leak detection module to YT, which reliably scrubs benchmark leaks from the training data. All web processing moved there too: LLM parsing of HTML, deduplication, and filtering with heuristics and classifiers. Essentially, all the heavy data operations now run on YT, and the payoff is enormous.
Previously, we iterated on data with small setups (3B on 200B tokens, 7B on 40B). We kept those for 3.5 — but for experiments with the full dataset mix, we moved to much larger model sizes: a 120B MoE on 2T tokens. This setup has noticeably higher resolving power and reveals effects that simply don't show up on small models. On the new dataset, compared to the previous one, we got +6% MMLU-PRO, +6% MATH, and gains across the other pretraining metrics.
Despite the organic pretraining, synthetic data hasn't gone anywhere: it's still needed at the midtrain stage at the end of training to boost challenging metrics and format understanding. But we shifted the focus from generating from scratch toward enriching organic sources: rather than inventing tasks, the LLM now mostly completes solutions, explanations, and answers to questions extracted from various datasets, papers, and the web. We also put the source text that the question came from into the prompt. For example, in books a question comes right after a paragraph, so we passed that paragraph to the LLM along with the question. This increased reliability: the model relied on its own knowledge but also on a specific source.
The final pretraining corpus consists of ~52% web, ~16% code, ~6% math, and ~26% high-quality sources (scientific papers, etc.). The midtrain mix is different as the share of synthetic data is noticeably higher there.
For now, Common Crawl is our main source of raw data, but we want to crawl the internet ourselves — that would give us many times more data. We also plan to run more experiments in the 120B/2T setup (it's fairly expensive) and keep pushing math and code.
Pretraining stage
Why change the architecture and the pretraining recipe
From the outside, it may seem that a large language model's quality is determined primarily by its size and the amount of data. Add parameters, train longer, add a good dataset and you get a stronger model.
In practice, that's not enough, especially when it comes to MoE systems with hundreds of billions of parameters, long context, and high demands on inference speed. At this scale, the architecture and training recipe matter just as much as data and compute.
Speeding up generation almost always involves trade-offs. Linear attention, Multi-Token Prediction, and other approaches help generate text faster and use memory more efficiently, but they change the signal path inside the model, affect the scale of activations, and can make training less stable.

DeepSeek V3 vs. GigaChat-3.5 architecture comparison
An additional problem is borrowing someone else's recipe. Even if an architecture is described in a paper or a technical report, you can't just take it and painlessly run it on your own data, your own pipeline, and your own scale. The data, implementation details, expert balance, hyperparameters, and mixed-precision mode all change.
We ran into this while building GigaChat 3.0. We relied on the published DeepSeek V3 recipe, but on our pipeline training turned out to be unstable. It wasn't just the data: at this scale, gaps in the technical report and the details of the training pipeline implementation start to matter. To bring training to completion, we needed additional stabilizing mechanisms, including hidden_z_loss, which we wrote about in our previous article.
That experience became our starting point. For the next release, it wasn't enough to simply assemble a model from known architectural solutions. We had to understand the weak spots of the new architecture, the constraints on training, and the set of stabilizing mechanisms without which the model would never make it to full-scale training.
So, in GigaChat 3.5 we didn't just add linear attention and MTP; we built our own hybrid architecture and our own training recipe around it. Every speed-up feature came paired with a stabilizing one: Gated Attention, GatedNorm, sandwich normalization, and activation clipping. This combination let us train a large open-source model with GatedDeltaNet and linear attention without losing stability.
How we stabilized training
All the key architectural changes served a single goal: keeping activations under control at 432B and 700B parameters.
Scaling with gating
Large models often develop implicit self-stabilization mechanisms, such as attention sinks and residual sinks. The model singles out a dedicated token or feature through which most of the signal is concentrated. This helps keep the scale in check, but it works implicitly and is hard to control.
At large scale, such a mechanism can itself become a source of noise, so we added explicit "knobs" for controlling the signal:
- Gated Attention: the output of the attention layer is multiplied by a sigmoid gate. This lets the model locally and directly dampen an overly strong signal.
- GatedNorm: a similar idea is applied to normalization. The network can explicitly rescale the signal across features instead of relying on implicit "anchors". We upgraded the layer so that it trains stably in a model with a large number of parameters.
Gate implementation details
Gated Attention
attn = softmax(q @ k.T / sqrt(d)) @ v
attn_gate = torch.sigmoid(x @ W_gate)
attn_out = (attn * attn_gate) @ W_O
Gated Norm
x_norm = x * torch.rsqrt(x.pow(2).mean(-1, keepdim=True) + eps)
x_norm = x_norm * (1.0 + norm_weight)
# gating
norm_gate = torch.sigmoid(MLP_gate(x_norm))
# scale-neutral at init
norm_out = x_norm * 2.0 * norm_gate
A plain sigmoid(...) at initialization gives a value of about 0.5, because the gate input is close to zero. If you multiply the signal by such a gate right away, the model starts with a scale cut in half.
We added a factor of 2: 2 * sigmoid(...). At initialization, such a gate is close to one and barely changes the data flow, and from there the model learns on its own where the signal needs to be dampened. At large scale, this small tweak turned out to be decisive for stability.
Sandwich normalization
Classic pre-norm protects the input of an attention or MLP block but doesn't control its output. If a block produces a high-amplitude vector, it goes straight into the residual stream and passes through the following layers.
Sandwich normalization adds normalization before the block but also after it, before adding to the residual stream. This way a more controlled signal enters the residual stream, and on the backward pass normalization acts as an additional barrier against noise.
Block structure with sandwich normalization
# attention block
h = h + post_attn_norm(attn(pre_attn_norm(h)))
# mlp block
h = h + post_mlp_norm(mlp(pre_mlp_norm(h)))
Activation clipping
MoE layers have a separate risk point, SwiGLU. Inside an expert, silu(gate) and up are multiplied together, and a rare strong outlier can be sharply amplified before the final w2 projection.
We chose not to clip the entire residual stream: outliers aren't always harmful, and some of them take part in useful rescaling within the model. Instead, we limited values locally, inside the expert, right before the multiplication in SwiGLU. This clipping suppresses the most dangerous local blow-up without preventing the model from using scaling elsewhere.
SwiGLU clipping implementation details
gate = self.w1(x).float()
up = self.w3(x).float()
up = torch.clamp(up, min=-10, max=10)
gate = torch.clamp(gate, max=10)
x = F.silu(gate) * up
out = self.w2(x.to(dtype))
How we made inference more efficient
Linear attention
Regular attention gets more expensive as context grows. The longer the request, the bigger the KV cache and the more generation is bottlenecked by memory.
In GigaChat 3.5, we introduced a hybrid architecture for the first time: some layers remained regular MLA, while others became linear layers based on GatedDeltaNet, in the spirit of Qwen Next. This way we kept the strengths of regular attention and lowered the cost of long context.
The main win is memory. Regular attention stores the token history, while linear attention compresses it into a fixed-size state. In the 432B model, the hybrid architecture uses roughly a quarter of the cache per token. The same amount of memory fits 2.14 times more context tokens.

Where the memory savings come from
With classic attention, memory grows linearly with context length: MLA stores a compressed latent for each token, so a layer costs O(L · d_c). Linear attention compresses the history into a fixed-size state: a d_k × d_v matrix per head. So the storage cost is O(H · d_k · d_v), independent of L.
Linear attention helps with speed, too. When the KV cache becomes the bottleneck, the hybrid model handles more requests at once and beats all-MLA on throughput: at 4k–128k context, the gain is around 20%. The generation speedup also grows with length: from 1.15× at short context to 1.25× at 131k.
But linear attention is harder to train at this scale: activations can grow and the loss can diverge. To stabilize training, we changed the initialization, the gate activation in the GDN normalization, and the norm type.
What exactly we changed for stability
In the gated RMSNorm at the GDN output, we replaced the SiLU gate activation with 2 * sigmoid. The gate weights start near zero, so 2 * sigmoid(w * x) ≈ 2 * sigmoid(0) = 1.0. At the start, such a gate lets the signal through almost unchanged. SiLU at zero gives 0, meaning it initially cuts the signal almost completely, and at large values it's unbounded from above and can blow up activations. We also changed the init for A_log: from log(uniform(0, 16)) to log(uniform(1, 16)).
We tuned the share of linear layers separately. We needed to lower inference cost without hurting quality. We compared two options: keeping MLA in every second layer or in every fourth. They were almost identical on the main metrics, so we kept MLA in every fourth layer: the memory savings are bigger, and quality didn't drop.
In the end, linear attention gave us cheaper long context and higher throughput under load. On the main benchmarks, the model stayed at the same level or got better: we got faster inference without sacrificing quality, but along with it.
Multi-Token Prediction
MTP is another way to speed up GigaChat 3.5 inference. The model already had one MTP head in version 3.0: along with the current token, it predicted the next one. In 3.5, we added two more heads.

Illustration of multi-token prediction from the DeepSeek-V3 technical report
At inference time, MTP works as self-speculative decoding. In a single forward pass, the model proposes a draft several tokens ahead, and the main head verifies it and accepts the correct part. No separate draft model is needed.
The key metric is accept length — the average number of tokens the model accepts per step. Without MTP, accept length is 1. The old single-head variant gave about 1.8 tokens per step. The new one gives about 2.3–2.5.
In terms of speed, greedy decoding gets 1.5× faster with one head and up to 2.2× with two. The third head adds only a small extra effect over two, so most of the practical gain comes from the first two. As temperature rises, the speedup decreases, but even at t = 1.0 it stays around 1.5×.
Training the MTP heads is cheap and has almost no effect on model quality. Another useful effect is that accept length transfers well from the base version to the instruct version.
How we added the heads
To initialize MTP-2 and MTP-3, we took the MTP-1 block weights obtained after pretraining. First we trained only the new blocks, freezing the rest of the model's layers. Then we fine-tuned them end-to-end together with the model during alignment. End-to-end training noticeably increased accept length.
Generating draft tokens also requires compute. To lower the cost, we built the MTP blocks with a dense FFN. Linear attention isn't supported in them yet: they use full MLA attention.
MTP is especially useful on a large model. At 432 billion parameters, every generation step is expensive, and without MTP it yields just one token. MTP lets the model accept several tokens per step and spread the cost of a forward pass across them.
What we changed in the training recipe
Architectural stability isn't enough. Even if the model doesn't diverge, that doesn't mean it's learning efficiently. At large scale, problems can hide in the quirks of the optimizer and only show up over long training runs.
We noticed that our models' metrics often plateau and then improve only slightly. To figure out why, we looked at the dynamics of weight updates: how large the optimizer steps are, which terms dominate, and whether training is turning into an overly cautious mode.
Suspicion fell on the AdamW parameters. Toward the end of training, steps became so small that the second moments of the gradients were comparable in scale to eps, the parameter added to the denominator for numerical stability. For more than 90% of parameters, eps became the dominant term. This meant the model was effectively losing information about the second moments. Instead of AdamW, optimization started behaving more like SGD with momentum. In the new models we reduced eps, after which the metrics kept improving for longer and reached higher values.
How we test pretraining features
Above, we described the architectural and training changes that made it into the new model: gates, extra normalizations, activation clipping, linear attention, MTP heads, and optimizer tweaks. But coming up with a feature and wiring it into the code is only half the job. Then you need to make sure it actually helps rather than just happening to coincide with a lucky run.
In pretraining, there's almost always one more useful thing you want to try: new data, a different loss, an architectural trick, a pipeline tweak. But each such experiment is expensive, and you need the answer now, not in six months.
The naive approach goes like this: train a baseline, train a model with the feature, run benchmarks, see +0.7 — hooray, the feature wins. The problem is that a single LLM run isn't the truth, it's one roll of the dice. The same configuration with a different seed can land on a different final metric, and sometimes seed noise is larger than the effect of the feature itself.
So, we started looking at distributions instead of single points. For the baseline, we run several seeds and estimate the natural spread. Then we do the same for the feature setup and compare two small samples: how much the mean shifted, whether the variance grew, whether the effect holds across different benchmarks, and whether training stability broke.
Since there are only a few runs, classic A/B testing doesn't help much here. Instead of one "magic" p-value, we use several thermometers: delta, std, t-test, permutation test, and Bayesian bootstrapped A/B. If they all point the same way, the delta exceeds the natural noise, and auxiliary metrics like activations and weights behave calmly, then the feature is worth discussing seriously.
In parallel, we refined the test setups themselves: we picked baseline models of the right size, found the minimum number of tokens after which metrics converge well enough, and worked on reducing benchmark variance. In some cases, this cut the cost of a reliable experiment several times over.
The main takeaway is simple: a single benchmark score is weak evidence. For us, a feature's effect is a signal against noise. And it's better to spend a little more time on an honest small experiment than to carry a random lucky break into full-scale training and learn the truth too late.
Training infrastructure
Efficiently training a model with hundreds of billions of parameters is an engineering challenge in its own right. In this chapter, we'll cover the two most significant infrastructure changes, what they gave us and how we rolled them out.
Float8
We used FP8 in training. From an infrastructure perspective, training any model can be viewed from three angles: compute, communication, and memory. FP8 let us improve each of these components.
Compute. All matrix multiplications in training fall into two groups: regular General Matrix Multiply (GEMM) and Grouped GEMM. The former are used in regular projections, the latter in expert computations, and we can run both groups in FP8.
For stable and efficient GEMM and Grouped GEMM, we used DeepSeek's quantization recipe: weights are quantized in 128×128 blocks, activations in 1×128 blocks. For GEMM we used NVIDIA's cuBLAS, and for Grouped GEMM we utilized DeepSeek's DeepGEMM, which we adapted to our infrastructure and sped up further.

The compute optimizations sped up training by tens of percent and reduced memory consumption with no change in quality compared to bfloat16 training.
Communication. All communication in training can be split by what we send, meaning weights or activations. The former is FSDP, the latter is expert parallelism communication, where experts live on different GPUs and we send tokens between devices. We run both types of communication mostly in FP8.
Memory. We gained on memory too. Since we use activation checkpointing, we store some of the intermediate activations in FP8 for recomputation on the backward pass. This cut peak GPU memory usage by a whopping 20%.
To make the whole infrastructure work smoothly and efficiently, we wrote many kernels in Triton, and later rewrote some of them in CUDA where we hit Triton's limitations.
CPU offload
On large models, memory runs short even with activation checkpointing. Here's how CPU offload won us back up to two dozen gigabytes per device — and sped training up instead of slowing it down.
While using activation checkpointing on large models, we ran into a non-obvious problem. Even when activations inside a block aren't saved, PyTorch still has to save the inputs to checkpointed blocks in order to rerun the forward pass during backward. With hundreds of billions of parameters, these inputs alone start taking up tens of gigabytes of GPU memory, so we added CPU offloading for them: during forward we offload some of the tensors to the CPU, and bring them back before backward.
We split the MoE decoder layer into three checkpointed blocks: attention, the MoE block, and the post norm after MoE but before the residual. This split turned out to be important not only for memory but for performance, too. If you include the post norm inside the MoE block, PyTorch will recompute the whole fragment during backward, including the expensive combine operation after the experts. So we moved the post norm out separately: this way we don't force autograd to rerun the expensive communication part of MoE.

Memory profile without offload: the activation peak grows toward the end of forward.
With offload, the peak from growing activations disappears. This run freed up ~16 GB; on top of that, the MoE block inputs are stored in fp8 — 3.2 GB instead of 6.4 GB.

Memory profile with offload
On paper, CPU offloading looks simple: put a tensor on the CPU, then bring it back. In practice, the main difficulty came from communication. We copied GPU→CPU in a separate CUDA stream and saw in the traces that communications overlapping with offloading sometimes stretched out noticeably. This was especially visible with DeepEP, and less so with NCCL all-gather. The practical takeaway: you need to control which tensors to offload but also when the offload starts. We built a shared schedule for activation offloads and communications so that they don't compete, and the communication stretching went away.
CPU offload turned out to be not just a knob for managing memory, but a lever for speeding up training. You can flexibly choose which blocks' inputs to offload — attention, MoE, or post norm — so the savings can be tuned from roughly 7 to 20 GB per device (432B, 40 layers). The freed memory let us increase the micro-batch size, which gave a speedup of tens of percent, and on long contexts it let us reduce sequence parallelism and avoid expensive internode communication.
Alignment
We built a staged training pipeline: first SFT, so the model learns the communication style and basic formats; then DPO for initial preference calibration; and only after that, online RL to generalize the model's knowledge. This training order gave the highest final metrics.
Training ran in asynchronous mode: the train and inference parts of the process ran on different groups of compute resources to avoid idle time and get through training steps faster. To save memory and speed things up, we used FP8 precision both when the model generated answers and when it was trained. We additionally sped up generation with MTP.
We also separately solved the problem of mismatches between how the model behaves during training and during generation. Thanks to this, we didn't have to do an expensive extra recomputation of answer probabilities with the old version of the policy, or use stabilizing techniques like TIS. As a result, the model managed to go through enough steps to converge, while training remained reasonably stable.
On stability, a few improvements had the biggest impact: using R3, computing the final logits in lm_head in FP32, consistent FP8 quantization in the train and inference parts, and moving the most sensitive operations to higher precision.
For more stable training, we used skip filtering. The idea is simple. In our algorithm, the model learns from the difference in scores between several answers to the same question. But there are questions where all of the model's answers turned out equally good or equally bad — there's no difference, which means there's nothing to learn from them: such an example carries no useful signal and just eats up compute. Skip filtering drops these empty examples at the weight update step. We did it carefully so as not to lose speed — the model simply doesn't waste time on what teaches it nothing.
We also worked separately on the ML part. The main task was to stabilize the asynchronous mode when generating answers and updating the model happen in parallel rather than strictly in turn. For this, we used the CISPO algorithm (Clipped Importance Sampling Policy Optimization). Put simply, it keeps the model from changing its behavior too abruptly in a single step. It's exactly these jerks that often wreck long training runs; CISPO smooths them out and helps training converge reliably even on long runs. We also added a curriculum sampler — essentially a smart teacher that matches task difficulty to the current stage: easier at first, harder later. The process became smoother, and the metrics grew steadily.
We focused on five domains: math, code, natural sciences, social sciences, and conversation in Russian. To evaluate dialogs, we used the GRM (Generative Reward Models) approach: a separate judge model that scores the answers of the current version of the model being trained.
A good reward function is half the battle. The reward has to give the model a clear signal of "what good looks like", otherwise there's nothing to improve on. And this is where the main trap lies — reward hacking: the model finds a loophole that sharply increases the reward but breaks the adequacy of its answers. Formally the "score" goes up, while in reality quality goes down.
This is exactly where we ran into a classic pitfall: when training on dialogs, the judge systematically praised longer answers, and the model quickly figured this out — it started inflating its generations for the sake of reward rather than meaning. At the same time, in math and code long reasoning chains are genuinely useful and honestly improve metrics, so you can't simply ban length.
We solved this problem with two penalties. The domain overlong penalty punishes verbosity where it isn't needed but leaves room for reasoning in math and code, while the repetition penalty weans the model off going in circles. In the end, we were able to flexibly control the model's behavior and break it of the habit of waffling on by giving answers like a student stretching a thesis to the required length.

To build the right training schedule, we ran a lot of experiments. The conclusion was this: first the model needs to learn the basics — communicating with the user in a friendly and safe way — and only then gradually bring in complex domains, step by step increasing the share of specialized data and its difficulty.
The logic is the same as in regular studying: there's no point in giving integrals to someone who hasn't mastered arithmetic yet. This order gives the model the densest possible training signal at each stage — and to ensure this, we implemented a per-domain curriculum sampler that picks the right data mix for the current stage on its own.
The result is a model that has learned to hold a high-quality dialog but also noticeably improved in math, code, and the sciences.
Metrics
The whole recipe from the previous chapters — the organic dataset, the extra code samples, the stabilizing architecture tweaks, and the cleaned-up optimizer — helped us build a significantly stronger pretrained base on which the GigaChat 3.5 models will be built. On general tasks, GigaChat-3.5-Ultra-Base outperforms both DeepSeek V3.2 Exp Base and DeepSeek V4 Flash Base.

Math is one of the base model's strongest areas. On average across MinervaMATH, GSM8K, and MGSM, the model takes first place, confidently ahead of DeepSeek V4 Flash and DeepSeek V3.2 Exp Base.

We'd also like to highlight the big progress on coding tasks. Thanks to the updated pretraining dataset (from 16 languages to more than 600), the model breaks away into a confident first place on coding tasks, far ahead of both DeepSeek V4 Flash and DeepSeek V3.2 Exp Base. This is the clearest example of how reworking the dataset affects the model's final metrics.

Above, we already described what's new in this release: the Online RL stage, which greatly helped improve Instruction Following and arena metrics. After going through all four post-training stages, the final model is comparable to DeepSeek V3.2 in metrics while being one and a half times smaller:

Thanks to the updated data assembly recipe and the addition of online RL, our model has become significantly better than the previous version, according to MiniMax-M2.7, which we used as the LLM judge.

This way, we managed to build a very fast and smart model that also performs really well in arenas.
Conclusion
For us, GigaChat 3.5 Ultra isn't just the next number in the lineup; it's a test of the hypothesis that a hybrid architecture with linear attention can be scaled to hundreds of billions of parameters without trading quality for speed. The test was a success: the model is 40% more compact than the previous flagship, uses a quarter of the cache per token, and runs up to 2.2× faster thanks to MTP, while getting stronger in code, math, and agentic scenarios. The key turned out to be not some single trick, but discipline: every speed-up feature was paired with a stabilizing one, and every change was tested on a distribution of runs rather than on a single lucky point.
We're open-sourcing the model because we believe recipes like these should be tested by the community, not just by internal benchmarks. The weights are available on HuggingFace and GitVerse under the MIT license.
And if you'd like to take part in developing our lineup, fixing the old and building the new, come work with us. We're always happy to work with strong engineers who aren't afraid of hard problems.
