8000 fix: broken import · eycewind/llama-cpp-python@85d3374 · GitHub
[go: up one dir, main page]

Skip to content

Commit 85d3374

Browse files
committed
fix: broken import
1 parent b5fca91 commit 85d3374

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llama_cpp/server/model.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
import llama_cpp
88
import llama_cpp.llama_speculative as llama_speculative
9+
import llama_cpp.llama_tokenizer as llama_tokenizer
910

1011
from llama_cpp.server.settings import ModelSettings
1112

@@ -95,7 +96,7 @@ def load_llama_from_model_settings(settings: ModelSettings) -> llama_cpp.Llama:
9596

9697
tokenizer: Optional[llama_cpp.BaseLlamaTokenizer] = None
9798
if settings.hf_pretrained_model_name_or_path is not None:
98-
tokenizer = llama_cpp.LlamaHFTokenizer.from_pretrained(settings.hf_pretrained_model_name_or_path)
99+
tokenizer = llama_tokenizer.LlamaHFTokenizer.from_pretrained(settings.hf_pretrained_model_name_or_path)
99100

100101
draft_model = None
101102
if settings.draft_model is not None:

0 commit comments

Comments
 (0)
0