Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 85d3374

Browse filesBrowse files
committed
fix: broken import
1 parent b5fca91 commit 85d3374
Copy full SHA for 85d3374

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed

‎llama_cpp/server/model.py

Copy file name to clipboardExpand all lines: llama_cpp/server/model.py
+2-1Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.