VietHistoQA-3B-GGUF: Quantized Vietnamese History LLM
This repository provides the 4-bit quantized GGUF (Q4_K_M) weights for VietHistoQA, a specialized language model designed for Vietnamese history question answering (period 905–1975) with hallucination resistance.
Model Summary
- Base Architecture: Qwen2.5-3B-Instruct
- Fine-Tuning Method: QLoRA (4-bit rank-16, alpha-32) with Behavioral Mixing (negative rejection & factual alignment)
- Quantization: GGUF Q4_K_M (1.93 GB)
- Target Runtime: Ollama / llama.cpp on edge environments (<= 8GB RAM)
Ollama Usage
Create a Modelfile:
FROM ./qwen-history-vn-q4km.gguf
TEMPLATE """{{ if .System }}<|im_start|>system
{{ .System }}<|im_end|>
{{ end }}{{ if .Prompt }}<|im_start|>user
{{ .Prompt }}<|im_end|>
{{ end }}<|im_start|>assistant
{{ .Response }}<|im_end|>"""
PARAMETER temperature 0.3
PARAMETER top_p 0.8
PARAMETER stop "<|im_end|>"
PARAMETER stop "<|endoftext|>"