WhoBuilt

Finetuning: 500m AI agents in production with 2 engineers

Apr 12, 2025· 19 min· 23K views·Watch on YouTube

Speakers

Mustafa Ali of Method and Kyle Corbitt of OpenPipe explain how Method scaled its financial-data extraction agents to 500 million in production, in a talk hosted by AI Engineer.

Turning manual bank calls into an agent workflow

Method’s customers wanted details such as auto-loan payoff amounts and mortgage escrow balances, but there was no central API for those data. The alternative was contractor teams calling banks, collecting information, and proofreading it, a process Mustafa described as slow, costly, and prone to human error. Method used GPT-4 to parse unstructured data and automate parts of this workflow.

Production exposed cost, latency, and reliability limits

GPT-4 worked well, but Method’s first production month cost $70,000. As use cases grew, long prompts became difficult to maintain, and prompt changes could fix one scenario while breaking another. Mustafa said the team needed to handle about 16 million requests per day and 100,000 concurrent requests, with latency under 200 milliseconds.

Benchmark models against business requirements

Kyle described measuring model quality, latency, and cost under production-like conditions. For Method’s tasks, GPT-4 had an error rate of about 11%, while o3-mini had about 4%; their response times were roughly one second and five seconds, respectively. Despite o3-mini’s lower per-token price, its longer reasoning outputs made it more expensive for this task, and Method set a target error rate around 9%.

Fine-tune a smaller model for the task

OpenPipe and Method fine-tuned an 8-billion-parameter Llama 3.1 model on production inputs and outputs generated with o3-mini. Mustafa said the smaller model got close to the teacher model’s performance while meeting Method’s quality needs, with lower latency and cost. Kyle emphasized that fine-tuning made sense after prompted models failed to meet the production requirements.

Use production data and allow time to improve

Kyle said the team already had GPT-generated production data, so it did not need to start by collecting a new dataset, and it did not need to buy GPUs. He characterized the work as a focused use case handled by two engineers. He also advised engineering and leadership teams to expect iteration before agents are production-ready.

Takeaways

  • Measure error rate, latency, and cost on a representative production workload before choosing a model.
  • Set acceptable quality and latency thresholds based on what happens when an error reaches a customer.
  • Track total task cost, including generated reasoning tokens, rather than comparing per-token prices alone.
  • Consider fine-tuning when prompted models miss production targets; existing production inputs and outputs can provide training data.
  • A smaller task-specific model can reduce serving cost and latency, but benchmark it against your own quality requirements.

Mentioned in this talk

Search inside this talk

What was claimed 11

  • works at
    Unverified3 sources· Talk
  • role at
    “I’m here with Mustafa Ali from Method.”
    YouTube
    Unverified1 source· Talk
  • feature
    Method: Collects, centralizes, aggregates, and enhances liability data from many sources for fintechs, banks, and lenders.
    “We essentially collect and centralize liability data from hundreds of different data sources.”
    YouTube
    Unverified1 source· Talk
  • feature
    OpenPipe: Helps teams build, train, and deploy open-source models, with production signals used to improve models over time.
    “At OpenPipe, we help you build, train, and deploy open-source models for actual usage.”
    YouTube
    Unverified1 source· Talk
  • metric
    Method: $70,000 for the first month in production
    $70,000 for the first month in production
    “$70,000 for our first month in production with GPT-4.”
    YouTube
    Unverified1 source· Talk
  • metric
    o3-mini: 4% error rate on Method's tasks
    “o3-mini is much better, at a 4% error rate.”
    YouTube
    Unverified1 source· Talk
  • metric
    GPT-4: About 11% error rate on Method's tasks
    “GPT-4 is at about an 11% error rate.”
    YouTube
    Unverified1 source· Talk
  • metric
    o3-mini: About five seconds response time for the task
    “o3-mini takes about five seconds for this specific task.”
    YouTube
    Unverified1 source· Talk
Show all 11 facts

Related talks