Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -511,13 +511,13 @@ def start_training(
|
|
511 |
}
|
512 |
|
513 |
# Apply advanced YAML overrides if any
|
514 |
-
if use_more_advanced_options and more_advanced_options:
|
515 |
-
|
516 |
-
|
517 |
|
518 |
# Save YAML config
|
519 |
-
os.makedirs("tmp_configs", exist_ok=True)
|
520 |
-
config_path = f"tmp_configs/{uuid.uuid4()}_{slugged_lora_name}.yaml"
|
521 |
with open(config_path, "w") as f:
|
522 |
yaml.dump(config, f)
|
523 |
|
@@ -576,6 +576,7 @@ def auto_run_lora_from_repo():
|
|
576 |
# ✅ Create dataset folder with metadata.jsonl
|
577 |
dataset_folder = os.path.join("/tmp", f"datasets_{uuid.uuid4()}")
|
578 |
os.makedirs(dataset_folder, exist_ok=True)
|
|
|
579 |
|
580 |
jsonl_file_path = os.path.join(dataset_folder, "metadata.jsonl")
|
581 |
with open(jsonl_file_path, "a") as jsonl_file:
|
@@ -600,6 +601,8 @@ def auto_run_lora_from_repo():
|
|
600 |
yaml.dump(config, f)
|
601 |
|
602 |
# ✅ Final call to train
|
|
|
|
|
603 |
result = start_training(
|
604 |
lora_name=LORA_NAME,
|
605 |
concept_sentence=CONCEPT_SENTENCE,
|
|
|
511 |
}
|
512 |
|
513 |
# Apply advanced YAML overrides if any
|
514 |
+
# if use_more_advanced_options and more_advanced_options:
|
515 |
+
# advanced_config = yaml.safe_load(more_advanced_options)
|
516 |
+
# config["config"]["process"][0] = recursive_update(config["config"]["process"][0], advanced_config)
|
517 |
|
518 |
# Save YAML config
|
519 |
+
os.makedirs("/tmp/tmp_configs", exist_ok=True)
|
520 |
+
config_path = f"/tmp/tmp_configs/{uuid.uuid4()}_{slugged_lora_name}.yaml"
|
521 |
with open(config_path, "w") as f:
|
522 |
yaml.dump(config, f)
|
523 |
|
|
|
576 |
# ✅ Create dataset folder with metadata.jsonl
|
577 |
dataset_folder = os.path.join("/tmp", f"datasets_{uuid.uuid4()}")
|
578 |
os.makedirs(dataset_folder, exist_ok=True)
|
579 |
+
print('DATA SET iS CREATED =================================================')
|
580 |
|
581 |
jsonl_file_path = os.path.join(dataset_folder, "metadata.jsonl")
|
582 |
with open(jsonl_file_path, "a") as jsonl_file:
|
|
|
601 |
yaml.dump(config, f)
|
602 |
|
603 |
# ✅ Final call to train
|
604 |
+
print(f" slugged_lora{ slugged_lora_name}")
|
605 |
+
print('Now Start Trainng Set called all data si rADYU =================================================')
|
606 |
result = start_training(
|
607 |
lora_name=LORA_NAME,
|
608 |
concept_sentence=CONCEPT_SENTENCE,
|