Banking Intent Classifier — Llama 3 8B (LoRA)

A LoRA adapter fine-tuned on top of Llama 3 8B Instruct (4-bit) for banking customer intent classification using the BANKING77 dataset.

Model Details

Training Details

Dataset

Sampled from the BANKING77 dataset — 77 fine-grained intent categories for banking customer service queries.

Split Samples
Train 10,016
Test 3,084

Hyperparameters

Parameter Value
LoRA rank (r) 16
LoRA alpha 16
LoRA dropout 0
Target modules q, k, v, o, gate, up, down proj
Learning rate 2e-4
Batch size 2
Gradient accumulation 4
Epochs 1
Optimizer AdamW 8-bit
LR scheduler Linear
Max seq length 256
Quantization 4-bit (load_in_4bit)

Prompt Format

Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.

### Instruction:
Classify the intent of the following banking customer request.

### Input:
{customer_message}

### Response:

Usage

from unsloth import FastLanguageModel

model, tokenizer = FastLanguageModel.from_pretrained(
    model_name="minhthien/banking-intent-unsloth-checkpoint",
    max_seq_length=256,
    dtype=None,
    load_in_4bit=True,
)
FastLanguageModel.for_inference(model)

Or clone the full inference/evaluation code:

git clone https://github.com/nguyenvmthien/banking-intent-unsloth.git
cd banking-intent-unsloth
pip install -r requirements.txt
python scripts/evaluate.py

Evaluation

Evaluation uses log-probability scoring over all 77 candidate intent labels (no text generation needed), which is faster and more deterministic.

Results will be updated after full evaluation run.

Model Accuracy
Base (zero-shot)
Fine-tuned (this model)
Downloads last month
3
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for minhthien/banking-intent-unsloth-checkpoint

Adapter
(156)
this model

Dataset used to train minhthien/banking-intent-unsloth-checkpoint