How we fine-tuned a faster model for Patterns on Baseten
B · Useful, limited Datadog engineers report a fine-tuning case with exact counts and a clear evaluation method, but the test set is 150 cases from five traces, judged by an LLM, in a post that promotes Datadog's own tooling.
Summary based on the full text·Original: about 10 minutes to read
In short
A Datadog engineering post (18 November 2026) by Fouad Wahabi, Vincent Cornet and Alex Barksdale. Patterns, a feature that clusters an application's production LLM traffic, first summarises each interaction with a frontier model, and that step dominated cost and latency. The team turned the summariser's logged calls into a training set, fine-tuned Qwen 3.5 9B with a LoRA adapter on Baseten, and compared it with the base model. A coding agent ran the pipeline through Datadog's "pup finetune" skill and stopped for human approval before every paid step.
Key numbers
- about 80%share of a Patterns run's p99 cost spent on LLM summarisation (about 50% of p90 latency)
- 93.3% vs 44.7%judge pass rate on 150 held-out cases, fine-tuned Qwen 3.5 9B vs the base model
- 44.7 s to 0.89 saverage generation time per case, base vs fine-tuned, about 50x faster
- 78 of 83base-model failures that ran out of tokens or could not be parsed
As reported by the source.
English·Web page·opens datadoghq.com
What it reports
- Summarisation was about 80% of a Patterns run's p99 cost and about 50% of its p90 latency.
- The training set mixed several clustering instructions so the model learned the task, not one instruction; rows were split by trace to keep test data out of training.
- On 150 held-out cases from five traces: 150 of 150 fine-tuned answers finished and parsed against 72 of 150 for the base model.
- Judge pass rate: 93.3% (140 of 150) fine-tuned vs 44.7% (67 of 150) base.
- Average generation time fell from 44.7 seconds to 0.89 seconds per case on dedicated samplers.
- The base model's problem was finishing: 78 of its 83 failures ran out of tokens or could not be parsed. On answers it did finish, quality matched the fine-tuned model.
- The judge had to pass a check first: accept the recorded answer and reject two corrupted versions on up to four cases.
How they got it
Offline experiment: production LLM spans from 30 days became training conversations with the frontier model's summary as the target. Base and fine-tuned models replayed the same held-out cases; an LLM judge decided whether each answer could replace the recorded one. Training stopped early on validation loss.
Limits
- 150 test cases drawn from only five traces; generalisation is claimed but not quantified.
- The judge is an LLM, scored against frontier-model outputs rather than human labels.
- No production cost figures after deployment; the 50x speed-up is per case on dedicated hardware.
- The post sells Datadog's fine-tuning extension and Baseten's training service.
Why it matters for companies
The general lesson: find the step where an expensive model does a narrow, repetitive job, and train a small model on the logs you already have. The failure analysis matters as much as the result, since the base model could summarise but spent its budget on reasoning, which is the kind of problem fine-tuning fixes. Splitting data by trace and checking the judge before trusting it are cheap safeguards worth copying. Approval prompts before each paid step are a sensible pattern for any agent allowed to spend money.
Summary based on the full text. Read the original for the full argument and data.Read the original on datadoghq.com