mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-06-27 18:50:41 +00:00
fix: kill the usage of python_start and python_end tokens
This commit is contained in:
parent
3021c87271
commit
3f92b2bf85
1 changed files with 0 additions and 6 deletions
|
@ -203,14 +203,8 @@ class ChatFormat:
|
|||
tokens.extend(toks)
|
||||
images.extend(imgs)
|
||||
|
||||
if message.role == "assistant" and len(message.tool_calls) > 0:
|
||||
tokens.append(self.tokenizer.special_tokens["<|python_start|>"])
|
||||
|
||||
_process_content(message.content)
|
||||
|
||||
if message.role == "assistant" and len(message.tool_calls) > 0:
|
||||
tokens.append(self.tokenizer.special_tokens["<|python_end|>"])
|
||||
|
||||
if message.role == "user" and message.context is not None:
|
||||
# This is RAG context; why is it here in the chat format? I don't think
|
||||
# this is needed and can be moved upwards
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue