Experience/ CollabOps
Decision record

Deciding not to deploy a model I trained myself

CollabOps · LLM fine-tuning & serving

I set the promotion criteria before seeing results. The trained model didn't clear them, so I kept the base model and reached the same goal another way.

Goal

Get the agent to ask clarifying questions on ambiguous requests

The goal was for the agent to ask a clarifying question instead of acting right away when a request is ambiguous. I built the training data from agent run logs.
Decision 1

Set the promotion criteria before training

Why
If you set the criteria after seeing the results, the criteria tend to bend to fit the results.
Decision 2

Split data by repository and commit

In SWE-rebench, 14.5% of rows risked having the same repository and commit appear in both training and evaluation. I split by repository-commit group instead of by row.
Why
If the same codebase is on both sides, evaluation scores come out better than they really are.
Decision 3

Apply LoRA only to attention, within the memory limit

When training the 80B MoE with QLoRA, GPU memory filled up to 78.6 GB of 80 GB. I applied LoRA only to the attention projections to stay within the limit.
Decision 4

Don't deploy if it falls short of the criteria

ModelEval set AEval set B
Base6/64/5
DPO candidate5/60/5
No adapter passed the criteria. I served the 80B AWQ base on vLLM and moved clarifying questions into runtime guardrails.
Why
The goal was clarifying questions, not the training itself. If training couldn't get there, it made more sense to reach the same goal with rules at execution time.
Serving

Trim settings to actual usage

  • Confirmed that the largest real prompt was 24,651 tokens and cut the maximum context length from 131,072 to 32,768, increasing KV cache capacity about 6.5x
  • Used prefix caching to cut TTFT for repeated ~20K-token prompts from about 5.9 s to 0.6 s