Machine Learning Engineer Interview Question

The team wants to fine tune an open model instead of calling a hosted API. How would you decide?

What the interviewer is probing, how to structure your answer, and a spoken example you can adapt.

Quick answer

Decide on four axes: quality on your specific task, cost at your actual volume, latency and control requirements, and data or compliance constraints. Start with the hosted API plus prompting and retrieval to establish a quality bar cheaply. Fine tune when you have a stable task with good labeled data, volume high enough for the economics to flip, or a requirement to keep data inside your own environment.

Why interviewers ask this

This is the live build versus buy question for ML teams, and interviewers want a framework rather than a preference. The strongest answers insist on measuring the hosted baseline first, treat the crossover point as an arithmetic problem at your real volume, and count the ongoing cost of owning a serving stack rather than only the fine tuning run itself.

How to structure your answer

  • Name the four decision axes up front.
  • Insist on establishing a hosted baseline before committing.
  • Do the volume arithmetic for where self hosting pays off.
  • Count the ongoing ownership cost, not just the training run.
  • Give the cases where compliance decides it outright.

Example answer

Spoken example, first person

I would push to answer it with numbers rather than preference. First, build the hosted baseline: a good prompt, retrieval if the task needs context, and an evaluation set. That usually takes days and tells us what quality is achievable, and often it is already good enough, at which point fine tuning is a solution looking for a problem. If quality is genuinely short, I ask whether the gap is knowledge, which retrieval fixes, or behavior and format, which fine tuning fixes. Then the economics. Hosted cost scales linearly with tokens; self hosting is mostly fixed accelerator cost, so there is a crossover volume, and I compute it with real traffic projections rather than hopes. Below the crossover, self hosting loses before you have even counted an engineer's time. The cost people forget is ownership: serving, autoscaling, upgrades, re evaluation when you swap base models, someone on call. That is a permanent commitment. Where it decides itself is compliance. If the data cannot leave our environment, the decision is already made and the discussion is only about which open model, not whether.

Walking into this interview soon? GhostPilot listens to your live call, spots the question the moment it is asked, and puts a structured answer on your screen in real time. Try it on your next mock, or grab a $29 Session Pass, no subscription, for the real thing.

See how it works

Follow-up questions to expect

  • How would you estimate the crossover volume concretely?
  • What does LoRA change about the cost of fine tuning?
  • How would you handle the hosted provider deprecating the model you built on?

Related machine learning engineer questions

Your interviewer will ask their own version of this. Paste your actual job description into the free Question Predictor and get the 20 questions that role is most likely to ask, with what each one is really probing.

Predict my questions

Rehearse the hard questions before they are asked

Practise with a live copilot, then walk in ready. A $29 Session Pass gets you through the interview with no subscription and no lock-in.

Get GhostPilot