Spaces:
Sleeping
Sleeping
File size: 1,187 Bytes
e679d69 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
INTERNLM2_META = [
dict(
role='system',
begin=dict(
with_name='<|im_start|>system name={name}\n',
without_name='<|im_start|>system\n',
name={
'interpreter': '<|interpreter|>',
'plugin': '<|plugin|>',
}),
end='<|im_end|>\n',
),
dict(
role='user',
begin=dict(
with_name='<|im_start|>user name={name}\n',
without_name='<|im_start|>user\n',
),
end='<|im_end|>\n'),
dict(
role='assistant',
begin=dict(
with_name='<|im_start|>assistant name={name}\n',
without_name='<|im_start|>assistant\n',
name={
'interpreter': '<|interpreter|>',
'plugin': '<|plugin|>',
}),
end='<|im_end|>\n'),
dict(
role='environment',
begin=dict(
with_name='<|im_start|>environment name={name}\n',
without_name='<|im_start|>environment\n',
name={
'interpreter': '<|interpreter|>',
'plugin': '<|plugin|>',
}),
end='<|im_end|>\n'),
]
|