add README.md
Browse files
README.md
CHANGED
|
@@ -1,17 +1,28 @@
|
|
| 1 |
---
|
| 2 |
-
title: Aegis
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: gradio
|
| 7 |
-
sdk_version:
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
-
|
| 11 |
-
hf_oauth_scopes:
|
| 12 |
-
- inference-api
|
| 13 |
-
license: mit
|
| 14 |
-
short_description: Fine tuned Qwen2.5-7B as SQL Query DB Expert
|
| 15 |
---
|
| 16 |
|
| 17 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: Aegis-SQL
|
| 3 |
+
emoji: "\U0001F5C4"
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: gray
|
| 6 |
sdk: gradio
|
| 7 |
+
sdk_version: 5.9.1
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
+
short_description: Natural language to SQL. Qwen2.5-Coder-7B QLoRA fine-tune.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
---
|
| 12 |
|
| 13 |
+
# Aegis-SQL
|
| 14 |
+
|
| 15 |
+
A QLoRA fine-tune of Qwen2.5-Coder-7B-Instruct for text-to-SQL. Paste a
|
| 16 |
+
database schema (DDL), ask a question in plain English, and read the
|
| 17 |
+
generated SQL query.
|
| 18 |
+
|
| 19 |
+
Trained on a curated, deduplicated, executability-filtered mix of Spider,
|
| 20 |
+
BIRD, and sql-create-context, with schema linking applied so each prompt
|
| 21 |
+
carries only the tables the query needs.
|
| 22 |
+
|
| 23 |
+
Runtime: transformers + BitsAndBytes 4-bit on ZeroGPU. A GGUF Q4_K_M
|
| 24 |
+
build of the same model lives under `gguf/` in the model repo
|
| 25 |
+
(`beaunix/aegis-sql`) for llama.cpp use.
|
| 26 |
+
|
| 27 |
+
This is a research demo. Verify any generated SQL before running it
|
| 28 |
+
against real data.
|