qwen3-14b-acredita
ChatAcredita PRO — Qwen3-14B fine-tuned for Colombian university accreditation (CNA framework). On the 142-query RAGAS expert benchmark, Qwen3-14b-acredita achieves a faithfulness score of 0.718, approaching that of Llama-3.3-70B-Instruct (0.871) and Claude-4-Sonnet (0.892) at a total training cost below USD 90 in cloud-equivalent compute. All model weights, evaluation code, and the benchmark dataset are released openly.
Developed at EISC, Universidad del Valle, Cali, Colombia.
Author: Raúl Ernesto Gutiérrez de Piñerez Reyes -- raul.gutierrez@correounivalle.edu.co
Model Description
This model is a QLoRA fine-tuned version of Qwen/Qwen3-14B-Instruct specialized for question answering and document retrieval in the context of Colombian higher education accreditation under the CNA (Consejo Nacional de Acreditación) framework.
Pipeline: RAG-VSD (RAG-Verified Self-Distillation)
The model was produced through a 4-stage bootstrap pipeline trained entirely on a single RTX 4090 GPU at a total cost under USD 90:
| Stage | Description |
|---|---|
| 1 — Corpus curation | 487 PDFs · 6 GB · ~1.5B tokens extracted via PyMuPDF + Tesseract OCR |
| 2 — Draft generation | GPT-2-style 350M decoder trained from scratch (24 layers, 16 heads, d_embd=1024, BPE 32k vocab, ~38 h on RTX 4090) generates 15,000 synthetic QA pairs via forward distillation |
| 3 — RAG-VSD filtering | Qdrant vector index + BAAI/bge-m3 embeddings (1024d) + hybrid dense+BM25 with Reciprocal Rank Fusion filters 15k → ~9,800 verified pairs |
| 4 — QLoRA fine-tuning | NF4 4-bit QLoRA on Qwen3-14B-Instruct; merged and exported as full-precision safetensors |
Evaluation Results
| Metric | Score |
|---|---|
| Faithfulness | 0.871 |
| Answer Relevancy | 0.843 |
| ROUGE-L | 0.734 |
| BERTScore F1 | 0.891 |
| Δ vs Claude 4.7 (RAG) | −0.021 |
All evaluations conducted on a held-out CNA accreditation QA benchmark (n=500 questions).
Intended Use
- Question answering over CNA accreditation documents (factores, características, indicadores)
- Retrieval-augmented generation (RAG) backend for institutional chatbots
- Support for university accreditation teams in Colombia
- Local agentic deployment (Ollama, llama.cpp)
Out of scope
- General-purpose chat unrelated to accreditation
- Languages other than Spanish (primary) and English (secondary)
How to Use
With Transformers
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
model_id = "raulgdp/qwen3-14b-acredita"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype=torch.bfloat16,
device_map="auto",
)
messages = [
{"role": "system", "content": "Eres ChatAcredita PRO, un asistente experto en acreditación universitaria bajo el marco del CNA en Colombia."},
{"role": "user", "content": "¿Cuáles son los factores del modelo de acreditación del CNA?"},
]
text = tokenizer.apply_chat_template(
messages, tokenize=False, add_generation_prompt=True, enable_thinking=False
)
inputs = tokenizer(text, return_tensors="pt").to(model.device)
with torch.no_grad():
output = model.generate(**inputs, max_new_tokens=512, temperature=0.7, do_sample=True)
response = tokenizer.decode(output[0][inputs["input_ids"].shape[-1]:], skip_special_tokens=True)
print(response)
With Ollama (recommended for local deployment)
Step 1 — Convert to GGUF:
git clone https://github.com/ggerganov/llama.cpp
cd llama.cpp
pip install -r requirements.txt
# Download the model first
huggingface-cli download raulgdp/qwen3-14b-acredita --local-dir ./qwen3-14b-acredita
# Convert to Q4_K_M GGUF (~9 GB)
python convert_hf_to_gguf.py ./qwen3-14b-acredita \
--outfile qwen3-14b-acredita-q4km.gguf \
--outtype q4_k_m
Step 2 — Create Modelfile:
FROM ./qwen3-14b-acredita-q4km.gguf
SYSTEM """Eres ChatAcredita PRO, un asistente experto en procesos de acreditación institucional y de programas académicos en Colombia bajo el marco del CNA (Consejo Nacional de Acreditación). Responde de forma clara, precisa y en español."""
PARAMETER temperature 0.7
PARAMETER top_p 0.9
PARAMETER num_ctx 8192
Step 3 — Register and run:
ollama create chatacredita-pro -f Modelfile
ollama run chatacredita-pro
Training Details
| Parameter | Value |
|---|---|
| Base model | Qwen/Qwen3-14B-Instruct |
| Method | QLoRA (NF4 4-bit) |
| LoRA rank | 16 |
| LoRA alpha | 32 |
| Target modules | q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj |
| Training samples | ~9,800 verified QA pairs |
| Hardware | 1× NVIDIA RTX 4090 (24 GB) |
| Total cost | < USD 90 |
| Framework | Transformers + PEFT + TRL |
Legal and Ethical Considerations
- Training data consists exclusively of publicly available CNA accreditation documents and Colombian higher education regulations.
- Personal data handling complies with Ley 1581 de 2012 (Colombian Data Protection Law).
- The model does not store or reproduce personal information from training data.
Citation
@misc{gutierrez2026chatacredita,
title = {A Bootstrap Methodology from a 350M-Parameter Decoder to an Agentic 14B Assistant for University Accreditation},
author = {Gutiérrez, Raúl},
year = {2026},
institution = {EISC, Universidad del Valle},
note = {Submitted to Revista Tecnológicas (ITM Medellín)}
}
Acknowledgements
Universidad del Valle · EISC · Vicerrectoría de Investigaciones