Skip to content

Commit 74fa6cd

Browse files
committed
lint : fix
1 parent d974aed commit 74fa6cd

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
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: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@
3131
from enum import IntEnum, auto
3232
from transformers import AutoTokenizer
3333

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

36+
logger = logging.getLogger("convert-hf-to-gguf-update")
3637

3738
class TOKENIZER_TYPE(IntEnum):
3839
SPM = auto()
@@ -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)