Skip to content

Commit 7886fd8

Browse files
authored
Fix remote option in Windows
1 parent 2bb0467 commit 7886fd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

convert_hf_to_gguf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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}")

0 commit comments

Comments
 (0)