DongfuJiang
commited on
Commit
•
6666d84
1
Parent(s):
6b47008
Update Processor
Browse files- README.md +5 -5
- chat_template.json +3 -0
- processor_config.json +1 -0
- tokenizer_config.json +1 -0
README.md
CHANGED
@@ -1,6 +1,10 @@
|
|
1 |
---
|
2 |
-
license: apache-2.0
|
3 |
base_model: HuggingFaceM4/idefics2-8b
|
|
|
|
|
|
|
|
|
|
|
4 |
tags:
|
5 |
- multimodal
|
6 |
- lmm
|
@@ -12,10 +16,6 @@ tags:
|
|
12 |
model-index:
|
13 |
- name: mantis-8b-idefics2_8192
|
14 |
results: []
|
15 |
-
datasets:
|
16 |
-
- TIGER-Lab/Mantis-Instruct
|
17 |
-
language:
|
18 |
-
- en
|
19 |
---
|
20 |
|
21 |
# 🔥 Mantis
|
|
|
1 |
---
|
|
|
2 |
base_model: HuggingFaceM4/idefics2-8b
|
3 |
+
datasets:
|
4 |
+
- TIGER-Lab/Mantis-Instruct
|
5 |
+
language:
|
6 |
+
- en
|
7 |
+
license: apache-2.0
|
8 |
tags:
|
9 |
- multimodal
|
10 |
- lmm
|
|
|
16 |
model-index:
|
17 |
- name: mantis-8b-idefics2_8192
|
18 |
results: []
|
|
|
|
|
|
|
|
|
19 |
---
|
20 |
|
21 |
# 🔥 Mantis
|
chat_template.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"chat_template": "{% for message in messages %}{{message['role'].capitalize()}}{% if message['content'][0]['type'] == 'image' %}{{':'}}{% else %}{{': '}}{% endif %}{% for line in message['content'] %}{% if line['type'] == 'text' %}{{line['text']}}{% elif line['type'] == 'image' %}{{ '<image>' }}{% endif %}{% endfor %}<end_of_utterance>\n{% endfor %}{% if add_generation_prompt %}{{ 'Assistant:' }}{% endif %}"
|
3 |
+
}
|
processor_config.json
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
{
|
|
|
2 |
"image_seq_len": 64,
|
3 |
"processor_class": "Idefics2Processor"
|
4 |
}
|
|
|
1 |
{
|
2 |
+
"chat_template": "{% for message in messages %}{{message['role'].capitalize()}}{% if message['content'][0]['type'] == 'image' %}{{':'}}{% else %}{{': '}}{% endif %}{% for line in message['content'] %}{% if line['type'] == 'text' %}{{line['text']}}{% elif line['type'] == 'image' %}{{ '<image>' }}{% endif %}{% endfor %}<end_of_utterance>\n{% endfor %}{% if add_generation_prompt %}{{ 'Assistant:' }}{% endif %}",
|
3 |
"image_seq_len": 64,
|
4 |
"processor_class": "Idefics2Processor"
|
5 |
}
|
tokenizer_config.json
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
{
|
2 |
"add_bos_token": true,
|
3 |
"add_eos_token": false,
|
|
|
4 |
"added_tokens_decoder": {
|
5 |
"0": {
|
6 |
"content": "<unk>",
|
|
|
1 |
{
|
2 |
"add_bos_token": true,
|
3 |
"add_eos_token": false,
|
4 |
+
"add_prefix_space": null,
|
5 |
"added_tokens_decoder": {
|
6 |
"0": {
|
7 |
"content": "<unk>",
|