Spaces:
Sleeping
Sleeping
Download lagent/llms/meta_template.py from pipi333/Lingxi_Weather_Sprite: direct link, hf CLI and curl.
- Browser
- Download file 1.19 kB
-
https://huggingface.co/spaces/pipi333/Lingxi_Weather_Sprite/resolve/main/lagent/llms/meta_template.py
- Command line
-
hf download hf://spaces/pipi333/Lingxi_Weather_Sprite/lagent/llms/meta_template.py
-
curl -L -o meta_template.py https://huggingface.co/spaces/pipi333/Lingxi_Weather_Sprite/resolve/main/lagent/llms/meta_template.py
1.19 kB
| 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'), | |
| ] | |