Skip to content

nacef112/LelapaAI-InkubaLM-Compression

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 

Repository files navigation

🧠 InkubaLM Compression for Swahili & Hausa

πŸ₯‰ Bronze Medal Solution – Zindi Lelapa AI Buzuzu-Mavi Challenge


πŸš€ Overview

Open-source language models often underperform on African languages and demand high computational resourcesβ€”barriers to real-world use in the African context. To make language AI truly inclusive, we need models that are smaller, smarter, and optimized for resource-constrained environments.

The Lelapa AI Buzuzu-Mavi Challenge tasked participants with compressing Lelapa AI’s InkubaLMβ€”an open-source small language model (SLM)β€”while maintaining or improving performance for two key African languages: Swahili and Hausa.

This repository presents our Bronze Medal-winning solution. πŸ₯‰


🎯 Objectives

βœ… Compress InkubaLM to reduce size and inference cost
βœ… Retain or improve model accuracy on core NLP tasks
βœ… Ensure usability on low-resource devices and CPUs
βœ… Focus on Swahili and Hausa performance


πŸ§ͺ Tasks & Evaluation

The model was evaluated across three NLP tasks:

  • πŸ—£οΈ Sentiment Analysis
  • 🧠 Natural Language Inference (AfriXNLI – true/false reasoning)
  • 🌍 Machine Translation (English β†’ Swahili & Hausa)

Performance could be improved by either:

  • Increasing task accuracy,
  • Reducing model size,
  • Or both.

πŸ› οΈ Techniques Applied

πŸ”§ Quantization – Reduced precision (8-bit & 4-bit) for faster, leaner models
βœ‚οΈ Pruning – Removed redundant parameters
🌐 Language-Specific Fine-tuning – Custom fine-tuning on Swahili and Hausa datasets


🌍 Why It Matters

This work moves us closer to a future where African languages have equal representation in the AI ecosystem. Smaller, smarter models enable:

  • βœ… Faster NLP on standard CPUs
  • βœ… Offline language tools
  • βœ… Scalable deployment in education, agriculture, health, and customer service

πŸ—οΈ Repository Structure

About

Submission for Zindi's Lelapa AI Buzuzu-Mavi Challenge - Bronze Medalist. Focused model compression for InkubaLM targeting Swahili and Hausa.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors