Merge branch 'adding-support-for-mamba2' of https://github.com/Goekdeniz-Guelmez/mlx-examples into adding-support-for-mamba2

This commit is contained in:
Goekdeniz-Guelmez
2024-10-11 20:54:35 +02:00
2 changed files with 5 additions and 0 deletions

View File

@@ -594,6 +594,7 @@ class APIHandler(BaseHTTPRequestHandler):
):
prompt = self.tokenizer.apply_chat_template(
body["messages"],
body.get("tools", None),
tokenize=True,
add_generation_prompt=True,
)