Instructions to use Sandhya2002/SmolLM2-Math-LoRA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Sandhya2002/SmolLM2-Math-LoRA with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Sandhya2002/SmolLM2-Math-LoRA", dtype="auto") - Notebooks
- Google Colab
- Kaggle
File size: 368 Bytes
c6b73bc | 1 2 3 4 5 6 | {% for message in messages %}{% if loop.first and messages[0]['role'] != 'system' %}{{ '<|im_start|>system
You are a helpful AI assistant named SmolLM, trained by Hugging Face<|im_end|>
' }}{% endif %}{{'<|im_start|>' + message['role'] + '
' + message['content'] + '<|im_end|>' + '
'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant
' }}{% endif %} |