SmolLM3-3B Dolly LoRA

A LoRA fine-tuned adapter for SmolLM3-3B, trained on a 500-row subset of the Databricks Dolly 15k closed QA dataset as part of a structured HuggingFace learning curriculum.

Model Details

Model Description

  • Developed by: ProjectGlue
  • Model type: Causal Language Model with LoRA adapter
  • Language(s): English
  • License: Apache 2.0
  • Finetuned from: HuggingFaceTB/SmolLM3-3B

Uses

Direct Use

Question answering with provided context. Load the base SmolLM3-3B model with this LoRA adapter for improved closed QA responses.

Out-of-Scope Use

Not intended for production use. This is a learning exercise and proof-of-concept fine-tuning run.

How to Get Started with the Model

from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
import torch

base_model = AutoModelForCausalLM.from_pretrained(
    "HuggingFaceTB/SmolLM3-3B",
    torch_dtype=torch.float16,
    device_map="auto"
)
model = PeftModel.from_pretrained(base_model, "ProjectGlue/smollm3-dolly-lora")
tokenizer = AutoTokenizer.from_pretrained("HuggingFaceTB/SmolLM3-3B")

Training Details

Training Data

500-row subset of the Databricks Dolly 15k dataset, filtered to the closed_qa category. Formatted using SmolLM3's chat template with system, user, and assistant roles.

Training Hyperparameters

  • Method: LoRA (Low-Rank Adaptation)
  • LoRA rank: 16
  • LoRA alpha: 32
  • Target modules: q_proj, k_proj, v_proj, o_proj
  • Dropout: 0.05
  • Trainable parameters: 7,667,712 (0.25% of total)
  • Epochs: 1
  • Batch size: 1 (gradient accumulation steps: 8)
  • Learning rate: 2e-4
  • Precision: fp16

Evaluation

Results

  • Initial loss: 1.824
  • Final loss: 1.505
  • Loss decreased consistently over 63 steps indicating successful training.

Environmental Impact

  • Hardware Type: NVIDIA T4 GPU (16GB)
  • Hours used: ~0.1
  • Cloud Provider: Google Colab
  • Compute Region: US

Model Card Authors

ProjectGlue

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for ProjectGlue/smollm3-dolly-lora

Adapter
(70)
this model

Dataset used to train ProjectGlue/smollm3-dolly-lora