SakThai Context 1.5B β€” LoRA Adapter

LoRA adapter weights for fine-tuning Qwen2.5-1.5B-Instruct on the SakThai combined dataset. Designed for tool-calling, multi-turn context recall, and structured instruction following in agentic workflows.

Model Details

  • Developed by: Nanthasit (Beer)
  • Base Model: Qwen/Qwen2.5-1.5B-Instruct
  • Fine-tuning Method: LoRA via PEFT 0.19.1
  • Rank: 16 | Alpha: 32 | Dropout: 0.1
  • Target Modules: q_proj, k_proj, v_proj, o_proj
  • Task Type: Causal Language Modeling
  • Training Steps: 220 | Epochs: 4
  • Training Data: 974 examples (25 tool schemas)
  • License: Apache 2.0

Usage

Load the Adapter

from peft import PeftModel
from transformers import AutoModelForCausalLM

base = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-1.5B-Instruct")
model = PeftModel.from_pretrained(base, "Nanthasit/sakthai-context-1.5b-tools")

Merge (for Deployment)

merged = model.merge_and_unload()
merged.save_pretrained("./merged-model")

Pre-merged weights are available at Nanthasit/sakthai-context-1.5b-merged.

Training Hyperparameters

Parameter Value
LoRA rank (r) 16
LoRA alpha 32
LoRA dropout 0.1
Target modules q_proj, k_proj, v_proj, o_proj
Learning rate 5e-5 (linear schedule)
Batch size 4
Gradient accumulation 4
Epochs 4
Max steps 220
Precision bf16 (mixed)
Optimizer AdamW

Evaluation

The merged model achieves 45/45 (100%) on the SakThai eval suite:

Category Pass Rate
Basic βœ… 6/6
Multi-turn βœ… 9/9
Instruction βœ… 6/6
Tool calling βœ… 6/6
Reasoning βœ… 6/6
Format βœ… 12/12

Full eval report: Nanthasit/sakthai-context-1.5b-merged/eval/EVAL.md

Training Script

The full training script (train.py) is included in this repo and logs training loss over 220 steps.

Downloads last month
-
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for Nanthasit/sakthai-context-1.5b-tools

Adapter
(1163)
this model

Dataset used to train Nanthasit/sakthai-context-1.5b-tools