Llama 3.2 1B Instruction Chatbot

Overview

This repository contains a fully merged version of a LoRA fine-tuned Llama 3.2 1B Instruct model.

Unlike the adapter repository, this model can be loaded directly with the Hugging Face Transformers library without requiring PEFT.

The model was created to demonstrate the complete lifecycle of modern large language model fine-tuning, including:

  • Dataset preparation
  • Chat formatting
  • QLoRA training
  • LoRA merging
  • Hugging Face deployment

Base Model

  • meta-llama/Llama-3.2-1B-Instruct

Training Dataset

Approximately 40,000 instruction-response examples formatted into conversational chat format.


Training Configuration

Training Method

  • QLoRA

Merged Into

  • Full standalone Transformers model

Frameworks

  • Transformers
  • TRL
  • PEFT
  • Accelerate
  • BitsAndBytes

Hyperparameters

Parameter Value
Epochs 1
Batch Size 2
Gradient Accumulation 4
Learning Rate 2e-4
Optimizer paged_adamw_8bit
Scheduler Cosine
Precision FP16

Training Results

Metric Value
Training Loss 0.15088
Runtime 6789.63 seconds
Global Steps 5000
Samples / Second 5.89
Steps / Second 0.736

Intended Uses

  • Conversational AI
  • Instruction following
  • Educational projects
  • Fine-tuning demonstrations
  • Research

Limitations

This model has not been benchmarked against established instruction-following datasets such as MT-Bench, AlpacaEval, or MMLU.

It has not undergone additional safety alignment beyond the original base model.

Responses may contain hallucinations or factual inaccuracies.


Loading the Model

from transformers import AutoTokenizer
from transformers import AutoModelForCausalLM

model = AutoModelForCausalLM.from_pretrained(
    "mjpsm/Llama-3.2-1B-Instruction-Chatbot"
)

tokenizer = AutoTokenizer.from_pretrained(
    "mjpsm/Llama-3.2-1B-Instruction-Chatbot"
)

Citation

If you use this model in your work, please cite this repository.

Downloads last month
61
Safetensors
Model size
1B params
Tensor type
F16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support