Nigerian History Language Model
Model Overview
This model is a domain-adapted language model focused on Nigerian history. It was developed to improve a pretrained language model's ability to understand and generate responses about Nigerian historical events, people, kingdoms, cultures, and political developments.
The model was developed in two main stages:
- Continued Pretraining (CPT): The base model underwent additional pretraining using a corpus focused on Nigerian history to improve its familiarity with the subject.
- Supervised Fine-Tuning (SFT): The continued-pretrained model was further fine-tuned using LoRA (Low-Rank Adaptation) on the Nigerian History Question Answering Dataset.
The goal is to develop a specialised model for Nigerian-history-related question answering and text generation.
Model Details
| Property | Description |
|---|---|
| Model type | Causal Language Model |
| Base model | [Insert base model] |
| Domain | Nigerian History |
| Training approach | Continued Pretraining + LoRA Fine-Tuning |
| Fine-tuning method | LoRA |
| Primary language | English |
| Primary task | Question Answering |
| Developer | Cyber-Maphian |
Training Methodology
Stage 1: Continued Pretraining
The initial pretrained model was further trained on a Nigerian-history-focused text corpus.
This stage was intended to improve the model's familiarity with Nigerian historical knowledge, terminology, historical figures, events, and contexts.
Stage 2: Supervised Fine-Tuning
Following continued pretraining, the model was fine-tuned using LoRA.
The fine-tuning dataset was:
Cyber-Maphian/Nigerian-History-Question-Answering-Dataset
The dataset contains 5,175 question-answer examples before any subsequent cleaning, organised into training, validation, and test splits.
| Split | Examples |
|---|---|
| Training | 4,657 |
| Validation | 259 |
| Test | 259 |
| Total | 5,175 |
The dataset contains three fields:
instruction: The historical question or instruction.response: The expected answer.category: The subject category of the example.
LoRA was used to adapt the model to the question-answering format without updating all the parameters of the base model.
Intended Use
The model is intended for:
- Answering questions about Nigerian history.
- Exploring historical events and developments in Nigeria.
- Learning about Nigerian historical figures and institutions.
- Educational and research experimentation.
- Building Nigerian-history-focused AI applications.
- Experimenting with domain-specific language model development.
Limitations
- The model may generate historically inaccurate or incomplete information.
- Its knowledge and response quality depend on the coverage and quality of its training data.
- Some historical events and accounts may be contested or interpreted differently.
- The model should not be treated as an authoritative historical reference.
- Its primary language is English, and performance in other languages has not been established.
Users should independently verify important historical claims using reliable historical sources.
Dataset and Acknowledgements
The supervised fine-tuning stage used the Nigerian History Question Answering Dataset, developed by Cyber-Maphian.
Dataset: https://huggingface.co/datasets/Cyber-Maphian/Nigerian-History-Question-Answering-Dataset
This project is an independent experimentation effort focused on domain adaptation and the development of specialised language models for Nigerian history.
Developer
Cyber-Maphian
Citation
If you use this model in your work, please reference it as:
Cyber-Maphian. (2026). Nigerian History Language Model. Hugging Face.