{ "cells": [ { "cell_type": "markdown", "metadata": { "id": "vZAvFVIAtFlq" }, "source": [ "# Exploring Chat Templates with SmolLM2\n", "\n", "This notebook demonstrates how to use chat templates with the `SmolLM2` model. Chat templates help structure interactions between users and AI models, ensuring consistent and contextually appropriate responses." ] }, { "cell_type": "code", "execution_count": 2, "metadata": { "colab": { "base_uri": "https://localhost:8080/" }, "id": "K-lZu8JvtwUN", "outputId": "c3871418-15bc-4265-ae8d-6d6036036d0e" }, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "c15d320002504d95bb86e87f50d43b08", "version_major": 2, "version_minor": 0 }, "text/plain": [ "VBox(children=(HTML(value='
Take a dataset from the Hugging Face hub and process it for SFT.
\n", "Difficulty Levels
\n", "π’ Convert the `HuggingFaceTB/smoltalk` dataset into chatml format.
\n", "π Convert the `openai/gsm8k` dataset into chatml format.
\n", "