craterlabs/Struct-SQL
TEXT GENERATIONConcurrency Cost:1Model Size:4BQuant:BF16Ctx Length:32kPublished:Dec 5, 2025License:cc-by-4.0Architecture:Transformer Open Weights Warm

craterlabs/Struct-SQL is a 4 billion parameter Text-to-SQL model based on Qwen3-4B-Instruct-2507, featuring a 32768-token context length. It utilizes a novel Knowledge Distillation framework to transfer structured reasoning (Query Execution Plans) from a teacher LLM, significantly reducing syntactic errors and schema hallucinations in generated SQL. This model excels at semantic parsing over relational databases and is particularly suited for research into structured intermediate representations and explicit query planning.

Loading preview...