Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

two converter py files needs basicConfig() added #7070

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions 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,6 +34,7 @@
from transformers import AutoTokenizer

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


class TOKENIZER_TYPE(IntEnum):
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
Loading