Carousel Studio

Repurpose X Threads into LinkedIn & Instagram Carousels

Canvas & Ratio

Choose your destination platform format


Layout Template

Choose a content structure for your slides


Preset Themes


Typography & Sizing

Title Font Size36px
Body Font Size18px
Header & Footer Size12px

Brand Kit Customization

AGENCY

Configure brand assets for headers & footers

MULTI-PROFILES (AGENCY)
AGENCY
SAVE PRESETS (AGENCY)

Outro Slide CTA

Customize your closing call-to-action slide

#1
#2
#3

Background Pattern

Source Content

Build Your Carousel

Drag and drop any post card below onto a slide, or use the quick buttons to insert content/images instantly!

Drag Post #1
Avi Chawla
@_avichawla

Let's fine-tune DeepSeek-R1 (distilled Llama) 100% locally:

Drag Post #2
Avi Chawla
@_avichawla

Before we begin, here's what we'll be doing. We'll fine-tune our private and locally running DeepSeek-R1 (distilled Llama variant). To do this, we'll use: - @UnslothAI for efficient fine-tuning. - @ollama to run it locally. Let's begin!

VIDEO
Apply Image
Drag Post #3
Avi Chawla
@_avichawla

1) Load the model We start by loading the Distilled Llama-8B model and the tokenizer of DeepSeek-R1 using Unsloth:

Apply Image
Drag Post #4
Avi Chawla
@_avichawla

2) Define LoRA config We must use efficient techniques like LoRA to avoid fine-tuning the entire model weights. In this code, we use Unsloth's PEFT by specifying: - The model - LoRA low-rank (r) - Modules for fine-tuning - and a few more parameters.

Apply Image
Drag Post #5
Avi Chawla
@_avichawla

3) Prepare dataset Next, we use the Alpaca dataset to prepare a conversation dataset. The conversation_extension parameter defines the number of user messages in a single conversation.

Apply Image
Drag Post #6
Avi Chawla
@_avichawla

4) Define Trainer Here, we create a Trainer object by specifying the training config like learning rate, model, tokenizer, and more. Check this out👇

Apply Image
Drag Post #7
Avi Chawla
@_avichawla

5) Train With that done, we initiate training. We notice a decreasing loss, which means the model is fine-tuning well. Check this code and output👇

Apply Image
Drag Post #8
Avi Chawla
@_avichawla

6) Export to Ollama Finally, we export the model to Ollama as follows. Done!

Apply Image
Drag Post #9
Avi Chawla
@_avichawla

We have fine-tuned DeepSeek (distilled Llama). Now we can interact with it like any other model running on Ollama using: - The CLI - Ollama's Python package - Ollama's LlamaIndex integration, etc.

Apply Image
Drag Post #10
Avi Chawla
@_avichawla

That's a wrap! If you enjoyed this tutorial: Find me → @_avichawla Every day, I share tutorials and insights on DS, ML, LLMs, and RAGs.