Downloads · 30 days
0
gccmorgoth/finsql-mlx-qwen3-4b-instruct-4bit
finsql-mlx-qwen3-4b-instruct-4bit is a machine learning model from gccmorgoth. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for mlx. The card lists the license as apache-2.0.
This is a LoRA adapter for financial SQL generation, fine-tuned on mlx-community/Qwen3-4B-Instruct-2507-4bit.
Downloads · 30 days
0
Access
Public
Updated Oct 1, 2025
Repo size
40.9 MB
Likes
0
Public
Click a slice to open those files.
.safetensors35.7 MB · 100%
From the Hugging Face model README
This is a LoRA adapter for financial SQL generation, fine-tuned on mlx-community/Qwen3-4B-Instruct-2507-4bit.

This model was fine-tuned on financial text-to-sql data pairs, specifically the FinSQLBull dataset, to improve SQL query generation for financial databases and tables.
Recommended prompt format to specify:
[Schema information]
[Natural language question about the data]
Constraint: [Any specific constraints]
SQL: [Model Generated SQL Query]
Database: company_financials
Table: revenue (id, company, year, revenue, profit)
Task
What was the total revenue for all companies in 2023?
SQL: [Model Generated SQL Query]
from mlx_lm import load, generate
model, tokenizer = load("gccmorgoth/finsql-mlx-qwen3-4b-instruct-4bit")
response = generate(model, tokenizer, prompt="Your prompt here")