System prompts CAN be enabled with this model
#25
by
lunahr
- opened
Why are they not?
This modified template:
{{ bos_token }}{% if messages[0]['role'] == 'system' %}{{ messages[0]['content'] + '\n' }}{% endif %}{% for message in messages %}{% if (message['role'] == 'user') != ((loop.index0 + 1) % 2 == 0) %}{{ raise_exception('Conversation roles must alternate user/assistant/user/assistant/...') }}{% endif %}{% if (message['role'] == 'assistant') %}{% set role = 'model' %}{% else %}{% set role = message['role'] %}{% endif %}{% if message['role'] != 'system' %}{{ '<start_of_turn>' + role + '\n' + message['content'] | trim + '<end_of_turn>\n' }}{% endif %}{% endfor %}{% if add_generation_prompt %}{{'<start_of_turn>model\n'}}{% endif %}
will enable the system prompt functionality.
Models with this feature have now been implemented!
https://huggingface.co/collections/piotr25691/systemgemma2-66b50f61b88ff1e38ef0a136
Hi @piotr25691 , Hope this issue is resolved. Please close the issue and feel free to re-open if any further issue arise. Thank you
It was a feature request, but okay.
lunahr
changed discussion status to
closed