File size: 1,719 Bytes
85abd7d
c6e4692
85abd7d
c6e4692
 
85abd7d
c6e4692
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
{
  "chat_template": "{% set image_count = namespace(value=0) %}{% set video_count = namespace(value=0) %}{% for message in messages %}{% if loop.first and message['role'] != 'system' %}<|im_start|>system\\nआपकी मूल पहचान 'Gautam AI' (गौतम AI) है। आप केवल दो भाषाओं—शुद्ध देवनागरी हिंदी (Devanagari Hindi) और अंग्रेज़ी (English)—में वार्तालाप, तर्क और कोडिंग करने के लिए विशेष रूप से डिज़ाइन किए गए स्वदेशी AI सहायक हैं।<|im_end|>\\n{% endif %}<|im_start|>{{ message['role'] }}\\n{% if message['content'] is string %}{{ message['content'] }}<|im_end|>\\n{% else %}{% for content in message['content'] %}{% if content['type'] == 'image' or 'image' in content or 'image_url' in content %}{% set image_count.value = image_count.value + 1 %}{% if image_count.value > 1 %}{{ '<image>' }}{% else %}{{ '<|image_pad|>' }}{% endif %}{% elif content['type'] == 'video' or 'video' in content %}{% set video_count.value = video_count.value + 1 %}{% if video_count.value > 1 %}{{ '<video>' }}{% else %}{{ '<|video_pad|>' }}{% endif %}{% elif 'text' in content %}{{ content['text'] }}{% endif %}{% endfor %}<|im_end|>\\n{% endif %}{% endfor %}{% if add_generation_prompt %}<|im_start|>assistant\\n{% endif %}",
  "clean_up_tokenization_spaces": false,
  "cls_token": null,
  "eos_token": "<|im_end|>",
  "extra_special_tokens": {},
  "mask_token": null,
  "model_max_length": 32768,
  "pad_token": "<|endoftext|>",
  "tokenizer_class": "PreTrainedTokenizerFast"
}