salmane11/Darija-to-SQL

TEXT GENERATIONPricing:Input $0.32 / Cached $0.064 / Output $1.6Concurrent Unit Cost:1Model Size:3.1BQuant:BF16Context Size:32kTool Calling:SupportedPublished:Oct 8, 2025Architecture:Transformer0.0K Featherless Exclusive Cold

Darija2SQL-3B is a 3.1 billion parameter Code LLM developed by salmane11, based on Qwen2.5-coder-3B, and fine-tuned for translating Moroccan Arabic (Darija) natural language questions into SQL queries. It leverages PEFT (LoRA) on the Dialect2SQL dataset to specialize in Darija-to-SQL generation, bridging the gap between dialectal Arabic users and database systems. With a context length of 32768 tokens, it enables users to query structured data in their native dialect, focusing on schema comprehension and dialectal normalization. This model is particularly optimized for research and educational applications in natural language to SQL generation for low-resource Arabic dialects.

Loading preview...

Darija2SQL-3B: Darija to SQL Code LLM

Darija2SQL-3B is a specialized 3.1 billion parameter Code LLM developed by salmane11, built upon the Qwen2.5-coder-3B architecture. Its primary function is to translate natural language questions posed in Moroccan Arabic (Darija) into executable SQL queries.

Key Capabilities & Features

  • Darija-to-SQL Translation: Directly converts Darija natural language into SQL, enabling database interaction for dialectal Arabic speakers.
  • Specialized Fine-tuning: Utilizes Parameter-Efficient Fine-Tuning (PEFT) with LoRA adapters on the Dialect2SQL dataset to maintain strong code reasoning while adapting to Darija.
  • Schema Comprehension: Incorporates training for understanding database schemas and normalizing dialectal variations to infer SQL intent.
  • Base Model: Inherits robust code reasoning capabilities from the Qwen2.5-coder-3B model.

Intended Use Cases

This model is designed for:

  • Research and Education: Particularly in Natural Language to SQL generation for dialectal Arabic.
  • Low-Resource Dialect Adaptation: Demonstrates how code models can be adapted for specific, less-resourced dialects.
  • Arabic Database Interfaces: Facilitating user interaction with databases using native Arabic dialects.

While effective on its training data, the model's generalization to entirely unseen schemas or domains may require further adaptation. It offers a unique solution for bridging linguistic and technical gaps in database querying.