ilintar commited on
Commit
4c9b4a5
·
verified ·
1 Parent(s): 16027c1

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +0 -17
README.md CHANGED
@@ -12,23 +12,6 @@ EDIT 22-04-2025: deleted old GGUFs and uploaded one with new PR from https://git
12
 
13
  If you are testing with LM Studio, replace the Jinja template with this one:
14
  ```jinja
15
- [gMASK]<sop>{%- if tools -%}<|system|>你是一个名为 ChatGLM 的人工智能助手。你是基于智谱 AI 公司训练的语言模型 GLM-4 模型开发的,你的任务是针对用户的问题和要求提供适当的答复和支持。
16
-
17
- # 可用工具
18
-
19
- {% for tool in tools %}{%- set function = tool.function if tool.get("function") else tool %}
20
-
21
- ## {{ function.name }}
22
-
23
- {{ function | tojson(indent=4, ensure_ascii=False) }}
24
- 在调用上述函数时,请使用 Json 格式表示调用的参数。{%- endfor %}{%- endif -%}{%- for msg in messages %}{%- if msg.role == 'system' %}<|system|>
25
- {{ msg.content }}{%- endif %}{%- endfor %}{%- for message in messages if message.role != 'system' %}{%- set role = message['role'] %}{%- set content = message['content'] %}{%- set visible = content.split('</think>')[-1].strip() %}{%- set meta = message.get("metadata", "") %}{%- if role == 'user' %}<|user|>
26
- {{ visible }}{%- elif role == 'assistant' and not meta %}<|assistant|>
27
- {{ visible }}{%- elif role == 'assistant' and meta %}<|assistant|>{{ meta }}
28
- {{ visible }}{%- elif role == 'observation' %}<|observation|>
29
- {{ visible }}{%- endif %}{%- endfor %}{% if add_generation_prompt %}<|assistant|>{% endif %}
30
- My modified version when I split the operation into two lines does, though:
31
-
32
  [gMASK]<sop>
33
  {%- if tools -%}
34
  <|system|>
 
12
 
13
  If you are testing with LM Studio, replace the Jinja template with this one:
14
  ```jinja
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
  [gMASK]<sop>
16
  {%- if tools -%}
17
  <|system|>