Skip to content

Commit

Permalink
two converter py files needs basicConfig() added
Browse files Browse the repository at this point in the history
  • Loading branch information
mofosyne committed May 4, 2024
1 parent a2ac89d commit 35f98ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion convert-hf-to-gguf-update.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python3

# This script downloads the tokenizer models of the specified models from Huggingface and
# generates the get_vocab_base_pre() function for convert-hf-to-gguf.py
#
Expand Down Expand Up @@ -32,7 +34,7 @@
from transformers import AutoTokenizer

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

logging.basicConfig(level=logging.INFO)

class TOKENIZER_TYPE(IntEnum):
SPM = auto()
Expand Down
1 change: 1 addition & 0 deletions convert-lora-to-ggml.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import gguf

logger = logging.getLogger("lora-to-gguf")
logging.basicConfig(level=logging.INFO)

NUMPY_TYPE_TO_FTYPE: dict[str, int] = {"float32": 0, "float16": 1}

Expand Down

0 comments on commit 35f98ff

Please sign in to comment.