AI Cloud Architect

Accelerate agentic tool calling with serverless model customization in Amazon SageMaker AI

AWSHow-to by Lauren Mullennex, Eric Saleh and Surya KariAWS 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.

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

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.

The same at other vendors