Text Generation
PEFT
Safetensors
English
llama
roleplay
npc
character-ai
smollm2
lora
trl
sft
conversational
Instructions to use thealper2/SmolLM2-360M-NPC-Roleplay with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use thealper2/SmolLM2-360M-NPC-Roleplay with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
| {% for message in messages %}{% if loop.first and messages[0]["role"] != "system" %}{{ "<|im_start|>system\nYou are a helpful AI assistant named SmolLM, trained by Hugging Face<|im_end|>\n" }}{% endif %}{% if message["role"] == "assistant" %}{{ "<|im_start|>assistant\n" }}{% generation %}{{ message["content"] + "<|im_end|>" }}{% endgeneration %}{{ "\n" }}{% else %}{{ "<|im_start|>" + message["role"] + "\n" + message["content"] + "<|im_end|>" + "\n" }}{% endif %}{% endfor %}{% if add_generation_prompt %}{{ "<|im_start|>assistant\n" }}{% endif %} |