A team at Amazon has demonstrated how to fine-tune the GPT-OSS-20B model for multilingual reasoning using Amazon SageMaker HyperPod. This work addresses a critical challenge in deploying open-weight language models to non-English-speaking users: ensuring that the model reasons and answers in the requested language, rather than defaulting to English. Source: aws.amazon.com.
Base Model Limitations
The base GPT-OSS-20B model thinks in English. It fails to reason in French, German, Spanish, or Italian—even when instructed to do so.
No correct reasoning was generated in French, German, Spanish, or Italian.
This gap breaks user trust. A user asking in French expects a French response. English reasoning undermines usability and accessibility.
Training Approach: SFT and GRPO
The team used two phases: supervised fine-tuning (SFT) first, then reinforcement learning with Group Relative Policy Optimization (GRPO).
SFT teaches a model a behavior it lacks. Here, it teaches the model to reason in the requested language.
GRPO refines a behavior the model already produces sometimes. It does not teach from scratch—it improves existing performance.
How SFT Works
After SFT, the model reasons correctly in all five languages—English, French, German, Spanish, and Italian.
Reasoning-language accuracy jumps from 22% to 100%. This is a foundational shift.
The model’s English prior affects final answers.
How GRPO Works
GRPO improves answer-language accuracy, building on SFT results.
It works because the model already produces some correct answers—especially in German and French.
This refinement is meaningful in real-world use.
Validation and Comparison
A controlled test on Qwen2.5-7B-Instruct confirmed the pattern across two tasks.
On multilingual reasoning—where performance starts low—SFT and GRPO improved accuracy by 6–8 percentage points.
Most response groups were all-correct. No learning signal emerged.

This shows GRPO only works when there is headroom—when the model produces some correct responses.
Key Technical Details
- Training ran on Amazon SageMaker HyperPod with Amazon EKS orchestration for scalable, distributed training.
- Base model, data, and checkpoints were stored on Amazon FSx for Lustre—enabling fast, low-latency access.
- Inter-node communication used Elastic Fabric Adapter (EFA), reducing GPU-to-GPU latency and boosting throughput.
- Distributed training was managed by Ray and KubeRay, ensuring fault tolerance and scalability.
These tools enabled rapid response sampling and faster convergence during training.
Best Practices for Model Fine-Tuning
- Start with SFT: Teach the model the missing behavior first. Without it, GRPO has nothing to refine.
- Use GRPO only when there is headroom: The model must already produce some correct responses. If not, GRPO adds no value.
- Check for reward headroom before running GRPO: Verify that pass@k is significantly higher than pass@1. If not, no learning occurs.
- Use LoRA consistently across both SFT and GRPO: It maintains stability and allows seamless transitions between phases.
GRPO’s gains are modest—adding 6 to 8 percentage points in answer-language accuracy. These improvements matter in real-world use.
Why This Matters
For teams deploying AI to non-English users, correct language use is essential. English reasoning in a French prompt breaks trust and usability.
This method provides a clear, scalable path to build linguistically accurate models. It ensures alignment with user expectations.
Limitations and Open Questions
GRPO only adds value when there is a capability gap. On tasks like GSM8K, where the model is already at peak performance, it delivers no improvement.
Gains are modest—suggesting GRPO is best for tasks with clear gaps, not for models already at peak.
Testing is limited to one dataset and two models. Broader validation with real user interactions is needed.
The full pipeline and scripts are available in the awsome-distributed-inai GitHub repository.
For more on Amazon SageMaker HyperPod, see the service detail page.
For a deeper look at distributed training on HyperPod, see the related post on Ray and SageMaker Studio.
Conclusion
Supervised fine-tuning is essential.
GRPO adds modest gains—up to 8 percentage points—when there is headroom. It improves answer-language accuracy without breaking reasoning correctness.
Teams should assess whether a behavior is missing or already present. Using the right technique at the right stage ensures efficient and effective tuning.
This approach shows open-weight models can serve diverse linguistic communities—when fine-tuned with care and precision.
Sources & further reading
Featured image: original publisher image. Via original publisher. Image source

