Skip to content

Cohere template seems no input for setting system input #3965

Closed
@svjack

Description

Reminder

  • I have read the README and searched the existing issues.

Reproduction

_register_template(
    name="cohere",
    format_user=StringFormatter(
        slots=[
            (
                "<|START_OF_TURN_TOKEN|><|USER_TOKEN|>{{content}}<|END_OF_TURN_TOKEN|>"
                "<|START_OF_TURN_TOKEN|><|CHATBOT_TOKEN|>"
            )
        ]
    ),
    format_system=EmptyFormatter(slots=[{"bos_token"}]),
    force_system=True,
)

now cohere seems can not set system prompt

Expected behavior

No response

System Info

input_ids:
[5, 255000, 255006, 207870, 4712, 12013, 1918, 43829, 43829, 12766, 34695, 20047, 220184, 166311, 12049, 78897, 97674, 223495, 3779, 1918, 47750, 211200, 6721, 4411, 33176, 255001, 255000, 255007, 4081, 67526, 72677, 30880, 5029, 9065, 30449, 78897, 64251, 88372, 5497, 44346, 1918, 133297, 12777, 11150, 25003, 2534, 222785, 29290, 16143, 104705, 7883, 44346, 1967, 215765, 210367, 2034, 9761, 39250, 1918, 40495, 23289, 8212, 252881, 1967, 255001, 255000, 255006, 28917, 40495, 3879, 215375, 5782, 13167, 53822, 3779, 211200, 15882, 33176, 255001, 255000, 255007, 12081, 27895, 30121, 131019, 50466, 9559, 197552, 6640, 1918, 13441, 5246, 9850, 39657, 25432, 166311, 12049, 78897, 1967, 255001, 255000, 255006, 12766, 23972, 247329, 2927, 8212, 12394, 1918, 61245, 9850, 21298, 43386, 33176, 255001, 255000, 255007, 12081, 13336, 9850, 104471, 119311, 54263, 116310, 5385, 1918, 8212, 4410, 9902, 30121, 1967, 29848, 101554, 4970, 10683, 5671, 12766, 160742, 43386, 33282, 2734, 129, 43377, 1967, 255001, 255000, 255006, 12766, 40495, 3957, 14924, 38508, 72576, 1918, 23972, 6710, 18114, 104471, 4981, 166311, 12049, 78897, 1918, 12081, 6721, 32032, 54365, 6151, 13441, 5435, 72248, 3771, 148016, 18180, 169919, 156510, 1967, 255001, 255000, 255007, 11307, 1918, 12616, 5119, 10423, 6977, 72389, 2514, 12766, 5123, 2648, 5580, 3222, 193448, 1918, 12766, 122203, 12081, 145939, 35646, 218879, 1967, 255001]
inputs:
<BOS_TOKEN><|START_OF_TURN_TOKEN|><|USER_TOKEN|>艾尔海森,刚刚那个人因为神明罐装知识变得疯狂了,这是怎么回事?<|END_OF_TURN_TOKEN|><|START_OF_TURN_TOKEN|><|CHATBOT_TOKEN|>他可能是接触到了与世界树知识相似的神明力量,但不像传闻中那样直接获得智慧或力量。那个奇怪的语句,我们需要研究一下。<|END_OF_TURN_TOKEN|><|START_OF_TURN_TOKEN|><|USER_TOKEN|>如果我们不小心也变这样了怎么办?<|END_OF_TURN_TOKEN|><|START_OF_TURN_TOKEN|><|CHATBOT_TOKEN|>我已经决定暂时离开奥摩斯港,可能要先处理这个罐装知识。<|END_OF_TURN_TOKEN|><|START_OF_TURN_TOKEN|><|USER_TOKEN|>那你接下来是研究它,还是先完成报告?<|END_OF_TURN_TOKEN|><|START_OF_TURN_TOKEN|><|CHATBOT_TOKEN|>我想先搞清楚它的危险性,研究后再决定。毕竟教令院那边的报告不能耽误。<|END_OF_TURN_TOKEN|><|START_OF_TURN_TOKEN|><|USER_TOKEN|>那我们分头行动吧,你这边搞定罐装知识,我回须弥城可能能找到小吉祥草王的办法。<|END_OF_TURN_TOKEN|><|START_OF_TURN_TOKEN|><|CHATBOT_TOKEN|>好,记得花神诞日那天在原地会合,那时候我会有新的进展。<|END_OF_TURN_TOKEN|>
label_ids:
[-100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 4081, 67526, 72677, 30880, 5029, 9065, 30449, 78897, 64251, 88372, 5497, 44346, 1918, 133297, 12777, 11150, 25003, 2534, 222785, 29290, 16143, 104705, 7883, 44346, 1967, 215765, 210367, 2034, 9761, 39250, 1918, 40495, 23289, 8212, 252881, 1967, 255001, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 12081, 27895, 30121, 131019, 50466, 9559, 197552, 6640, 1918, 13441, 5246, 9850, 39657, 25432, 166311, 12049, 78897, 1967, 255001, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 12081, 13336, 9850, 104471, 119311, 54263, 116310, 5385, 1918, 8212, 4410, 9902, 30121, 1967, 29848, 101554, 4970, 10683, 5671, 12766, 160742, 43386, 33282, 2734, 129, 43377, 1967, 255001, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 11307, 1918, 12616, 5119, 10423, 6977, 72389, 2514, 12766, 5123, 2648, 5580, 3222, 193448, 1918, 12766, 122203, 12081, 145939, 35646, 218879, 1967, 255001]
labels:
他可能是接触到了与世界树知识相似的神明力量,但不像传闻中那样直接获得智慧或力量。那个奇怪的语句,我们需要研究一下。<|END_OF_TURN_TOKEN|>我已经决定暂时离开奥摩斯港,可能要先处理这个罐装知识。<|END_OF_TURN_TOKEN|>我想先搞清楚它的危险性,研究后再决定。毕竟教令院那边的报告不能耽误。<|END_OF_TURN_TOKEN|>好,记得花神诞日那天在原地会合,那时候我会有新的进展。<|END_OF_TURN_TOKEN|>

It is true that system is not included in sharegpt style training.

Others

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    solvedThis problem has been already solved

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions