Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 98eb092

Browse filesBrowse files
committed
fix: Use system message in og qwen format. Closes abetlen#1697
1 parent d981d32 commit 98eb092
Copy full SHA for 98eb092

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎llama_cpp/llama_chat_format.py

Copy file name to clipboardExpand all lines: llama_cpp/llama_chat_format.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1009,7 +1009,7 @@ def format_qwen(
10091009
**kwargs: Any,
10101010
) -> ChatFormatterResponse:
10111011
_roles = dict(user="<|im_start|>user", assistant="<|im_start|>assistant")
1012-
system_message = "You are a helpful assistant."
1012+
system_message = _get_system_message(messages) or "You are a helpful assistant."
10131013
system_template = "<|im_start|>system\n{system_message}"
10141014
system_message = system_template.format(system_message=system_message)
10151015
_messages = _map_roles(messages, _roles)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.