Spaces:
Runtime error
Runtime error
Ffftdtd5dtft
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -32,7 +32,7 @@ def generate_importance_matrix(model_path, train_data_path):
|
|
32 |
try:
|
33 |
process.wait(timeout=5) # grace period
|
34 |
except subprocess.TimeoutExpired:
|
35 |
-
print("Imatrix proc still didn't term.
|
36 |
process.kill()
|
37 |
|
38 |
os.chdir("..")
|
@@ -125,7 +125,7 @@ def process_model(model_id, q_method, use_imatrix, imatrix_q_method, private_rep
|
|
125 |
if train_data_file:
|
126 |
train_data_path = train_data_file.name
|
127 |
else:
|
128 |
-
train_data_path = "groups_merged.txt"
|
129 |
|
130 |
print(f"Training data file path: {train_data_path}")
|
131 |
|
|
|
32 |
try:
|
33 |
process.wait(timeout=5) # grace period
|
34 |
except subprocess.TimeoutExpired:
|
35 |
+
print("Imatrix proc still didn't term. Forcefully terminating process...")
|
36 |
process.kill()
|
37 |
|
38 |
os.chdir("..")
|
|
|
125 |
if train_data_file:
|
126 |
train_data_path = train_data_file.name
|
127 |
else:
|
128 |
+
train_data_path = "groups_merged.txt" # fallback calibration dataset
|
129 |
|
130 |
print(f"Training data file path: {train_data_path}")
|
131 |
|