# Beam fine-tunes Gemma 4 for Text2SQL, gaining 66.5% accuracy

> Original title: We plugged Beam into @opencode, asked it to look at @UnslothAI, and create a fine-tuning notebook for the latest and smallest Gemma-4 mod...

- Source: Reflection
- Published: 2026-10-22T21:51:26.000Z
- Bad Influence: https://badinfluence.news/items/uf57edxnyyv0ujwvre9urrkpt
- Original: https://x.com/reflection_ai/status/2113387780676206627

## Summary

We plugged Beam into @opencode, asked it to look at @UnslothAI, and create a fine-tuning notebook for the latest and smallest Gemma-4 model on a Text2SQL task – an out of distribution domain for Beam. The model successfully researches the model cards, Unsloth documentation, and available READMEs, and implements the fine-tuning logic and surrounding machinery. As a result, Beam is able to successfully finetune Gemma, increasing Gemma’s accuracy on its heldout test set by 66.5%.

## Post

We plugged Beam into @opencode, asked it to look at @UnslothAI, and create a fine-tuning notebook for the latest and smallest Gemma-4 model on a Text2SQL task – an out of distribution domain for Beam. 

The model successfully researches the model cards, Unsloth documentation, and available READMEs, and implements the fine-tuning logic and surrounding machinery. As a result, Beam is able to successfully finetune Gemma, increasing Gemma’s accuracy on its heldout test set by 66.5%.

[Video](https://badinfluence.news/api/img-proxy?u=https%3A%2F%2Fpbs.twimg.com%2Ftweet_video_thumb%2FHVRCqoRakAAfZB6.jpg&mode=thumb&exp=1795651200&sig=6d757e1a5c9cde20)
