Databricks’ fine-tuned Llama 3.1 8B got 1.4x more accepted bug fixes than GPT-4o
Made by Databricks
Eight authors, listed alphabetically, on the Databricks blog
The result
The story
Fixing the cell before the user does
In Databricks notebooks, Quick Fix suggests an inline fix when a cell fails, for errors such as a mistyped table or column name or a type mismatch. Speed matters: Databricks wants each suggestion to arrive before users fix the code themselves. In April 2025 Databricks’ research team described testing a small open model, fine-tuned on the company’s own logs, against a GPT-4o agent.

Training data the product writes itself
When a cell fails, Databricks logs the broken code and its context: the error message, surrounding cells and the available tables. The next time that cell runs, it logs the working code, whoever wrote the fix. Pairs where nothing changed, or where the code was rewritten wholesale, are dropped. Here the logs came from Databricks employees’ own code for analysing telemetry.
Data
Quick Fix interaction logs
Not reported
Databricks employees’ internal notebooks for analysing telemetry: the failing code, its context and the code that next ran in that cell
Pairs with no change or a wholesale rewrite were removed; a held-out slice served for the offline exact-match check that picked the settings.
The team fine-tuned Llama 3.1 8B Instruct on these pairs with Databricks’ fine-tuning service, trying several learning rates and training lengths and keeping the best by exact match on held-out logs. One version writes only the edit (diff), the other the whole cell.
Small model
QuickFix Llama 8B (diff)
8B · Databricks (fine-tune of Meta’s Llama 3.1 8B Instruct)
Fine-tuned with Databricks’ fine-tuning service to write only the edit; weights not released
- Base
- Llama 3.1 8B Instruct
Training
Fine-tuning with Databricks’ fine-tuning service (LoRA or full not stated)
Sweep over learning rates and training iterations
Not reported: hardware, time and cost.
A live test with internal users
In a live A/B test with internal users, against a GPT-4o agent that also wrote edits, the diff model’s fixes were accepted 1.4 times as often, and it answered with half the latency. Only these ratios are published: no acceptance rates, test size, duration, seconds or costs.
Large model
GPT-4o
Size not disclosed · OpenAI
Used as released in a Quick Fix agent that writes edits; prompt, snapshot and settings not described
- Base
- General model; snapshot not stated
Evaluation
- Test set
- Live A/B test with internal Databricks users
- Metric
- Share of suggested fixes that users accepted, relative to the GPT-4o agent
- How it was compared
- An A/B test: each agent saw different errors from live use, scored the same way (accepted or not). GPT-4o’s prompt and version aren’t described. The offline exact-match check also ran GPT-4o with five examples, shown only as a relative chart.
Not reported: the number of test items.
Two redacted examples show the difference. GPT-4o rewrote a user’s SQL into PySpark, where the fine-tuned model kept the user’s SQL; and it followed a hint in the error message to the wrong column, where the fine-tuned model used the column from the context, as the user had. Offline, GPT-4o with five examples improved but stayed behind the fine-tuned models.
All the numbers
Show all numbersHide all numbersEvery model · Cost, latency and energy · 2 more results
Every model on the headline test
Cost, latency and energy, as reported
- Cost
- Not reported
- Latency · relative
- QuickFix (Llama 3.1 8B)2x reduction vs GPT-4o
- 2x reduction in inference latency versus GPT-4o (relative only, no seconds). The earlier Quick Fix announcement says suggestions arrive within 1-3 seconds, but that is not tied to a specific model.
- Energy
- Not reported
More from the source
Inference latency
2x lower relative to GPT-4o
Stated for the diff model; the post says diff models tend to be faster because they produce fewer tokens.
TL;DR paragraph and Figure 2 (speed, normalized to GPT-4o)
Offline exact-match accuracy on held-out logs
Qualitative only: the post says the fine-tuned Llama performs best overall, that prompting with 5 examples (in-context learning) gives a substantial gain but less than fine-tuning, and that the untuned Llama models are much worse than GPT-4o. The chart is normalized to GPT-4o with no printed values.
Figure 4 and the paragraph above it
Worth knowing
- Only relative numbers: no absolute acceptance rates, latencies or costs are published.
- The A/B test’s size, duration and number of users are not disclosed, and the users were Databricks employees working on internal telemetry code.
- GPT-4o’s prompt and version are not described.
- Weights are not released; vendor-run test of a vendor service.
Weights on Hugging Face
Weights not released. Base model verified: https://huggingface.co/meta-llama/Llama-3.1-8B-Instruct
Sources
- Samantha Banchik, Ta-Chung Chi, Sam Havens, Dipendra Misra, Will Tipton, Jan van der Vegt, Matei Zaharia, Emanuel Zgraggen, ‘The Power of Fine-Tuning on Your Data: Quick Fixing Bugs with LLMs via Never Ending Learning (NEL)’, Databricks blog, 8 Apr 2025
- ‘Introducing Databricks Assistant Quick Fix’, Databricks blog, 19 Sep 2024 (what the feature does)