GGUF
conversational
xiaohei66 commited on
Commit
511b096
·
verified ·
1 Parent(s): c75b67f

Update metadata (tokenizer.chat_template)

Browse files

Updated metadata:
* **tokenizer.chat_template**:
```django
{%- if not add_generation_prompt is defined -%}
{%- set add_generation_prompt = true -%}
{%- endif -%}
{%- if not cls_token is defined -%}
{%- set cls_token = "<|begin_of_sentence|>" -%}
{%- endif -%}
{%- if not eos_token is defined -%}
{%- set eos_token = "</s>" -%}
{%- endif -%}
{{- cls_token -}}
{%- for message in messages -%}
{%- if message["role"] == "user" -%}
{{- "User: " -}}
{%- if message["content"] is string -%}
{{- message["content"] }}
{%- else -%}
{%- for content in message["content"] -%}
{%- if content["type"] == "image" -%}
{{ "<|IMAGE_START|><|IMAGE_PLACEHOLDER|><|IMAGE_END|>" }}
{%- endif -%}
{%- endfor -%}
{%- for content in message["content"] -%}
{%- if content["type"] == "text" -%}
{{ content["text"] }}
{%- endif -%}
{%- endfor -%}
{%- endif -%}
{{ "\n" -}}
{%- elif message["role"] == "assistant" -%}
{{- "Assistant:\n" -}}
{%- if message["content"] is string -%}
{{- message["content"] }}
{%- else -%}
{%- for content in message["content"] -%}
{%- if content["type"] == "text" -%}
{{ content["text"] }}
{%- endif -%}
{%- endfor -%}
{%- endif -%}
{{ eos_token -}}
{%- elif message["role"] == "system" -%}
{%- if message["content"] is string -%}
{{- message["content"] }}
{%- else -%}
{%- for content in message["content"] -%}
{%- if content["type"] == "text" -%}
{{ content["text"] + "\n" }}
{%- endif -%}
{%- endfor -%}
{%- endif -%}
{%- endif -%}
{%- endfor -%}
{%- if add_generation_prompt -%}
{{- "Assistant:\n" -}}
{%- endif -%}

```

Files changed (1) hide show
  1. PaddleOCR-VL-1.6-GGUF.gguf +2 -2
PaddleOCR-VL-1.6-GGUF.gguf CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:4d8a053ab2048c0f738bd0290506982fe491920b4ef4709609cf2b0294c7712c
3
- size 935768704
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f3ae46ec885050acf4b3d31944431e1fd90d50664fb09126af4a3c050ba14ee8
3
+ size 935769056