Instructions to use Welly-code/stack-4.2-prime with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Welly-code/stack-4.2-prime with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Welly-code/stack-4.2-prime", dtype="auto") - Notebooks
- Google Colab
- Kaggle
| {% for message in messages %}{% if loop.first and messages[0]['role'] != 'system' %}{{ '<|im_start|>system | |
| You are a helpful assistant.<|im_end|> | |
| ' }}{% endif %}{{'<|im_start|>' + message['role'] + ' | |
| ' + message['content'] + '<|im_end|>' + ' | |
| '}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant | |
| ' }}{% endif %} |