yaswanthgali commited on
Commit
4790c68
·
verified ·
1 Parent(s): 99fdc0b

Upload 9 files

Browse files

Modified some config vals

chat_template.json CHANGED
@@ -1,3 +1,3 @@
1
  {
2
- "chat_template": "{%set seps=['\n\n','<\uff5cend\u2581of\u2581sentence\uff5c>']%}{%set i=0%}{%for message in messages%}{%if message['role']=='user'%}<|User|>: {%elif message['role']=='assistant'%}<|Assistant|>:{%if not (loop.last and not add_generation_prompt and message['content'][0]['type']=='text' and message['content'][0]['text']=='')%} {%endif%}{%else%}{{message['role'].capitalize()}}: {%endif%}{%for content in message['content']%}{%if content['type']=='image'%}{%if not loop.first%}{{'\n'}}{%endif%}<image_placeholder>{%if not loop.last%}{{'\n'}}{%endif%}{%elif content['type']=='text'%}{%set text=content['text']%}{%if loop.first%}{%set text=text.lstrip()%}{%endif%}{%if loop.last%}{%set text=text.rstrip()%}{%endif%}{%if not loop.first and message['content'][loop.index0-1]['type']=='text'%}{{' '+text}}{%else%}{{text}}{%endif%}{%endif%}{%endfor%}{%if not loop.last or add_generation_prompt%}{%if message['role']=='user'%}{{seps[0]}}{%else%}{{seps[1]}}{%endif%}{%endif%}{%endfor%}{%if add_generation_prompt%}<|Assistant|>:{%endif%}"
3
  }
 
1
  {
2
+ "chat_template": "{%set seps=['\n\n','<\uff5cend\u2581of\u2581sentence\uff5c>']%}{%set i=0%}{%for message in messages%}{%if message['role']|lower=='user'%}<|User|>: {%elif message['role']|lower=='assistant'%}<|Assistant|>:{%if not (loop.last and not add_generation_prompt and message['content'][0]['type']=='text' and message['content'][0]['text']=='')%} {%endif%}{%else%}{{message['role'].capitalize()}}: {%endif%}{%for content in message['content']%}{%if content['type']=='image'%}{%if not loop.first%}{{'\n'}}{%endif%}<image_placeholder>{%if not loop.last%}{{'\n'}}{%endif%}{%elif content['type']=='text'%}{%set text=content['text']%}{%if loop.first%}{%set text=text.lstrip()%}{%endif%}{%if loop.last%}{%set text=text.rstrip()%}{%endif%}{%if not loop.first and message['content'][loop.index0-1]['type']=='text'%}{{' '+text}}{%else%}{{text}}{%endif%}{%endif%}{%endfor%}{%if not loop.last or add_generation_prompt%}{%if message['role']|lower=='user'%}{{seps[0]}}{%else%}{{seps[1]}}{%endif%}{%endif%}{%endfor%}{%if add_generation_prompt%}<|Assistant|>:{%endif%}"
3
  }
config.json CHANGED
@@ -2,6 +2,7 @@
2
  "architectures": [
3
  "JanusForConditionalGeneration"
4
  ],
 
5
  "model_type": "janus",
6
  "text_config": {
7
  "bos_token_id": 100000,
@@ -23,7 +24,7 @@
23
  "model_type": "siglip_vision_model"
24
  },
25
  "vq_config": {
26
- "_attn_implementation_autoset": true,
27
  "model_type": "janus_vqgan",
28
  "num_patches": 24
29
  }
 
2
  "architectures": [
3
  "JanusForConditionalGeneration"
4
  ],
5
+ "image_token_index": 100581,
6
  "model_type": "janus",
7
  "text_config": {
8
  "bos_token_id": 100000,
 
24
  "model_type": "siglip_vision_model"
25
  },
26
  "vq_config": {
27
+ "depth": 2,
28
  "model_type": "janus_vqgan",
29
  "num_patches": 24
30
  }
generation_config.json CHANGED
@@ -1,8 +1,8 @@
1
  {
2
- "_from_model_config": true,
3
- "bos_token_id": 100000,
4
- "eos_token_id": 100001,
5
- "guidance_scale": 5,
6
- "pad_token_id": 100002,
7
- "transformers_version": "4.50.0.dev0"
8
- }
 
1
  {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 100000,
4
+ "eos_token_id": 100001,
5
+ "guidance_scale": 5,
6
+ "pad_token_id": 100002,
7
+ "transformers_version": "4.50.0.dev0"
8
+ }
processor_config.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "processor_class": "JanusProcessor",
3
+ "use_default_system_prompt": true
4
+ }
tokenizer_config.json CHANGED
@@ -4745,5 +4745,5 @@
4745
  "processor_class": "JanusProcessor",
4746
  "tokenizer_class": "LlamaTokenizerFast",
4747
  "unk_token": null,
4748
- "use_default_system_prompt": false
4749
  }
 
4745
  "processor_class": "JanusProcessor",
4746
  "tokenizer_class": "LlamaTokenizerFast",
4747
  "unk_token": null,
4748
+ "use_default_system_prompt": true
4749
  }