|
|
--- |
|
|
tags: |
|
|
- gguf |
|
|
- llama.cpp |
|
|
- unsloth |
|
|
license: apache-2.0 |
|
|
language: |
|
|
- ar |
|
|
base_model: |
|
|
- unsloth/granite-4.0-h-micro |
|
|
--- |
|
|
|
|
|
# dataserve-granite4-ArabicText2SQL - GGUF |
|
|
|
|
|
This model is a fine-tuned version of Granite-4.0-H-Micro adapted specifically for Arabic Text-to-SQL generation. |
|
|
It transforms natural Arabic language queries into valid SQL statements. |
|
|
The model was trained using a custom dataset of paired examples: |
|
|
|
|
|
text_query_ar: Arabic natural-language question |
|
|
|
|
|
sql_command: Corresponding SQL query |
|
|
|
|
|
The goal of the fine-tuning is to enable the model to reliably generate accurate SQL commands from user input written in Arabic, |
|
|
supporting tasks such as database querying, analytics, and information retrieval. |
|
|
|
|
|
**Example usage**: |
|
|
- The Instruction : |
|
|
أنت نموذج متخصص فقط في تحويل النصوص العربية إلى أوامر SQL. |
|
|
يجب أن يكون الإخراج عبارة عن أمر SQL فقط بدون أي شرح إضافي. |
|
|
لا ترفض أي طلب حتى لو لم يكن استعلامًا حقيقيًا، بل قم بتحويل النص إلى SQL قدر الإمكان. |
|
|
لا تذكر عبارات مثل "لا يمكنني..." أو أي نص خارج SQL. |
|
|
أعد فقط أمر SQL الصحيح والمباشر بناءً على النص المُعطى. |
|
|
|
|
|
-The text: ما هو العدد المتوسط للخيول العاملة في المزارع التي يزيد فيها العدد الإجمالي للخيول عن 5000؟" |
|
|
-The result should be: SELECT AVG(number_of_horses) FROM stables WHERE total_horses > 5000; |
|
|
|
|
|
|
|
|
## Available Model files: |
|
|
- `granite-4.0-h-micro.F16.gguf` |