Get the daily emailDaily email
  1. Home
  2. Guides
  3. This story

Distilling a shopping agent with sequence-level knowledge distillation on SageMaker AI

AWS walks through sequence-level knowledge distillation (SeqKD) for an agent: a GLM-5.3 teacher on Amazon Bedrock generates multi-step trajectories on ShoppingBench, only the solved ones are kept, and a Qwen3.5-4B student is fine-tuned with serverless SFT on…

Published Read the original
Distilling a shopping agent with sequence-level knowledge distillation on SageMaker AI

Why it matters

A practical way to cut the cost of agents that make many frontier-model calls per task.

What happened

1 min read

AWS walks through sequence-level knowledge distillation (SeqKD) for an agent: a GLM-5.3 teacher on Amazon Bedrock generates multi-step trajectories on ShoppingBench, only the solved ones are kept, and a Qwen3.5-4B student is fine-tuned with serverless SFT on SageMaker AI. The student is evaluated on a held-out split and served from a real-time endpoint.

inscraper analysis

Our analysis

SeqKD with rejection sampling is well known, but applying it to tool-using agent trajectories with full code makes this useful. The key requirement is a reliable programmatic grader, which most real tasks lack. The excerpt doesn't show final student-versus-teacher quality numbers. Teams should also check the teacher model's terms on using outputs to train other models.

More in Guides