feat: change to Qwen/Qwen2.5-Coder-7B
Browse files
app.py
CHANGED
@@ -3,8 +3,10 @@ from llm import load_llm, response_generator
|
|
3 |
from sql import csv_to_sqlite, run_sql_query
|
4 |
|
5 |
|
6 |
-
repo_id = "Qwen/Qwen2.5-Coder-1.5B-Instruct-GGUF"
|
7 |
-
filename = "qwen2.5-coder-1.5b-instruct-q8_0.gguf"
|
|
|
|
|
8 |
# repo_id = "Qwen/Qwen2.5-0.5B-Instruct-GGUF"
|
9 |
# filename = "qwen2.5-0.5b-instruct-q8_0.gguf"
|
10 |
|
|
|
3 |
from sql import csv_to_sqlite, run_sql_query
|
4 |
|
5 |
|
6 |
+
# repo_id = "Qwen/Qwen2.5-Coder-1.5B-Instruct-GGUF"
|
7 |
+
# filename = "qwen2.5-coder-1.5b-instruct-q8_0.gguf"
|
8 |
+
repo_id = "Qwen/Qwen2.5-Coder-7B-Instruct-GGUF"
|
9 |
+
filename = "qwen2.5-coder-7b-instruct-q4_k_m*.gguf"
|
10 |
# repo_id = "Qwen/Qwen2.5-0.5B-Instruct-GGUF"
|
11 |
# filename = "qwen2.5-0.5b-instruct-q8_0.gguf"
|
12 |
|
llm.py
CHANGED
@@ -30,7 +30,7 @@ def generate_system_prompt(table_name, table_schema):
|
|
30 |
Returns:
|
31 |
str: The generated prompt to be used by the LLM.
|
32 |
"""
|
33 |
-
prompt = f"""You are an expert in writing SQL queries for relational databases.
|
34 |
You will be provided with a database schema and a natural
|
35 |
language question, and your task is to generate an accurate SQL query.
|
36 |
|
|
|
30 |
Returns:
|
31 |
str: The generated prompt to be used by the LLM.
|
32 |
"""
|
33 |
+
prompt = f"""You are an expert in writing SQL queries for relational databases, specially sqlite.
|
34 |
You will be provided with a database schema and a natural
|
35 |
language question, and your task is to generate an accurate SQL query.
|
36 |
|