Skip to content

Commit 5f30e30

Browse files
committed
lint : fix
1 parent d974aed commit 5f30e30

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.flake8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[flake8]
22
max-line-length = 125
33
ignore = E203,E211,E221,E225,E231,E241,E251,E261,E266,E501,E701,E704,W503
4-
exclude = examples/*,examples/*/**,*/**/__init__.py
4+
exclude = examples/*,examples/*/**,*/**/__init__.py,scripts/gen-unicode-data.py,tests/test-tokenizer-0.py

convert-hf-to-gguf-update.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
from enum import IntEnum, auto
3232
from transformers import AutoTokenizer
3333

34+
logging.basicConfig(level=logging.DEBUG)
3435
logger = logging.getLogger("convert-hf-to-gguf-update")
3536

3637

@@ -284,6 +285,6 @@ def get_vocab_base_pre(self, tokenizer) -> str:
284285
for model in models:
285286
name = model["name"]
286287

287-
logger.info(f"python3 convert-hf-to-gguf.py models/tokenizers/{name}/ --outfile models/ggml-vocab-{name}.gguf --vocab-only")
288+
print(f"python3 convert-hf-to-gguf.py models/tokenizers/{name}/ --outfile models/ggml-vocab-{name}.gguf --vocab-only") # noqa: NP100
288289

289290
logger.info("\n")

0 commit comments

Comments
 (0)