Instructions to use FormlessAI/4183a8dc-6e1c-413b-a792-c3a58a2d66b6 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use FormlessAI/4183a8dc-6e1c-413b-a792-c3a58a2d66b6 with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("FormlessAI/4183a8dc-6e1c-413b-a792-c3a58a2d66b6", device_map="auto") - Notebooks
- Google Colab
- Kaggle
| {%- set ns = namespace(found=false) -%}{%- for message in messages -%}{%- if message['role'] == 'system' -%}{%- set ns.found = true -%}{%- endif -%}{%- endfor -%}{%- for message in messages %}{%- if message['role'] == 'system' -%}{{- '<|im_start|>system | |
| ' + message['content'].rstrip() + '<|im_end|> | |
| ' -}}{%- else -%}{%- if message['role'] == 'user' -%}{{-'<|im_start|>user | |
| ' + message['content'].rstrip() + '<|im_end|> | |
| '-}}{%- else -%}{{-'<|im_start|>assistant | |
| ' + message['content'] + '<|im_end|> | |
| ' -}}{%- endif -%}{%- endif -%}{%- endfor -%}{%- if add_generation_prompt -%}{{-'<|im_start|>assistant | |
| '-}}{%- endif -%} |