Skip to content
Merged
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
2 changes: 2 additions & 0 deletions docs/guide/migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ from outlines import models
model = models.llamacpp(
repo_id="M4-ai/TinyMistral-248M-v2-Instruct-GGUF",
filename="TinyMistral-248M-v2-Instruct.Q4_K_M.gguf",
chat_format="qwen",
)
```

Expand All @@ -74,6 +75,7 @@ from outlines import from_llamacpp
llamacpp_model = Llama.from_pretrained(
repo_id="M4-ai/TinyMistral-248M-v2-Instruct-GGUF",
filename="TinyMistral-248M-v2-Instruct.Q4_K_M.gguf",
chat_format="qwen",
)
model = from_llamacpp(llamacpp_model)
```
Expand Down
1 change: 1 addition & 0 deletions tests/backends/test_llguidance.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def model_llamacpp():
llama_cpp.Llama.from_pretrained(
repo_id="M4-ai/TinyMistral-248M-v2-Instruct-GGUF",
filename="TinyMistral-248M-v2-Instruct.Q4_K_M.gguf",
chat_format="qwen",
)
)

Expand Down
1 change: 1 addition & 0 deletions tests/backends/test_outlines_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ def model_llamacpp():
llama_cpp.Llama.from_pretrained(
repo_id="M4-ai/TinyMistral-248M-v2-Instruct-GGUF",
filename="TinyMistral-248M-v2-Instruct.Q4_K_M.gguf",
chat_format="qwen",
)
)

Expand Down
1 change: 1 addition & 0 deletions tests/backends/test_xgrammar.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ def model_llamacpp():
llama_cpp.Llama.from_pretrained(
repo_id="M4-ai/TinyMistral-248M-v2-Instruct-GGUF",
filename="TinyMistral-248M-v2-Instruct.Q4_K_M.gguf",
chat_format="qwen",
)
)

Expand Down
2 changes: 2 additions & 0 deletions tests/models/test_llamacpp.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ def test_load_model():
Llama.from_pretrained(
repo_id="M4-ai/TinyMistral-248M-v2-Instruct-GGUF",
filename="TinyMistral-248M-v2-Instruct.Q4_K_M.gguf",
chat_format="qwen"
)
)

Expand All @@ -36,6 +37,7 @@ def model(tmp_path_factory):
Llama.from_pretrained(
repo_id="M4-ai/TinyMistral-248M-v2-Instruct-GGUF",
filename="TinyMistral-248M-v2-Instruct.Q4_K_M.gguf",
chat_format="qwen",
)
)

Expand Down
2 changes: 2 additions & 0 deletions tests/models/test_llamacpp_tokenizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ def model():
model = llama_cpp.Llama.from_pretrained(
repo_id="M4-ai/TinyMistral-248M-v2-Instruct-GGUF",
filename="TinyMistral-248M-v2-Instruct.Q4_K_M.gguf",
chat_format="qwen",
)
setattr(
model.tokenizer_,
Expand All @@ -27,6 +28,7 @@ def model_no_hf_tokenizer():
model = llama_cpp.Llama.from_pretrained(
repo_id="M4-ai/TinyMistral-248M-v2-Instruct-GGUF",
filename="TinyMistral-248M-v2-Instruct.Q4_K_M.gguf",
chat_format="qwen",
)
del model.tokenizer_
return model
Expand Down
Loading