Instructions to use shakha-de/xorazm-text2sql-0.8b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Local Apps Settings
- Unsloth Studio
How to use shakha-de/xorazm-text2sql-0.8b with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for shakha-de/xorazm-text2sql-0.8b to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for shakha-de/xorazm-text2sql-0.8b to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for shakha-de/xorazm-text2sql-0.8b to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="shakha-de/xorazm-text2sql-0.8b", max_seq_length=2048, )
xorazm-text2sql-0.8b (GRPO Checkpoint)
This directory contains the final checkpoint files for xorazm-text2sql-0.8b, a lightweight SQLite text-to-SQL translation model. The model was fine-tuned using Group Relative Policy Optimization (GRPO) reinforcement learning on a unified dataset.
Developer & Organization
- Developer: Shakhriyor Kadamboev
- Email: shakhriyor.kadamboev@student.uni-halle.de
- Hugging Face Repository: shakha-de/xorazm-text2sql-0.8b
Training Setup
The training pipeline was executed via Unsloth.
Hyperparameters:
- Base Model:
Qwen/Qwen3.5-0.8B - Frameworks: Unsloth (for memory-efficient fast training) & TRL
GRPOTrainer - Loss Type:
dr_grpo - Optimizer:
adamw_8bit(8-bit AdamW) - Learning Rate:
5e-6with Cosine scheduler - Warmup Ratio:
0.03 - Weight Decay:
0.1 - Max Prompt Length:
6,140tokens (filtered from maximum6,144context window) - Max Completion Length:
512tokens - Generations per Prompt (
num_generations):8 - Gradient Accumulation Steps:
2
Dataset
- Training Dataset: BIRD; SPIDER; SYNSQL-2.5M
- Original Examples: 20,000 for SFT and 16,676 for GRPO (pruned down to 15,566 after filtering prompts exceeding 6,140 tokens using
tokenizer.apply_chat_templatecheck) - Data Sources: Unified blend of:
- BIRD Bench (Spider / Bird style SQL DDL + sample rows)
- Spider 1.0
- synSQL-2.5M
Reward Metrics & Weights
Three independent reward signals were utilized:
- Execution Accuracy Reward (
execution_reward_func): Binary check on whether the query successfully executes and matches the output rows of the gold query.- Weight:
128.0
- Weight:
- Format Compliance Reward (
format_reward_func): Checks for proper</think>\n ```sql ... ```tag adherence.- Weight:
2.0
- Weight:
- Syntax Reward (
syntax_reward_func): Verifies SQL syntax correctness.- Weight:
4.0
- Weight:
Compute & Training Statistics
- Hardware: 1x NVIDIA L40S GPU (44.394 GB Max VRAM)
- VRAM Before Training: 1.617 GB reserved
- Epochs: 1
- Downloads last month
- 80
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support