All posts
Infrastructure
Modal Team
20 min read

Best Compute for RL Fine-Tuning Reasoning Models (GRPO) in 2026

Reinforcement learning has become a widely used component of reasoning-model post-training, with DeepSeek-R1 helping popularize GRPO (Group Relative Policy Optimization) as a memory-efficient alternative to PPO because it eliminates the separate critic model. For AI teams building coding agents, tool-use systems, and complex reasoning applications, selecting the right compute platform directly impacts iteration speed, training costs, and time to production. A purpose-built AI infrastructure platform can transform how teams approach RL fine-tuning by eliminating infrastructure complexity while providing the scale needed for production workloads. This guide examines seven compute options for GRPO fine-tuning in 2026, starting with Modal, a serverless platform that natively integrates sandboxes, training, and inference for end-to-end RL workflows. The seventh entry covers self-hosted GPU infrastructure running NVIDIA NeMo RL, which is an open-source post-training library rather than a compute provider, and is included here because self-managed clusters remain a common deployment path for frontier-scale GRPO.

Best compute for RL fine-tuning reasoning models with GRPO in 2026

Group Relative Policy Optimization (GRPO) trains a language-model policy from groups of sampled responses, using rewards normalized within each group instead of a learned value model. Removing the critic simplifies the stack compared with PPO, but GRPO still creates a demanding systems problem: each prompt needs several rollouts, reward evaluation may execute untrusted code, and training alternates between inference-heavy generation and memory-heavy optimization. The best base checkpoint depends on the behavior you want to teach and the hardware available. Qwen3 offers a broad ladder of dense and mixture-of-experts models under Apache 2.0. AI2's OLMo 3 family adds unusually transparent data, code, checkpoints, and training artifacts. This guide ranks the infrastructure and six base models that form the strongest practical shortlist for GRPO work in 2026. Hardware figures are planning ranges, not guarantees; sequence length, group size, rollout engine, precision, optimizer, sharding, and checkpointing can change memory use substantially.

Key Takeaways

1. Modal

Modal is the infrastructure entry in this ranking: the platform on which the models below can generate rollouts, execute rewards, update weights, and move into production. GRPO has distinct resource phases. Generation benefits from high-throughput inference and broad concurrency, while optimization needs tightly connected GPUs and reward functions may need thousands of isolated CPU or GPU environments. Modal exposes all three through Python rather than requiring teams to operate a persistent Kubernetes cluster.

How Does Modal Work for GRPO?

Infrastructure Capabilities

GRPO stageModal resourcesTypical use
Prototype1x A100, H100, or H200Small-model LoRA, reward debugging, short rollouts
Distributed update4-8 GPUs per node; multi-node when requiredFull-parameter or larger-model policy optimization
Rollout generationAutoscaling L4, A10, A100, H100, H200, or B200 FunctionsParallel sampling with vLLM or SGLang
Reward evaluationElastic CPU/GPU SandboxesTests, compilers, simulations, and model-based judges
Best For: Teams that want to iterate from a one-GPU GRPO experiment to distributed training and production inference without building and maintaining separate cluster, rollout, and sandbox systems.

2. Qwen3-30B-A3B-Base

Qwen3-30B-A3B-Base is the standout MoE option in this list. It combines 30.5B total parameters with roughly 3.3B active parameters per token, offering substantially more representational capacity than a 3B dense model without paying dense 30B compute on every generated token.

Architecture Specifications

GRPO Training Characteristics

Sparse activation helps with the repeated forward passes that dominate GRPO rollout generation. It does not make this a 3.3B model for memory planning: training must place or shard all 30.5B expert weights, gradients, and optimizer state. Expert load balancing and framework support also add complexity. It is strongest when rollout throughput matters and the team can use FSDP, ZeRO, expert parallelism, or LoRA effectively.

Hardware Requirements

ConfigurationSuggested hardwareNotes
Quantized rollout serving1x 48-80GB GPUDepends on quantization, KV cache, sequence length, and concurrency
LoRA/QLoRA GRPO2-4x 80GB GPUsPolicy, reference, rollout engine, and long groups can require additional capacity
Full-parameter GRPO8+ 80GB GPUsUse FSDP/ZeRO, activation checkpointing, and optimizer sharding; production runs may need multiple nodes
Best For: Teams seeking the best balance of model capacity and active-token compute, with enough distributed-systems experience to manage MoE training.

3. OLMo-3-1125-32B

OLMo-3-1125-32B is the largest dense checkpoint in this ranking and the best fit for researchers who value openness across the training stack. AI2's OLMo program publishes more than weights: recipes, data documentation, intermediate artifacts, and evaluation details make the family especially useful for controlled post-training research.

Architecture Specifications

Full Transparency

A dense 32B policy provides predictable kernels and avoids expert-routing imbalance, but every rollout token touches the full network. That makes generation more expensive than on Qwen3-30B-A3B and makes sharding unavoidable for full training. In return, researchers get a cleaner architecture for studying reward design, clipping, KL control, and group-size effects without MoE routing as another variable.

Hardware Requirements

ConfigurationSuggested hardwareNotes
Quantized rollout serving1x 80GB GPU or 2x 48GB GPUsLeave headroom for KV cache and grouped generations
LoRA/QLoRA GRPO4x 80GB GPUsMay fit on fewer GPUs with aggressive quantization and short contexts
Full-parameter GRPO8-16+ 80GB GPUsDistributed optimizer state, policy/reference placement, and rollout workers drive the range
Best For: Open-science teams that need a high-capacity dense model and want to inspect or reproduce more of the pretraining and post-training pipeline.

4. Qwen3-14B-Base

Qwen3-14B-Base is a strong dense middle ground: materially more capacity than 7B-8B models while remaining far easier to train than dense 32B checkpoints.

Architecture Specifications

GRPO Training Characteristics

The regular dense topology works well with mainstream FSDP and ZeRO recipes and avoids MoE-specific communication. It is large enough to develop sophisticated reasoning after a good SFT cold start, but small enough that a single multi-GPU node can support meaningful LoRA GRPO runs. Group size and maximum completion length remain major cost levers because each prompt produces multiple full-policy generations.

Hardware Requirements

ConfigurationSuggested hardwareNotes
Rollout serving1x 40-48GB GPU in BF16 or smaller with quantizationKV cache and concurrency determine practical limits
LoRA/QLoRA GRPO1-2x 80GB GPUsSeparate rollout workers improve throughput
Full-parameter GRPO4-8x 80GB GPUsUse FSDP/ZeRO and activation checkpointing
Best For: Teams wanting a capable dense policy that still fits practical single-node GRPO workflows.

5. Qwen3-8B-Base

Qwen3-8B-Base is the most broadly practical Qwen checkpoint here. It offers enough capacity for meaningful math, code, and instruction-following rewards while keeping rollout experiments fast enough for frequent iteration.

Architecture Specifications

GRPO Training Characteristics

At 8B, researchers can afford more ablations across reward functions, group sizes, KL coefficients, and sampling temperatures. That often matters more than choosing a larger model too early. A compact policy also reduces stale-policy delays between generation and updates. For code or math, begin with verifiable rewards and monitor reward hacking rather than assuming a higher training reward means better generalization.

Hardware Requirements

ConfigurationSuggested hardwareNotes
Rollout serving1x 24GB GPU with quantization; 1x 40GB for more headroomLong completions and larger batches increase KV-cache use
LoRA/QLoRA GRPO1x 40-80GB GPUTwo GPUs can separate training from generation
Full-parameter GRPO2-4x 80GB GPUsOptimizer sharding and activation checkpointing recommended
Best For: GRPO research, reproducible baselines, and teams that prioritize iteration speed without dropping to a very small model.

6. OLMo-3-1025-7B

OLMo-3-1025-7B brings OLMo's open development philosophy to a resource-efficient scale. It is especially compelling for teams studying how GRPO changes a policy, because its surrounding artifacts make it easier to connect post-training behavior to the underlying model.

Architecture Specifications

Full Transparency Advantages

The 7B dense scale is well suited to controlled GRPO studies. Teams can retain a frozen reference model, sample multiple responses, and run a trainable policy without a large cluster. OLMo's transparency is useful when testing hypotheses about reward shaping, data contamination, and capability shifts, although Qwen generally has broader deployment-tool support and a larger fine-tuning community.

Hardware Requirements

ConfigurationSuggested hardwareNotes
Rollout serving1x 24GB GPU with quantizationUse more memory for long contexts or high concurrency
LoRA/QLoRA GRPO1x 40-80GB GPUComfortable range for policy plus short grouped rollouts
Full-parameter GRPO2-4x 80GB GPUsSharding is typically required once optimizer state and activations are included
Best For: Reproducible GRPO research, interpretability work, and teams that prefer open training artifacts over the broadest model ecosystem.

7. Qwen3-4B-Base

Qwen3-4B-Base is the most resource-efficient recommendation in this ranking. It is large enough to learn useful reasoning patterns, yet small enough to support rapid experiments and parameter-efficient training on a single modern GPU.

Architecture Specifications

GRPO Training Characteristics

Low rollout cost makes Qwen3-4B-Base ideal for tuning the GRPO system before scaling. Teams can test sparse versus dense rewards, response-group sizes, clipping, and sampling policies without consuming a large GPU cluster. It is also a realistic target for end-to-end code-reward experiments where each candidate must be compiled or tested in a Sandbox. For narrow domains, a carefully designed SFT cold start followed by GRPO can outperform a much larger untuned base model, but results depend on data and reward quality.

Hardware Requirements

ConfigurationSuggested hardwareNotes
Rollout serving1x 16-24GB GPUQuantization increases batch and KV-cache headroom
LoRA/QLoRA GRPO1x 24-48GB GPUA practical single-GPU starting point
Full-parameter GRPO1x 80GB or 2x 40-48GB GPUsConventional AdamW state alone is large; use checkpointing, sharding, or lower-memory optimizers
Best For: Resource-constrained teams, reward-function prototyping, education, and fast GRPO ablation studies.

Why Modal Stands Out for GRPO Fine-Tuning

Documented GRPO Examples for verl and TRL

Modal provides runnable, maintained examples for two leading GRPO paths: a distributed GRPO implementation with verl and a GRPOTrainer workflow with Hugging Face TRL. Teams can start from concrete image definitions, GPU configuration, storage, and launch code rather than translating a local notebook into cloud infrastructure from scratch.

Serverless Economics for Bursty RL Workloads

GRPO rarely uses every resource uniformly. Rollout workers spike during sampling, reward workers fan out during evaluation, and tightly connected training GPUs become critical during updates. Modal bills compute by actual usage and lets resources scale to zero between runs. That model avoids keeping a fixed cluster idle while researchers inspect traces, adjust a reward, or prepare the next batch.

Secure Sandboxes for Reward Evaluation

Coding and agentic rewards often execute model-generated programs. Modal Sandboxes provide isolated, ephemeral environments backed by gVisor, with resource and network controls. Reward workers can compile code, run tests, or interact with tools without granting generated programs direct access to the trainer or host environment.

Fast Cold Starts

Rollout and reward fleets must expand quickly or expensive training GPUs wait for samples. Modal's custom container runtime and filesystem are engineered for fast startup, while Memory Snapshots can restore initialized CPU state and, through an Alpha capability, GPU state. Faster provisioning shortens the feedback loop and helps keep each GRPO stage supplied with work.

Code-First Development Without Infrastructure Overhead

GPU types, container images, secrets, volumes, concurrency, retries, and schedules live alongside the training application in code. Modal handles provisioning and cluster orchestration. Researchers can move the same Python project from a local entry point to remote rollout generation and multi-node optimization without maintaining Helm charts or a permanent control plane.

Enterprise Security and Compliance

Modal has completed a SOC 2 Type II audit, uses gVisor-based workload isolation, and supports HIPAA-compliant workloads on Enterprise plans through a BAA. Enterprise controls, auditability, and isolated reward execution matter when proprietary training data and generated code share one RL workflow.

Run a documented GRPO workflow on serverless GPUs and scale it when your experiments are ready.

Explore the GRPO Examples

Frequently asked questions

  • Group Relative Policy Optimization is an online reinforcement-learning method that samples a group of responses for each prompt, scores them, and computes advantages by comparing rewards within the group. Unlike PPO, GRPO does not require a separately trained critic or value model. That reduces model-state and orchestration complexity while preserving direct optimization against verifiable or learned rewards. It is important because it has become a practical method for improving reasoning, mathematics, coding, and tool use, although it still requires substantial rollout generation and careful controls against reward hacking.

  • Qwen3-4B-Base is the best starting point when GPU memory and budget are tight. Quantized rollout serving can fit on a 16 to 24GB GPU, and LoRA or QLoRA GRPO is practical on a 24 to 48GB GPU for moderate sequence lengths and group sizes. OLMo-3-1025-7B is the stronger choice when research transparency matters more than the smallest footprint, while Qwen3-8B-Base provides more capacity if an 80GB GPU or a small multi-GPU setup is available.

  • Modal combines autoscaling GPU Functions for rollouts, distributed multi-node training, persistent checkpoint storage, and isolated Sandboxes for reward evaluation. Its documentation includes complete GRPO examples for verl and TRL. After training, the same project can expose the model through Modal Inference with autoscaling and fast cold starts, avoiding a separate deployment stack.

  • Qwen3 provides a wider size range, both dense and MoE architectures, Apache 2.0 licensing, multilingual pretraining, and broad support across common serving and fine-tuning tools. OLMo 3 emphasizes scientific openness: AI2 releases extensive training documentation and artifacts that make the model easier to inspect and reproduce. Qwen3 is usually the pragmatic choice for ecosystem breadth and deployment flexibility; OLMo 3 is particularly valuable for controlled research where provenance and training transparency are first-class requirements.

  • They can achieve state-of-the-art results on a defined task when the SFT data, reward, evaluation, and compute are strong, but no base checkpoint guarantees state-of-the-art general performance. GRPO can substantially improve verifiable domains such as math and code, yet narrow rewards may cause overfitting or reward hacking. Compare against held-out benchmarks, pass rates, and qualitative behavior, and distinguish scores from post-trained Qwen or OLMo variants from the capabilities of the corresponding Base checkpoint.

  • For Qwen3-4B, LoRA or QLoRA GRPO can start on one 24 to 48GB GPU; 7B to 8B models are more comfortable on one 40 to 80GB GPU; 14B commonly uses one to two 80GB GPUs for parameter-efficient training; and 30B to 32B models generally need four or more 80GB GPUs. Full-parameter GRPO requires significantly more memory because the policy, reference weights, gradients, optimizer state, activations, and rollout KV cache may coexist. Sequence length, response-group size, precision, quantization, FSDP or ZeRO sharding, CPU offload, and whether rollout workers are separate can move these ranges substantially.

View GRPO Examples

Start GRPO fine-tuning on Modal.

$30 in free compute to get started.