@@ -6458,7 +6458,7 @@ def main() -> None:
6458
6458
if args .remote :
6459
6459
from huggingface_hub import snapshot_download
6460
6460
local_dir = snapshot_download (
6461
- repo_id = str ( dir_model ),
6461
+ repo_id = dir_model . as_posix ( ),
6462
6462
allow_patterns = ["LICENSE" , "*.json" , "*.md" , "*.txt" , "tokenizer.model" ])
6463
6463
dir_model = Path (local_dir )
6464
6464
logger .info (f"Downloaded config and tokenizer to { local_dir } " )
@@ -6486,7 +6486,7 @@ def main() -> None:
6486
6486
fname_out = args .outfile
6487
6487
elif args .remote :
6488
6488
# 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" )
6490
6490
else :
6491
6491
fname_out = dir_model
6492
6492
@@ -6515,7 +6515,7 @@ def main() -> None:
6515
6515
split_max_tensors = args .split_max_tensors ,
6516
6516
split_max_size = split_str_to_n_bytes (args .split_max_size ), dry_run = args .dry_run ,
6517
6517
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 )
6519
6519
6520
6520
if args .vocab_only :
6521
6521
logger .info ("Exporting model vocab..." )
0 commit comments