chabab/gemma-3-270m-it-text2sql
chabab/gemma-3-270m-it-text2sql is a 0.3 billion parameter instruction-tuned Gemma model, fine-tuned from google/gemma-3-270m-it. This model is specifically trained for text-to-SQL tasks, leveraging the TRL framework for its fine-tuning process. With a context length of 32768 tokens, it is designed to convert natural language questions into SQL queries.
Loading preview...
Overview
This model, chabab/gemma-3-270m-it-text2sql, is a specialized variant of the Gemma-3-270m-it architecture, developed by chabab. It has been fine-tuned using the TRL (Transformers Reinforcement Learning) library to excel in a specific domain: text-to-SQL conversion. This means it's engineered to interpret natural language questions and translate them into executable SQL queries.
Key Capabilities
- Text-to-SQL Conversion: The primary function of this model is to generate SQL queries from user-provided natural language prompts.
- Instruction-Tuned: Built upon an instruction-tuned base model, enhancing its ability to follow specific commands and generate relevant outputs.
- Compact Size: With 0.3 billion parameters, it offers a relatively lightweight solution for text-to-SQL tasks.
- Extended Context Window: Features a context length of 32768 tokens, allowing it to process longer and more complex input queries or schema definitions.
Training Details
The model underwent Supervised Fine-Tuning (SFT) using the TRL framework. This training approach focuses on teaching the model to map natural language inputs directly to SQL outputs based on a dataset of examples.
Good For
- Applications requiring the conversion of natural language questions into SQL queries.
- Integrating natural language interfaces with databases.
- Developers looking for a compact yet capable model for text-to-SQL tasks, especially within the Gemma ecosystem.