Downloads · 30 days
4
7% of all-time downloads
fikri0o0/qwen2.5-3b-dora-indo-transaction
qwen2.5-3b-dora-indo-transaction is a text generation model from fikri0o0. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as apache-2.0.
DoRA (Weight-Decomposed LoRA) adapter for Qwen/Qwen2.5-3B-Instruct, fine-tuned to extract structured JSON from Indonesian bank-SMS and e-wallet messages.
Downloads · 30 days
4
7% of all-time downloads
All-time downloads
55
Public
Repo size
73.5 MB
Likes
0
Public
Click a slice to open those files.
.safetensors62 MB · 84%
From the Hugging Face model README
DoRA (Weight-Decomposed LoRA) adapter for Qwen/Qwen2.5-3B-Instruct, fine-tuned to extract structured JSON from Indonesian bank-SMS and e-wallet messages.
Parse an Indonesian transaction notification into a fixed JSON schema:
Input: "BCA 06/01 14:30 Transfer Rp1.500.000 ke BUDI SANTOSO Ref 8821 Sisa Rp3.200.000"
Output: {"bank":"BCA","type":"transfer","amount":1500000,
"counterparty":"BUDI SANTOSO","datetime":"06/01 14:30",
"balance":3200000,"ref":"8821"}
Fields: bank, type, amount, counterparty, datetime, balance, ref.
| Metric | Base (zero-shot) | This adapter (DoRA) |
|---|---|---|
| Whole-record exact-match | 24.5% | 97.5% |
| Valid-JSON rate | 100% | 100% |
| Macro field accuracy | 81.7% | 99.6% |
from transformers import AutoTokenizer, AutoModelForCausalLM, BitsAndBytesConfig
from peft import PeftModel
import torch
base = "Qwen/Qwen2.5-3B-Instruct"
adapter = "fikri0o0/qwen2.5-3b-dora-indo-transaction"
bnb = BitsAndBytesConfig(load_in_4bit=True, bnb_4bit_quant_type="nf4",
bnb_4bit_compute_dtype=torch.bfloat16)
model = AutoModelForCausalLM.from_pretrained(base, quantization_config=bnb, device_map="cuda")
model = PeftModel.from_pretrained(model, adapter)
tok = AutoTokenizer.from_pretrained(adapter)
Part of the indo-transaction-extraction portfolio project by Muhammad Fikri Wahidin.