Spaces:
Running
Running
Rachit-Mangawa commited on
Commit ·
be5289d
1
Parent(s): f673c95
perf: reduce num_predict to 80 for sub-20s inference on CPU
Browse files
app.py
CHANGED
|
@@ -49,7 +49,7 @@ async def call_llm_local(prompt: str, system: str = "") -> Optional[Dict]:
|
|
| 49 |
"prompt": f"System: {system}\nStrict Grounding. No Fabrication. Context: {prompt}\nUser: Return JSON message.",
|
| 50 |
"stream": False,
|
| 51 |
"format": "json",
|
| 52 |
-
"options": {"num_predict":
|
| 53 |
}
|
| 54 |
async with httpx.AsyncClient() as client:
|
| 55 |
try:
|
|
|
|
| 49 |
"prompt": f"System: {system}\nStrict Grounding. No Fabrication. Context: {prompt}\nUser: Return JSON message.",
|
| 50 |
"stream": False,
|
| 51 |
"format": "json",
|
| 52 |
+
"options": {"num_predict": 80, "temperature": 0.1}
|
| 53 |
}
|
| 54 |
async with httpx.AsyncClient() as client:
|
| 55 |
try:
|