Logo Lanfrica
  • Accueil
  • Atlas
  • Analyses
  • Documentation
  • Sign in

© 2026 Lanfrica. Tous droits réservés. Tous les droits d'auteur des ressources affichées sur le site Web Lanfrica appartiennent aux détenteurs de droits d'auteur d'origine, sauf indication contraire explicite.

balusi130/llm-benchmark-east-africa

Domaine:

natural language processing

Type de record:

project
Créateur:
bal
Hôte:
Benchmarking suite for evaluating LLM reasoning and linguistic accuracy in East African language contexts # LLM Benchmark — East African Dialects Most LLM benchmarks are built entirely on Western English datasets, which makes it hard to know how well these models actually perform in East African contexts — whether that is formal Swahili, code-switched English/Swahili conversations, Sheng, or fintech reasoning grounded in things like M-Pesa transactions. This project is my attempt to fill that gap. I built a benchmarking suite that tests frontier models across 500+ carefully written prompts covering grammar, logical reasoning, cultural context, and multi-step fintech problem solving. The results were interesting — and in some areas, pretty damning for the models. --- ## What it tests | Category | Prompts | Description | |----------|---------|-------------| | Swahili Grammar & Syntax | 120 | Formal grammar, tense agreement, vocabulary | | Code-Switched Dialogue | 150 | Mixed English/Swahili as used in real conversations | | Fintech Reasoning (M-Pesa) | 130 | Multi-step transaction problems, fee calculations, error handling | | CoT Logic & Math | 100 | Chain-of-thought reasoning grounded in local contexts | | **Total** | **500+** | | --- ## Models tested - GPT-4o - Claude 3.5 Sonnet - Gemini Pro --- ## Stack - Python 3.10+ - OpenAI API / Anthropic API - Pandas + NumPy for scoring - Matplotlib for visualisation - JSON prompt datasets --- ## Setup ```bash git clone github.com cd llm-benchmark-east-africa pip install -r requirements.txt ``` Set your API keys: ```bash export OPENAI_API_KEY=your_key_here export ANTHROPIC_API_KEY=your_key_here ``` --- ## Running the benchmarks Run everything: ```bash python benchmark.py --model gpt-4o --category all ``` Run a specific category: ```bash python benchmark.py --model claude-3-5 --category swahili_grammar ``` Generate an HTML report: ```bash python report.py --output results/report.html ``` --- ## Key findings - GPT-4o scored highest on formal Swahili grammar …

Visit

github.com

Languages

Swahili