UPJ-Qwen3-14B-QLoRA
Model Overview
UPJ-Qwen3-14B-QLoRA is a domain-adapted large language model developed for answering frequently asked questions about Universitas Pembangunan Jaya (UPJ), Indonesia.
The model is based on Qwen3-14B and fine-tuned using Quantized Low-Rank Adaptation (QLoRA), implemented through Unsloth and Hugging Face PEFT.
The fine-tuning process aims to improve the model's ability to generate relevant, accurate, and contextually appropriate responses to questions related to UPJ, particularly in Indonesian.
This model was developed as part of an undergraduate thesis in Informatics at Universitas Pembangunan Jaya.
This model is an academic proof of concept and is not an official chatbot or information service operated by Universitas Pembangunan Jaya.
Model Details
| Attribute | Description |
|---|---|
| Model name | UPJ-Qwen3-14B-QLoRA |
| Developer | Gathan Ghifari Rachwiyono |
| Institution | Universitas Pembangunan Jaya |
| Model architecture | Qwen3-14B, decoder-only Transformer |
| Base model | unsloth/Qwen3-14B-bnb-4bit |
| Fine-tuning method | Supervised Fine-Tuning (SFT) |
| Adaptation technique | QLoRA |
| Framework | PyTorch, Transformers, PEFT, TRL, Unsloth |
| Primary language | Indonesian |
| Task | Domain-specific question answering |
| Domain | University information |
| Model format | PEFT LoRA adapter |
| License | Apache-2.0 |
Model Sources
- Original model: https://huggingface.co/Qwen/Qwen3-14B
- Unsloth: https://github.com/unslothai/unsloth
- PEFT: https://github.com/huggingface/peft
- Qwen3 Technical Report: https://arxiv.org/abs/2505.09388
Intended Uses
Direct Use
The model is intended to answer Indonesian-language questions concerning public information about Universitas Pembangunan Jaya.
Supported topics may include university profiles, faculties, academic programs, campus facilities, student activities, admissions, and other general institutional information represented in the training dataset.
Downstream Use
The model can be integrated into a website-based chatbot application to demonstrate the implementation of a domain-specific large language model.
Potential applications include academic research, chatbot prototyping, domain-specific question answering, and comparative evaluation of language models before and after fine-tuning.
Out-of-Scope Use
This model is not intended for:
- Providing official or legally binding university information.
- Accessing private student records or internal university systems.
- Processing confidential or sensitive personal information.
- Answering questions unrelated to Universitas Pembangunan Jaya.
- Replacing official university administrative services.
- Making academic, financial, or administrative decisions on behalf of users.
Training Details
Training Dataset
The model was fine-tuned using a custom question-answering dataset containing Indonesian-language questions and reference answers related to Universitas Pembangunan Jaya.
The dataset was structured with the following fields:
| Field | Description |
|---|---|
| category | Topic label used for dataset organization |
| question | User question regarding UPJ |
| answer | Reference answer corresponding to the question |
Question variations were incorporated to increase linguistic diversity while maintaining the intended meaning of the original questions.
The category field serves as an organizational label and is not directly used as an additional prediction target or classification objective.
Dataset Splitting
The dataset was manually separated into three subsets:
| Dataset | Proportion | Purpose |
|---|---|---|
| Training | 70% | Parameter adaptation during fine-tuning |
| Validation | 20% | Monitoring validation loss and selecting checkpoints |
| Testing | 10% | Independent evaluation of the final model |
The split was designed to reduce information leakage between training and evaluation.
Question variations derived from the same source question or reference answer should remain within the same dataset partition to avoid artificially inflating evaluation performance.
Fine-Tuning Method
The model was adapted using Supervised Fine-Tuning with QLoRA.
QLoRA enables parameter-efficient fine-tuning by loading the pretrained model in 4-bit precision while updating trainable low-rank adaptation parameters.
The approach reduces the GPU memory required for fine-tuning compared with updating all pretrained model parameters.
Unsloth was used to optimize the training process, while Hugging Face TRL and PEFT supported supervised fine-tuning and LoRA adapter management.
Training Configuration
| Parameter | Configuration |
|---|---|
| Base model | Qwen3-14B |
| Quantization | 4-bit |
| Adaptation | QLoRA |
| LoRA rank (r) | 16 |
| LoRA alpha | 32 |
| LoRA dropout | 0.05 |
| Target modules | q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj |
| Maximum sequence length | 512 tokens |
| Optimizer | adamw_8bit |
| Per-device training batch size | 1 |
| Gradient accumulation steps | 8 |
| Initial learning rate | 4e-4 |
| Weight decay | 0.01 |
| Learning rate scheduler | Linear |
| Training objective | Supervised response generation |
| Evaluation strategy | Epoch-based |
| Checkpoint selection | Lowest validation loss |
The configuration describes the experimental fine-tuning setup. Final training metadata should be verified against the selected checkpoint.
Evaluation
Evaluation Objective
The evaluation aims to assess whether QLoRA fine-tuning improves the ability of Qwen3-14B to answer domain-specific questions about Universitas Pembangunan Jaya.
The study compares two configurations:
- Base Model: Qwen3-14B without UPJ-specific fine-tuning.
- Fine-Tuned Model: Qwen3-14B with the trained UPJ QLoRA adapter.
Both configurations are evaluated using the same test questions and comparable inference settings to support a consistent comparison.
Evaluation Dataset
Evaluation uses a held-out test subset containing questions and reference answers that were excluded from the training and validation subsets.
The evaluation focuses on Indonesian-language university information question answering.
Evaluation Criteria
The evaluation may assess the following response characteristics:
| Criterion | Description |
|---|---|
| Relevance | Whether the response addresses the question |
| Accuracy | Whether the response is factually consistent with verified information |
| Completeness | Whether the response sufficiently covers the requested information |
| Clarity | Whether the response is understandable and appropriately formulated |
| Consistency | Whether semantically equivalent questions receive compatible responses |
| Out-of-scope handling | Whether the model appropriately handles unsupported requests |
Evaluation results must be interpreted according to the actual scoring protocol used in the research.
Evaluation Results
The model was evaluated as part of an academic experiment comparing responses before and after fine-tuning.
Quantitative results are not included in this model card until the final evaluation scores have been verified.
Any observed improvement should be interpreted within the scope of the test dataset rather than as proof of general reliability across all university-related questions.
Bias, Risks, and Limitations
Although the model has been adapted to answer UPJ-related questions, several limitations remain.
Hallucination: The model may generate inaccurate, fabricated, or unsupported information, even when its responses appear confident.
Limited domain coverage: Its effectiveness depends on the topics represented in the training dataset. Questions concerning unfamiliar or insufficiently represented topics may receive incomplete or incorrect answers.
Information freshness: The model does not automatically retrieve updated information from official university sources. Admission requirements, fees, schedules, policies, and institutional details may change.
Generalization limitations: Good performance on held-out questions does not guarantee accurate responses to substantially different questions or previously unseen university facts.
Evaluation limitations: Findings obtained from a limited academic evaluation should not be generalized to production environments without additional testing.
Institutional status: The model is independently developed for academic research and does not represent an official statement from Universitas Pembangunan Jaya.
Recommendations
Users should independently verify important information through official university communication channels.
For production-oriented applications, the model should be supplemented with updated and verified institutional information, appropriate response validation, and additional testing.
The model should not be trusted as the sole source for university policies, admissions decisions, tuition fees, or other time-sensitive information.
How to Use
This repository contains a PEFT LoRA adapter. The adapter must be loaded together with a compatible Qwen3-14B base model.
The general inference procedure involves loading the 4-bit base model, attaching the trained LoRA adapter, applying the appropriate chat template, and generating a response.
The exact inference implementation should follow the versions of Unsloth, Transformers, and PEFT supported by the deployment environment.
Technical Specifications
Model Architecture
Qwen3-14B is a decoder-only Transformer language model.
QLoRA fine-tuning preserves the pretrained base model parameters while introducing trainable low-rank adapter parameters into selected attention and feed-forward projection modules.
During inference, the pretrained base model and the fine-tuned adapter operate together to generate responses.
Training Infrastructure
The experimental workflow was developed using GPU-accelerated notebook environments and the Unsloth fine-tuning framework.
Software
- Python
- PyTorch
- Hugging Face Transformers
- Hugging Face PEFT
- Hugging Face TRL
- Unsloth
- bitsandbytes
PEFT version: 0.21.2
Environmental Impact
A verified estimate of energy consumption and carbon emissions is not currently available.
Research Context
This model was developed to investigate the application of parameter-efficient fine-tuning for an Indonesian-language, domain-specific university information chatbot.
The research focuses on adapting a general-purpose large language model to a narrower institutional question-answering domain and evaluating the resulting responses against the original model.
The implementation is intended as an academic proof of concept rather than a production-ready university information system.
Model Card Author
Gathan Ghifari Rachwiyono
Informatics Study Program
Universitas Pembangunan Jaya, Indonesia
Acknowledgements
This project uses the Qwen3 model family and open-source machine learning tools provided by the Qwen, Unsloth, and Hugging Face communities.
The original model architecture and pretrained weights belong to their respective developers. This repository provides the domain-specific adaptation developed for the research project.