We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 537d249 commit ab78275Copy full SHA for ab78275
1 file changed
llama_cpp/llama_chat_template.py
@@ -228,7 +228,9 @@ def raise_exception(message: str):
228
strftime_now=self.strftime_now,
229
)
230
231
+ print("JINJA2 PROMPT")
232
print(prompt)
233
+ print("JINJA2 PROMPT END")
234
235
stopping_criteria = None
236
if self.stop_token_ids is not None:
@@ -891,6 +893,7 @@ def chat_completion_handler(
891
893
}
892
894
895
# Format the prompt using the chat formatter
896
+ print("FORMATTING PROMPT")
897
result = chat_formatter(
898
messages=messages,
899
functions=functions,
@@ -900,6 +903,7 @@ def chat_completion_handler(
900
903
901
904
902
905
# Prepare prompt and stopping criteria
906
+ print("TOKENIZING PROMPT")
907
prompt = llama.tokenize(
908
result.prompt.encode("utf-8"),
909
add_bos=not result.added_special,
0 commit comments