LLM Distillation Services Compared: Bedrock, Google, Alibaba PAI and Open Toolkits for a Small Model
Several services distill a large model into a small one for your task. The right pick depends on your cloud, whether you need the weights, and whether your agent writes text or chooses actions.
Yes, you can pay a service to distill an LLM into a small model. Amazon Bedrock Model Distillation suits teams on Nova or Llama in AWS. Google Cloud's open-model distillation suits teams that want a managed job and weights they can export. Alibaba Cloud PAI suits Qwen users. Teams with their own engineers can use DistillKit or EasyDistill instead, and agents that mostly choose among fixed actions can use a smaller decision model in front of the large one.
Six options cover most needs, and they split on who keeps the weights
All of these services follow one recipe. A large teacher model answers prompts from your task, and a smaller student is fine-tuned on those answers. The student becomes good at that task, not a general copy of the teacher. The options differ in which pairs of teacher and student they allow, whether you can take the student away, and how much of the work you do yourself.
| Option | Teacher and student | Can you take the weights? | Who does the work |
|---|---|---|---|
| Amazon Bedrock | Nova or Llama, within one family | No download documented; served in Bedrock | AWS |
| Google Cloud open-model tuning | GLM 5.2 to Qwen 3 or Gemma 3 | Yes, exported from your Cloud Storage | |
| Alibaba Cloud PAI | Qwen2-72B to a smaller Qwen | No download described; served on EAS | Alibaba, with no-code steps |
| DistillKit or EasyDistill | Any teacher that you can run or call | Yes | You |
| openjev-sdk | Your labelled decisions to a small decision model | Yes | You |
| Parsec TOD | A ready-made decision model, with custom tuning sold separately | Adapters on Hugging Face; Gemma 4 base downloaded separately | Parsec |
Two older routes are closing. Microsoft retired Azure's stored completions, the data source for its distillation flow, on October 15, 2026, and existing stored records cannot be exported. OpenAI says that it "is winding down the fine-tuning platform," and eligible existing customers can create training jobs only until January 6, 2027. Google's documentation for a Gemini-to-Gemini distillation service is no longer at its published address, so that service's status is unclear.
Bedrock fits teams that already run Nova or Llama inside AWS
Bedrock is the most automated choice if your traffic is already there. You supply prompts as .jsonl files, or you point Bedrock at your invocation logs in Amazon S3 and filter them by request metadata. Bedrock generates teacher answers, can add synthetic data up to 15,000 prompt-response pairs, and fine-tunes the student. Teacher calls for that synthetic data are billed at the teacher's on-demand rates.
The pairs are fixed. Nova Premier and Nova Pro teach Nova Lite and Nova Micro. Llama 3.1 405B, Llama 3.1 70B and Llama 3.3 70B teach smaller Llama models such as Llama 3.1 8B and Llama 3.2 1B and 3B. AWS's prerequisites page says that "Distillation is not currently available for Anthropic models on Amazon Bedrock," with no confirmed timeline. AWS says that only you can access the finished model. Distilled Llama models are served through provisioned throughput that you buy. AWS's own claim is that distilled models can be "up to 500% faster and 75% less expensive" with under 2% accuracy loss for uses like RAG.
Google's open-model tuning fits teams that want a managed job and portable weights
Google's route is the only managed cloud option here whose documentation describes moving the student off the platform. GLM 5.2 serves as the teacher. The student can be Qwen 3 at 4B to 32B parameters or Gemma 3 at 1B to 27B. The tuned model's files land in your own Cloud Storage bucket, and Google adds, "You can also export the tuned model from Cloud Storage and deploy it elsewhere." The student's licence then governs where it may run.
Alibaba PAI fits teams on Alibaba Cloud that work with Qwen models
Alibaba's documentation, last updated October 22, 2026, describes a five-step workflow. You prepare an instruction dataset of at least several hundred entries in JSON. Optional steps expand and refine the instructions, and these can run without code in PAI-Designer. Qwen2-72B-Instruct then writes the answers, and a smaller model such as Qwen2-7B-Instruct is fine-tuned on them and deployed to Alibaba's EAS service.
Open toolkits fit teams with engineers who want full control
Arcee's DistillKit and EasyDistill are both Apache 2.0 licensed, and both leave you with a model file that you host anywhere. DistillKit trains the student on the teacher's internal probability outputs, either live or from outputs captured in advance. That approach needs a teacher whose weights you can run. EasyDistill works from text answers instead. It calls any OpenAI-compatible endpoint as the teacher, including a local vLLM server, and builds fine-tuning and preference datasets. You supply the GPUs and the evaluation work.
Decision models fit agents that mostly choose among fixed actions
Many agent calls are choices, such as which tool to run, which queue receives a ticket, or whether to approve a refund. A student for that job does not need to write text. It needs to pick one option from a supplied list and report how confident it is, so that unsure turns can go to the large model.
The openjev-sdk, an MIT-licensed toolkit from Parsec's team, trains models of this kind from labelled decision episodes. Its smallest method trains on a frozen Gemma 3 4B with about 9 GB of GPU memory or on an Apple silicon Mac. Another method defers to a larger model when it is unsure.
Parsec, a small language model lab, offers the same approach as a service. Its TOD model ranks the next action from an allowed list, writes no free text, and passes any turn that it is unsure about to the existing LLM unchanged. Parsec says that it tunes such models on a customer's own decisions and that a tuned model "can reach production within two weeks," which is Parsec's claim rather than a measured time. TOD costs $0.30 per 1,000 decisions, according to Parsec's TOD page, separate from parent-model costs. Parsec publishes no price for custom tuning and names no deployment options for it.
A worked example shows that the hand-off rate drives most of the saving
Consider a support agent that makes 1,000,000 tool decisions a month on Claude Sonnet 5.5. Each decision uses 6,000 input tokens and 300 output tokens, with no prompt caching. At Anthropic's list price of $2 per million input tokens and $10 per million output tokens, each decision costs $0.015. The month costs $15,000.
Now assume that a small student handles half of the decisions with enough confidence and passes the other half to Sonnet. This 50% rate is an assumption for the example, not a measured result.
- With a self-hosted student on one Together H100 dedicated endpoint at $5.49 an hour, hosting costs $3,952.80 for 720 hours. Sonnet still handles 500,000 decisions for $7,500. The total is $11,452.80 a month.
- Training that student on 10,000 examples of 6,300 tokens is 63 million tokens. At Together's listed $0.34 per million tokens for Llama 3.1 8B, one pass costs about $21.42.
Whether one H100 can carry this traffic has not been measured. Neither has the share of decisions that a student would take on a real workload. Each 10 points of hand-off changes Sonnet's bill by $1,500 a month, while the hosting cost stays fixed. A Bedrock student is left out, because its cost depends on the provisioned throughput that you buy.
The teacher's terms decide which data the student may learn from
The easiest training data is often the large model's own logged answers, and commercial providers restrict that use. OpenAI's Services Agreement, dated January 1, 2026, gives the customer ownership of all Output. Section 3.3(e) then bars using Output "to develop artificial intelligence models that compete with OpenAI's products and services," with exceptions for undistributed classifiers and for fine-tuning inside OpenAI's services. Anthropic's Commercial Terms, effective June 17, 2025, bar using its services "to train competing AI models." Google's Gemini API terms, effective March 23, 2026, bar using the services "to develop models that compete with the Services."
No published ruling has settled whether a narrow, task-specific student competes with these providers. Your own labelled examples, and decisions that a person has reviewed or corrected, avoid the question. Answers from an open-weight teacher such as Llama, Qwen or GLM fall under that model's own licence, which is worth reading before the first job.
Sources
- AWS, Customize a model with distillation in Amazon Bedrock: https://docs.aws.amazon.com/bedrock/latest/userguide/model-distillation.html
- AWS, Prerequisites for model distillation: https://docs.aws.amazon.com/bedrock/latest/userguide/prequisites-model-distillation.html
- AWS, Amazon Bedrock Model Distillation is now generally available: https://aws.amazon.com/about-aws/whats-new/2025/05/amazon-bedrock-model-distillation-generally-available
- Google Cloud, Supervised and distillation fine-tuning for open models: https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/tuning/open-model-tuning
- Google, Gemini API terms of service: https://aistudio.google.com/docs/terms
- Alibaba Cloud, PAI LLM distillation: https://www.alibabacloud.com/help/doc-detail/2842631.html
- Microsoft Learn, Migrate from stored completions: https://learn.microsoft.com/en-us/azure/foundry-classic/openai/how-to/stored-completions-retirement
- OpenAI, Supervised fine-tuning guide: https://developers.openai.com/api/docs/guides/supervised-fine-tuning
- OpenAI Services Agreement (v.010126): https://cdn.openai.com/osa/openai-services-agreement.pdf
- Anthropic, Commercial Terms of Service: https://www.anthropic.com/legal/commercial-terms
- Anthropic, Pricing: https://platform.claude.com/docs/en/about-claude/pricing
- Together AI, Pricing: https://www.together.ai/pricing
- Arcee AI, DistillKit: https://github.com/arcee-ai/DistillKit
- ModelScope, EasyDistill: https://github.com/modelscope/easydistill
- open-jev and openjev-sdk: https://github.com/daseinlabs/open-jev
- Parsec, TOD: https://parseclab.ai/tod/
- Parsec, Decision models: https://parseclab.ai/solutions/decision-models/
- Parsec, TOD model card: https://huggingface.co/parsecai/tod