grendo55/qwen2.5-0.5b-diary255-sql
112
Qwen 2.5 0.5B Diary255 Text-to-SQL (GGUF)
This is a specialized, quantized GGUF model fine-tuned on Qwen2.5-0.5B-Instruct to generate safe, read-only SQLite SELECT queries for the Diary255 personal timeline application.
Model Details
- Base Model: Qwen/Qwen2.5-0.5B-Instruct
- Format: GGUF (
q4_0quantization) - Parameters: 0.5 Billion
- Context Window: 1024 tokens
Specialized Capabilities
The model was fine-tuned procedurally on the Diary255 database schema. It strictly follows these operational rules:
- Strict Read-Only: Only generates
SELECTqueries. It will never outputINSERT,UPDATE,DELETE, or DDL commands. - Context Isolation: Automatically applies
profile_idfilters to protect and isolate user data context. - Dynamic Date Logic: Generates SQLite relative offset math (
strftime('%s', 'now', ...)) instead of hardcoding static epoch dates. - Relational Joins: Seamlessly handles multi-table queries joining tools, diary entries, and transaction logs.
Recommended Inference Settings
When running inference (such as in llama.cpp or llamadart), we highly recommend applying a GBNF grammar constraint to guarantee syntax validity.
- Temperature:
0.0(for absolute deterministic SQL generation) - Stop Sequences:
["\n`", "<|im_end|>", "Question:", "SQL:"]
