@@ -6458,7 +6458,7 @@ def main() -> None:
64586458 if args .remote :
64596459 from huggingface_hub import snapshot_download
64606460 local_dir = snapshot_download (
6461- repo_id = str ( dir_model ),
6461+ repo_id = dir_model . as_posix ( ),
64626462 allow_patterns = ["LICENSE" , "*.json" , "*.md" , "*.txt" , "tokenizer.model" ])
64636463 dir_model = Path (local_dir )
64646464 logger .info (f"Downloaded config and tokenizer to { local_dir } " )
@@ -6486,7 +6486,7 @@ def main() -> None:
64866486 fname_out = args .outfile
64876487 elif args .remote :
64886488 # if remote, use the model ID as the output file name
6489- fname_out = Path ("./" + str ( args .model ).replace ("/" , "-" ) + "-{ftype}.gguf" )
6489+ fname_out = Path ("./" + args .model . as_posix ( ).replace ("/" , "-" ) + "-{ftype}.gguf" )
64906490 else :
64916491 fname_out = dir_model
64926492
@@ -6515,7 +6515,7 @@ def main() -> None:
65156515 split_max_tensors = args .split_max_tensors ,
65166516 split_max_size = split_str_to_n_bytes (args .split_max_size ), dry_run = args .dry_run ,
65176517 small_first_shard = args .no_tensor_first_split ,
6518- remote_hf_model_id = str ( args .model ) if args .remote else None )
6518+ remote_hf_model_id = args .model . as_posix ( ) if args .remote else None )
65196519
65206520 if args .vocab_only :
65216521 logger .info ("Exporting model vocab..." )
0 commit comments