Reinforcement learning (RL) of LLMs computes each token's probability twice, once in rollout and once in the trainer, and expects the two to be bitwise consistent. In practice they differ, and this training-inference mismatch (TIM) can make training collapse. TIM mainly comes from parallelism. An engine splits its computation across GPUs, runs the pieces in parallel, and combines their results by a reduction, mostly an addition. Floating-point addition is non-associative, so adding in different orders gives different results. Existing work takes two directions. The first forces rollout and the trainer to add in one agreed order. Each engine then gives up its own configuration (e.g., its batch size and parallel degrees), which can cost up to 91% of the training throughput. The second keeps parallelism and mitigates TIM in the algorithm, which adds up to 47% to the step time and leaves the mismatch. Both thus trade parallelism against bitwise consistency, and the two appear to conflict. Our key insight is that what really conflicts with bitwise consistency is not parallelism, but the non-associative reductions in parallelism. If these reductions are eliminated, the two can coexist. We present Unimatch, which makes these reductions associative with two techniques. Structural elimination changes how a computation is split, so that each GPU computes complete outputs and the reduction is a gather without any addition. Arithmetic elimination changes the operation of a reduction to integer addition, which is associative. With Unimatch, the two engines return bitwise-identical results under their own configurations, and Unimatch achieves the performance of the unmodified engines (0.98-1.04x their step time). In 300 RL steps on Qwen3-30B-A3B, training on the unmodified engines collapses, with and without a standard algorithmic mitigation, and training with Unimatch keeps improving.
Modern LLMs strain device memory through large model weights and attention states, particularly in resource-constrained scenarios. Existing systems separately provision memory for model weights and attention states, imposing fixed fixed boundaries that cannot adapt to the changing memory demands of workloads. Under heavy workloads, insufficient state capacity limits request concurrency and reduces throughput; under light workloads, idle memory in one region cannot be reallocated to another, wasting device memory. Meanwhile, modern LLM architectures introduce heterogeneous tensors with diverse layouts and lifetimes, further complicating memory management. These problems motivate unified memory management for heterogeneous tensors. However, a shared pool alone does not make memory directly reusable across tensors with different allocation granularities and execution layouts. This paper presents Rimuru, a modern LLM serving system that unifies memory management through elastic expert offloading. Rimuru establishes a shared page pool to enables elastic memory sharing across heterogeneous tensors. To accommodate different allocation granularities, Rimuru introduces memory views that allow each tensor type to interpret the shared memory space using its own page size and page table. Furthermore, Rimuru combines huge-page alignment with a multi-level page allocator that splits and merges pages, enabling cross-type capacity reuse. A page-table-aware fused MoE kernel directly accesses non-contiguous expert weights, avoiding copy overhead. Building on these mechanisms, Rimuru employs a workload-aware adjuster that dynamically reallocates pages across tensor types according to runtime demands. Implemented on top of vLLM, Rimuru remains compatible with modern LLMs. Evaluations show that Rimuru achieves up to 19.03x baseline throughput and reduces TTFT by 98.1% on average.