BramLeo commited on
Commit
384b6d3
·
verified ·
1 Parent(s): bb495a5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -70,7 +70,10 @@ def initialize_settings(model_path):
70
  Settings.llm = LlamaCPP(
71
  model_path=model_path,
72
  temperature=0.7,
73
- n_gpu_layers=20 # 🔥 Mempercepat inferensi dengan GPU jika tersedia
 
 
 
74
  )
75
 
76
  # ===================================
 
70
  Settings.llm = LlamaCPP(
71
  model_path=model_path,
72
  temperature=0.7,
73
+ context_window=4096,
74
+ max_new_tokens=512,
75
+ # n_gpu_layers=20, # ❌ Hapus jika error
76
+ model_kwargs={"n_ctx": 4096}
77
  )
78
 
79
  # ===================================