Hrida T2SQL 128k is a Text-to-SQL Small Language Model (SLM) developed by HridaAI. It combines a compact design with a128k context window, delivering outstanding accuracy and efficiency in SQL queries.
5,571 Pulls Updated 2 months ago
Updated 3 months ago
3 months ago
048b19d01abd · 4.1GB
model
archphi3
·
parameters3.82B
·
quantizationQ8_0
4.1GB
params
{"stop":["\u003c|endoftext|\u003e","\u003c|assistant|\u003e","\u003c|end|\u003e","\u003c|user|\u003e
121B
template
{{ if .System }}<|system|>
{{ .System }}<|end|>
{{ end }}{{ if .Prompt }}<|user|>
{{ .Prompt }}<|end
148B
system
You are an advanced text-to-SQL model developed by HridaAI. Your task is to generate SQL queries bas
289B
Readme
The Hrida-T2SQL-128k is a compact yet powerful model, delivering exceptional performance in Text-to-SQL tasks. This model builds on the Microsoft/Phi-3 architecture and is distributed under the Apache license.
The HridaAI Team has noted that Hrida-T2SQL-128k:
- Outperforms CodeQwen-1.5 - 7B on benchmarks with a score of 9.26 compared to 8.98.
- Demonstrates a substantial lead over DuckDB-NSQL - 7B on benchmarks, scoring 9.26 versus 6.34.
- Shows a remarkable improvement over SQLCoder - 7B on benchmarks, achieving 9.26 compared to 5.54.
Usage
CLI
ollama run HridaAI/hrida-t2sql-128k
curl -X POST http://localhost:11434/api/generate -d '{
"model": "HridaAI/hrida-t2sql-128k",
"prompt":"What is SQL?"
}'
References Huggingface Blog Post