Accelerate agentic tool calling with serverless model customization in Amazon SageMaker AI
AWS•How-to••by Lauren Mullennex, Eric Saleh and Surya Kari•AWS Artificial Intelligence Blog
In this post, we walk through how we fine-tuned Qwen 2.5 7B Instruct for tool calling using RLVR. We cover dataset preparation across three distinct agent behaviors, reward function design with tiered scoring, training configuration and results interpretation, evaluation on held-out data with unseen tools, and deployment.
SageMaker AI serverless customization can fine-tune Qwen 2.5 7B Instruct for tool calling with RLVR, raising a custom tool call reward from 0.35 to 0.55 on held-out tools.
Who it is for
Teams building agents on SageMaker AI that need models to pick the right tool, ask for missing parameters, and refuse unsafe requests.
Key points
Authors report a 57% tool call reward gain on 300 held-out examples with unseen tools (AWS's own evaluation).
Training used 1,500 synthetic examples, batch size 128, learning rate 5e-6, 3 epochs, 8 rollouts; about 40 minutes.
Deployment targets are a SageMaker AI endpoint or Amazon Bedrock, or downloaded weights from Amazon S3.
AI:Both show RL fine-tuning of a small open model for tool-calling agents; AWS uses a managed serverless service while Google runs an open framework (Tunix) on its own TPUs.
Related posts
AWS•How-to••by Giuseppe Zappia, Ankita Agarwal, Amin Dashti and Michael Oguike•AWS Artificial Intelligence Blog
AI:A step-by-step pipeline distills a frontier teacher's shopping-agent trajectories into a 4B Qwen3.5 student via SeqKD, filtered by a task scorer, trained serverlessly on SageMaker AI and served as a LoRA adapter.
AI:SageMaker AI MTRL can fine-tune a Qwen3.6-27B search agent with reinforcement learning, using nDCG@10 as the reward; AWS reports better retrieval quality and far fewer failures.
AI:Amazon SageMaker AI multi-turn RL guidance for training agents: build a reproducible simulated environment, use a held-out external evaluation, design a dense reward, and watch completion versus correctness metrics.