Fine-Tuning DeepSeek R1 on Reasoning Task with Unsloth [Part 1]
Last Updated on February 4, 2025 by Editorial Team
Author(s): Youssef Hosni
Originally published on Towards AI.
Hands-On Fine-Tuning DeepSeek on Medical Reasoning Dataset
This member-only story is on us. Upgrade to access all of Medium.
DeepSeek company recently released DeepSeek-R1, the next step in their work on reasoning models. Itβs an upgrade from their earlier DeepSeek-R1-Lite-Preview and shows theyβre serious about competing with OpenAIβs o1.
In this two-part hands-on tutorial, we will fine-tune the DeepSeek-R1-Distill-Llama-8B model on the Medical Chain-of-Thought Dataset from Hugging Face using Unsloth.
In the first part, we will be introduced to the DeepSeek R1 model and set the working environment, then download the model and the tokenizer and finally test the model with zero shot inference and observe the result without fine-tuning.
Introduction to DeepSeek R1 Model [Part 1]Setting Up Working Environment [Part 1]Loading the Model & Tokenizer with Unsloth.ai [Part 1]Test the Model with Zero Shot Inference [Part 1]Loading and Processing the Dataset [Part 2]Fine β Tune the LLM [Part 2]Model Inference After Fine-Tuning [Part 2]Saving the model locally & Hugging Face Hub [Part 2]Most insights I share in Medium have previously been shared in my weekly newsletter, To Data & Beyond.
If you want to be up-to-date with the frenetic world of AI while also feeling inspired to take action or, at the very least, to be well-prepared for the future ahead… Read the full blog for free on Medium.
Join thousands of data leaders on the AI newsletter. Join over 80,000 subscribers and keep up to date with the latest developments in AI. From research to projects and ideas. If you are building an AI startup, an AI-related product, or a service, we invite you to consider becoming aΒ sponsor.
Published via Towards AI