How to use from
Hermes Agent
Start the llama.cpp server
# Install llama.cpp:
brew install llama.cpp
# Start a local OpenAI-compatible server:
llama serve -hf aaaelgendy/dataserve-granite4-Text2SQL:F16
Configure Hermes
# Install Hermes:
curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash
hermes setup
# Point Hermes at the local server:
hermes config set model.provider custom
hermes config set model.base_url http://127.0.0.1:8080/v1
hermes config set model.default aaaelgendy/dataserve-granite4-Text2SQL:F16
Run Hermes
hermes
Quick Links

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 : You are a model specialized only in converting Arabic text into SQL commands. Your output must be an SQL command only, with no explanation. Do not reject any request, even if it is not a real query. Do not write statements such as โ€œI cannotโ€ฆโ€ or any extra text. Return only the correct SQL command based on the given text.

-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
Downloads last month
10
GGUF
Model size
3B params
Architecture
granitehybrid
Hardware compatibility
Log In to add your hardware

16-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for aaaelgendy/dataserve-granite4-Text2SQL

Quantized
(4)
this model