Spaces:
Sleeping
Sleeping
Oleg Shulyakov
commited on
Commit
·
47024b2
1
Parent(s):
1e5690f
Add calibration dataset v5
Browse files- app.py +4 -5
- train_data.txt → calibration_data_v5_rc.txt +0 -0
app.py
CHANGED
|
@@ -205,10 +205,9 @@ def quantize_model(
|
|
| 205 |
output_tensor_method: str,
|
| 206 |
):
|
| 207 |
if use_imatrix:
|
| 208 |
-
|
| 209 |
-
|
| 210 |
-
|
| 211 |
-
train_data_path = "train_data.txt" #fallback calibration dataset
|
| 212 |
|
| 213 |
print(f"Training data file path: {train_data_path}")
|
| 214 |
|
|
@@ -603,7 +602,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 603 |
use_imatrix.render()
|
| 604 |
q_method.render()
|
| 605 |
imatrix_q_method.render()
|
| 606 |
-
train_data_file.render()
|
| 607 |
|
| 608 |
gr.Markdown("### Advanced Options")
|
| 609 |
|
|
|
|
| 205 |
output_tensor_method: str,
|
| 206 |
):
|
| 207 |
if use_imatrix:
|
| 208 |
+
train_data_path = "calibration_data_v5_rc.txt" #fallback calibration dataset
|
| 209 |
+
# if train_data_file:
|
| 210 |
+
# train_data_path = train_data_file.name
|
|
|
|
| 211 |
|
| 212 |
print(f"Training data file path: {train_data_path}")
|
| 213 |
|
|
|
|
| 602 |
use_imatrix.render()
|
| 603 |
q_method.render()
|
| 604 |
imatrix_q_method.render()
|
| 605 |
+
# train_data_file.render()
|
| 606 |
|
| 607 |
gr.Markdown("### Advanced Options")
|
| 608 |
|
train_data.txt → calibration_data_v5_rc.txt
RENAMED
|
The diff for this file is too large to render.
See raw diff
|
|
|