Update handler.py
Browse files- handler.py +3 -3
handler.py
CHANGED
|
@@ -10,10 +10,10 @@ class EndpointHandler:
|
|
| 10 |
Initialize the model handler using llama_cpp.
|
| 11 |
"""
|
| 12 |
self.model = Llama.from_pretrained(
|
| 13 |
-
repo_id="bartowski/Llama-3.
|
| 14 |
-
filename="Llama-3.
|
| 15 |
)
|
| 16 |
-
self.tokenizer = AutoTokenizer.from_pretrained("
|
| 17 |
|
| 18 |
def get_allowed_token_ids(self, vocab_list: List[str]) -> set[int]:
|
| 19 |
"""
|
|
|
|
| 10 |
Initialize the model handler using llama_cpp.
|
| 11 |
"""
|
| 12 |
self.model = Llama.from_pretrained(
|
| 13 |
+
repo_id="bartowski/Meta-Llama-3.1-8B-Instruct-GGUF",
|
| 14 |
+
filename="Meta-Llama-3.1-8B-Instruct-Q4_K_M.gguf"
|
| 15 |
)
|
| 16 |
+
self.tokenizer = AutoTokenizer.from_pretrained("taylorj94/Llama-3.2-1B")
|
| 17 |
|
| 18 |
def get_allowed_token_ids(self, vocab_list: List[str]) -> set[int]:
|
| 19 |
"""
|