Instructions to use srmty/smollm2-python-coder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use srmty/smollm2-python-coder with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("srmty/smollm2-python-coder", dtype="auto") - Notebooks
- Google Colab
- Kaggle
File size: 368 Bytes
4b0b4b5 | 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 %} |