Instructions to use gmguarino/LFM2-700M-climateguard with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use gmguarino/LFM2-700M-climateguard with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("gmguarino/LFM2-700M-climateguard", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download chat_template.jinja from gmguarino/LFM2-700M-climateguard: direct link, hf CLI and curl.
- Browser
- Download file 209 Bytes
-
https://huggingface.co/gmguarino/LFM2-700M-climateguard/resolve/main/chat_template.jinja
- Command line
-
hf download hf://gmguarino/LFM2-700M-climateguard/chat_template.jinja
-
curl -L -o chat_template.jinja https://huggingface.co/gmguarino/LFM2-700M-climateguard/resolve/main/chat_template.jinja
209 Bytes
| {{bos_token}}{% for message in messages %}{{'<|im_start|>' + message['role'] + ' | |
| ' + message['content'] + '<|im_end|>' + ' | |
| '}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant | |
| ' }}{% endif %} |