Kasualdad commited on
Commit
2d65fc2
·
verified ·
1 Parent(s): c0daeef

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +40 -0
README.md ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - text-to-sql
4
+ - education
5
+ - local-first
6
+ - llama-cpp
7
+ - duckdb
8
+ - gguf
9
+ - qwen
10
+ - qlora
11
+ language: en
12
+ license: apache-2.0
13
+ pipeline_tag: text-generation
14
+ ---
15
+
16
+ # LFED — Qwen2.5-Coder-7B Text-to-SQL (GGUF)
17
+
18
+ Fine-tuned on Q4_K_M for duckdb SQL generation from natural-language
19
+ questions about school district data (enrollment, attendance, chronic absenteeism).
20
+
21
+ **Base model**: Qwen2.5-Coder-7B-Instruct
22
+ **Fine-tuning**: Unsloth QLoRA (r=16, alpha=16) on ~1,200 synthetic NL→SQL pairs
23
+ **Format**: GGUF Q4_K_M (~4.4 GB)
24
+ **Use with**: llama.cpp, Ollama, LM Studio
25
+
26
+ ## Usage
27
+
28
+ ```python
29
+ from llama_cpp import Llama
30
+
31
+ llm = Llama(
32
+ model_path="lfed-qwen2.5-coder-7b-sql-Q4_K_M.gguf",
33
+ n_ctx=4096,
34
+ )
35
+ ```
36
+
37
+ ## Schema
38
+
39
+ - `enrollment(school_year, school_name, grade_level, student_count)`
40
+ - `attendance(student_id, school_name, school_year, absence_count, is_chronically_absent)`