CoolFace
Modelpublic

grendo55/qwen2.5-0.5b-diary255-sql

sourceHugging Faceapache-2.0updated 4mo agoView on Hugging Face
1likes12downloads
Model Card

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_0 quantization)
  • —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:

  1. 1.Strict Read-Only: Only generates SELECT queries. It will never output INSERT, UPDATE, DELETE, or DDL commands.
  2. 2.Context Isolation: Automatically applies profile_id filters to protect and isolate user data context.
  3. 3.Dynamic Date Logic: Generates SQLite relative offset math (strftime('%s', 'now', ...)) instead of hardcoding static epoch dates.
  4. 4.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:"]