File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 1212
1313logger = logging .getLogger ("the_well" )
1414
15- CONFIG_DIR = (
16- pathlib . Path ( __file__ ) / ".." / ".." / ".." / "the_well" / "benchmark" / "configs"
17- ). resolve ()
15+ CONFIG_DIR = (pathlib . Path ( __file__ ) / "../../../the_well/benchmark/configs" ). resolve (
16+ strict = True
17+ )
1818CONFIG_NAME = "model_upload"
1919
2020
@@ -57,8 +57,7 @@ def main(cfg: DictConfig):
5757 dataset_name = str (cfg .data .well_dataset_name )
5858 repo_id = f"polymathic-ai/{ model_name } -{ dataset_name } "
5959 logger .info ("Uploading model." )
60- model_card_path = (model_path / "README.md" ).resolve ()
61- assert model_card_path .exists (), f"{ model_card_path } does not exist."
60+ model_card_path = (model_path / "README.md" ).resolve (strict = True )
6261 # Upload model with HF formalism
6362 model .push_to_hub (
6463 repo_id = repo_id ,
You can’t perform that action at this time.
0 commit comments