transformers safetensors gguf qwen2 text-generation Cantonese Qwen2 chat conversational zh en dataset:jed351/cantonese-wikipedia dataset:raptorkwok/cantonese-traditional-chinese-parallel-corpus license:apache-2.0 model-index autotrain_compatible text-generation-inference endpoints_compatible region:us
{"architectures": ["Qwen2ForCausalLM"], "model_type": "qwen2", "tokenizer_config": {"bos_token": null, "chat_template": "{% set system_message = 'You are a helpful assistant.' %}{% if messages[0]['role'] == 'system' %}{% set system_message = messages[0]['content'] %}{% endif %}{% if system_message is defined %}{{ '<|im_start|>system\n' + system_message + '<|im_end|>\n' }}{% endif %}{% for message in messages %}{% set content = message['content'] %}{% if message['role'] == 'user' %}{{ '<|im_start|>user\n' + content + '<|im_end|>\n<|im_start|>assistant\n' }}{% elif message['role'] == 'assistant' %}{{ content + '<|im_end|>' + '\n' }}{% endif %}{% endfor %}", "eos_token": "<|im_end|>", "pad_token": "<|endoftext|>", "unk_token": null}}