Oleg Shulyakov commited on
Commit
dceec55
·
1 Parent(s): 1147115

Extract CALIBRATION_FILE

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -71,6 +71,7 @@ class HuggingFaceModelProcessor:
71
  ERROR_LOGIN = "You must be logged in to use GGUF-my-repo."
72
  DOWNLOAD_FOLDER = "./downloads"
73
  OUTPUT_FOLDER = "./outputs"
 
74
 
75
  def __init__(self):
76
  self.SPACE_ID = os.environ.get("SPACE_ID", "")
@@ -139,7 +140,7 @@ class HuggingFaceModelProcessor:
139
  if not os.path.isfile(quant_config.fp16_model):
140
  raise GGUFConverterError(f"Model file not found: {quant_config.fp16_model}")
141
 
142
- train_data_path = "calibration_data_v5_rc.txt"
143
  if not os.path.isfile(train_data_path):
144
  raise GGUFConverterError(f"Training data file not found: {train_data_path}")
145
  print(f"Training data file path: {train_data_path}")
 
71
  ERROR_LOGIN = "You must be logged in to use GGUF-my-repo."
72
  DOWNLOAD_FOLDER = "./downloads"
73
  OUTPUT_FOLDER = "./outputs"
74
+ CALIBRATION_FILE = "calibration_data_v5_rc.txt"
75
 
76
  def __init__(self):
77
  self.SPACE_ID = os.environ.get("SPACE_ID", "")
 
140
  if not os.path.isfile(quant_config.fp16_model):
141
  raise GGUFConverterError(f"Model file not found: {quant_config.fp16_model}")
142
 
143
+ train_data_path = CALIBRATION_FILE
144
  if not os.path.isfile(train_data_path):
145
  raise GGUFConverterError(f"Training data file not found: {train_data_path}")
146
  print(f"Training data file path: {train_data_path}")