๐Ÿฆ™ Qwen3.5-4B-Financial-SQL (GGUF Quantized for Ollama)

Phiรชn bแบฃn lฦฐแปฃng tแปญ hรณa ฤ‘แป‹nh dแบกng GGUF (Q4_K_M) tแป‘i ฦฐu dung lฦฐแปฃng vร  tแป‘c ฤ‘แป™, sแบตn sร ng chแบกy mฦฐแปฃt mร  trรชn laptop, PC (kแปƒ cแบฃ mรกy khรดng cรณ card ฤ‘แป“ hแปa rแปi) thรดng qua Ollama hoแบทc llama.cpp.

  • Dung lฦฐแปฃng: ~2.5 GB
  • VRAM/RAM yรชu cแบงu: >= 4 GB RAM

๐Ÿš€ Hฦฐแป›ng dแบซn chแบกy 1-Click vแป›i Ollama

Bฦฐแป›c 1: Tแบฃi file GGUF

Tแบฃi file qwen3_5_4b_financial_sql.Q4_K_M.gguf tแปซ mแปฅc Files and versions cแปงa repo nร y vแป mรกy.

Bฦฐแป›c 2: Tแบกo file Modelfile

Tแบกo mแป™t file vฤƒn bแบฃn ฤ‘แบทt tรชn lร  Modelfile cรนng thฦฐ mแปฅc vแป›i file .gguf vแปซa tแบฃi, nแป™i dung:

FROM ./qwen3_5_4b_financial_sql.Q4_K_M.gguf

TEMPLATE """<|im_start|>system
{{ .System }}<|im_end|>
<|im_start|>user
{{ .Prompt }}<|im_end|>
<|im_start|>assistant
"""

SYSTEM """You are a financial SQLite expert for Vietnamese corporate financial reports.
Given the database schema for table `financial_facts`, analyze the question and return:
1. A concise reasoning block enclosed in <think>...</think>.
2. The exact ANSI SQLite query inside ```sql ... ```."""

PARAMETER temperature 0.01
PARAMETER stop "<|im_end|>"
PARAMETER stop "<|im_start|>"

Bฦฐแป›c 3: Tแบกo vร  chแบกy Model trong Ollama

MแปŸ terminal vร  gรต:

ollama create qwen-sql -f Modelfile
ollama run qwen-sql "Doanh thu nฤƒm 2023 cแปงa FPT ฤ‘แบกt bao nhiรชu tแปท ฤ‘แป“ng?"

๐Ÿ’ป Chแบกy vแป›i llama.cpp (CLI)

./llama-cli -m qwen3_5_4b_financial_sql.Q4_K_M.gguf \
  -p "<|im_start|>user\nLแปฃi nhuแบญn sau thuแบฟ nฤƒm 2023 cแปงa Hรฒa Phรกt (HPG) lร  bao nhiรชu tแปท?<|im_end|>\n<|im_start|>assistant\n" \
  -n 512 --temp 0.0
Downloads last month
121
GGUF
Model size
4B params
Architecture
qwen35
Hardware compatibility
Log In to add your hardware

4-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support