You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: convert_hf_to_gguf_update.py
+15-6Lines changed: 15 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -59,6 +59,10 @@ class TOKENIZER_TYPE(IntEnum):
59
59
"--full", action="store_true",
60
60
help="download full list of models - make sure you have access to all of them",
61
61
)
62
+
parser.add_argument(
63
+
"--check-missing", action="store_true",
64
+
help="only check for missing pre-tokenizer hashes",
65
+
)
62
66
parser.add_argument(
63
67
"hf_token",
64
68
help="optional HF token",
@@ -70,6 +74,10 @@ class TOKENIZER_TYPE(IntEnum):
70
74
ifhf_tokenisNone:
71
75
logger.warning("HF token not found. You can provide it as an argument or set it in ~/.cache/huggingface/token")
72
76
77
+
ifargs.check_missingandargs.full:
78
+
logger.warning("Downloading full list of models requested, ignoring --check-missing!")
79
+
args.check_missing=False
80
+
73
81
# TODO: this string has to exercise as much pre-tokenizer functionality as possible
74
82
# will be updated with time - contributions welcome
75
83
CHK_TXT='\n\n\n\n\n\n\t\t\t\t\n\n\n\n\n🚀 (normal) 😶🌫️ (multiple emojis concatenated) ✅ 🦙🦙 3 33 333 3333 33333 333333 3333333 33333333 3.3 3..3 3...3 កាន់តែពិសេសអាច😁 ?我想在apple工作1314151天~ ------======= нещо на Български \'\'\'\'\'\'```````\"\"\"\"......!!!!!!?????? I\'ve been \'told he\'s there, \'RE you sure? \'M not sure I\'ll make it, \'D you like some tea? We\'Ve a\'lL'
0 commit comments