Downloads · 30 days
0
sirunchained/text-to-sql-model-v1
text-to-sql-model-v1 is a text generation model from sirunchained. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as mit.
This model is a fine-tuned version of google/gemma-3-270m-it specifically adapted for Text-to-SQL conversion. It takes natural language questions, optionally along with a database schema, and generates the correspondi…
Downloads · 30 days
0
Access
Public
Updated Jul 22, 2026
Repo size
34.9 MB
Likes
0
Public
Click a slice to open those files.
.json33.4 MB · 96%
From the Hugging Face model README
This model is a fine-tuned version of google/gemma-3-270m-it specifically adapted for Text-to-SQL conversion. It takes natural language questions, optionally along with a database schema, and generates the corresponding SQL query.
google/gemma-3-270m-ittrl library with SFTTrainerbitsandbytes to reduce memory footprint and enable training on resource-constrained environments (e.g., T4 GPU).The model was fine-tuned on the sirunchained/text-to-sql-dataset from Hugging Face. This dataset consists of natural language queries, corresponding database schemas (optional), and the target SQL queries.
The model's performance was evaluated on a test set, yielding the following results:
0.6810.836During training, the model showed a consistent decrease in both training and validation loss, indicating successful learning and generalization. The validation mean token accuracy steadily improved, reaching approximately 84% by the end of the training process, suggesting that the model is capable of generating accurate SQL queries given natural language input and schema information.
This is Version 1 of the sirunchained/text-to-sql-model. The model will be continuously updated and improved over time with more data and potentially different architectures.
A Gradio web interface was developed to demonstrate the model's capabilities, allowing users to input natural language queries and provide database schema details table by table, then view the generated SQL output. You can find the Gradio app code within the accompanying notebook. You can test it here.