Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -99,8 +99,8 @@ os.makedirs("models",exist_ok=True)
|
|
| 99 |
|
| 100 |
logging.info("start download")
|
| 101 |
hf_hub_download(
|
| 102 |
-
repo_id="bartowski/google_gemma-3-
|
| 103 |
-
filename="google_gemma-3-
|
| 104 |
local_dir="./models",
|
| 105 |
)
|
| 106 |
|
|
@@ -148,7 +148,7 @@ class LlamaCppModel(Model):
|
|
| 148 |
n_batch=8,
|
| 149 |
n_ctx=n_ctx,
|
| 150 |
n_threads=2,
|
| 151 |
-
n_threads_batch=
|
| 152 |
)
|
| 153 |
|
| 154 |
elif repo_id and filename:
|
|
@@ -255,7 +255,7 @@ class LlamaCppModel(Model):
|
|
| 255 |
|
| 256 |
|
| 257 |
model = LlamaCppModel(
|
| 258 |
-
model_path = "models/google_gemma-3-
|
| 259 |
n_ctx=8192,verbose=False
|
| 260 |
)
|
| 261 |
|
|
|
|
| 99 |
|
| 100 |
logging.info("start download")
|
| 101 |
hf_hub_download(
|
| 102 |
+
repo_id="bartowski/google_gemma-3-4b-it-GGUF",
|
| 103 |
+
filename="google_gemma-3-4b-it-Q4_K_M.gguf",
|
| 104 |
local_dir="./models",
|
| 105 |
)
|
| 106 |
|
|
|
|
| 148 |
n_batch=8,
|
| 149 |
n_ctx=n_ctx,
|
| 150 |
n_threads=2,
|
| 151 |
+
n_threads_batch=4,verbose=False
|
| 152 |
)
|
| 153 |
|
| 154 |
elif repo_id and filename:
|
|
|
|
| 255 |
|
| 256 |
|
| 257 |
model = LlamaCppModel(
|
| 258 |
+
model_path = "models/google_gemma-3-4b-it-Q4_K_M",
|
| 259 |
n_ctx=8192,verbose=False
|
| 260 |
)
|
| 261 |
|