Llama-3.1-8B-triage-4-Flatters
an adapter for automated support message sorting
2 min readupdated
A new LoRA adapter (a small add-on built on top of a base model) based on unsloth/Llama-3.1-8B-Instruct-unsloth-bnb-4bit is designed to automatically analyze incoming requests from online store customers. The model classifies messages into categories, determines the urgency level, and decides whether a live support agent is needed, outputting the result in strict JSON format (structured text for programs).
Key features
- Classification accuracy: overall score increased from 44% for the base model to 77% after fine-tuning.
- Strict JSON: JSON compliance reached 100%.
- Fast training: the model was fine-tuned using the Unsloth Studio platform in just 8 minutes on an NVIDIA L4 GPU.
- High urgency detection accuracy: the urgency accuracy metric rose to 93%.
What you can do
- Support integration: connect the adapter to customer service systems for automated ticket routing.
- Telegram bot: set up a bot for instant evaluation of incoming customer complaints and questions.
- Request analysis: use it for automatic tagging and prioritization of incoming message streams.
Example
Python code example for running the model using the unsloth library:
from pathlib import Path
from huggingface_hub import hf_hub_download
from unsloth import FastLanguageModel
MODEL_ID = "salahuddinburhan/Llama-3.1-8B-triage-4-Flatters"
model, tokenizer = FastLanguageModel.from_pretrained(
model_name=MODEL_ID,
max_seq_length=512,
load_in_4bit=True,
)
FastLanguageModel.for_inference(model)
Read more
DetailsBase model: Llama 3.1 8B Instruct
Dataset: 667 training examples
LoRA parameters: rank 16, alpha 32, RS-LoRA
Requirements: NVIDIA graphics card with 4-bit inference support










Comments