Spaces:
Sleeping
Sleeping
Model Change
Browse filesSwitched to Qwen3-4B-Instruct-2507, a better fitting model for the anticipated task types.
app.py
CHANGED
|
@@ -18,13 +18,13 @@ if "HUGGINGFACEHUB_API_TOKEN" not in os.environ:
|
|
| 18 |
|
| 19 |
# --- LLM and Template Configuration ---
|
| 20 |
llm = HuggingFaceEndpoint(
|
| 21 |
-
repo_id="
|
| 22 |
temperature=0.7,
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
|
|
|
| 26 |
)
|
| 27 |
-
|
| 28 |
math_template = ChatPromptTemplate.from_messages([
|
| 29 |
("system", """{system_message}
|
| 30 |
You are an expert math tutor. For every math problem:
|
|
|
|
| 18 |
|
| 19 |
# --- LLM and Template Configuration ---
|
| 20 |
llm = HuggingFaceEndpoint(
|
| 21 |
+
repo_id="Qwen/Qwen3-4B-Instruct-2507",
|
| 22 |
temperature=0.7,
|
| 23 |
+
top_p=0.8,
|
| 24 |
+
top_k=20,
|
| 25 |
+
max_new_tokens=1024,
|
| 26 |
+
huggingfacehub_api_token=os.getenv("HUGGINGFACEHUB_API_TOKEN")
|
| 27 |
)
|
|
|
|
| 28 |
math_template = ChatPromptTemplate.from_messages([
|
| 29 |
("system", """{system_message}
|
| 30 |
You are an expert math tutor. For every math problem:
|