Rachit-Mangawa commited on
Commit
be5289d
·
1 Parent(s): f673c95

perf: reduce num_predict to 80 for sub-20s inference on CPU

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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": 100, "temperature": 0.1}
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: