sawac commited on
Commit
56b84bb
·
verified ·
1 Parent(s): dae1206

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -8,7 +8,7 @@ import time
8
  repo_id = "bartowski/Qwen2.5-1.5B-Instruct-GGUF"
9
  filename = "Qwen2.5-1.5B-Instruct-Q8_0.gguf"
10
 
11
- CONTEXT_SIZE = 2048
12
  N_THREADS = 2 #FreeのCPUは2なので
13
 
14
  llm = None
@@ -23,7 +23,7 @@ def load_model(progress=gr.Progress()):
23
  llm = Llama(
24
  model_path=model_path,
25
  n_threads=N_THREADS,
26
- n_batch=32,
27
  verbose=False,
28
  n_ctx=CONTEXT_SIZE,
29
  )
 
8
  repo_id = "bartowski/Qwen2.5-1.5B-Instruct-GGUF"
9
  filename = "Qwen2.5-1.5B-Instruct-Q8_0.gguf"
10
 
11
+ CONTEXT_SIZE = 1024
12
  N_THREADS = 2 #FreeのCPUは2なので
13
 
14
  llm = None
 
23
  llm = Llama(
24
  model_path=model_path,
25
  n_threads=N_THREADS,
26
+ n_batch=8,
27
  verbose=False,
28
  n_ctx=CONTEXT_SIZE,
29
  )