Views
No views yet
Built by Omar Farouk KOUGBADA — GDE Flutter, Senior Software and AI Engineer, CEO KOF CORPORATION.
| Property | Value |
|---|---|
| Base model | mistralai/Mistral-7B-Instruct-v0.3 |
| Fine-tuning method | QLoRA (4-bit NF4 + LoRA adapters) |
| LoRA rank / alpha | r=16 / α=32 |
| Training epochs | 3 |
| Effective batch size | 16 (2 × 8 grad accumulation steps) |
| Learning rate | 2e-4 (cosine schedule, 3 % warmup) |
| Max sequence length | 2048 tokens |
| Training hardware | Kaggle T4 × 2 (via Unsloth) |
| Training framework | Unsloth + HuggingFace TRL SFTTrainer |
| Precision | FP16 |
| Language | French (fr) |
| License | MIT |
togolm/togolm-corpus-v1)
consists of instruction–response pairs generated from the TogoLM corpus — a curated collection of
documents scraped from Togolese official sources:| Source | Domain |
|---|---|
jo.gouv.tg | Journal Officiel — laws and decrees |
presidence.gouv.tg | Presidency — presidential acts and speeches |
assemblee-nationale.tg | National Assembly — parliamentary texts |
inseed.tg | National Statistics Institute — economic and demographic data |
service-public.gouv.tg | Public services directory |
finances.gouv.tg / education.gouv.tg / agriculture.gouv.tg | Ministries |
icilome.com | Local news and analysis |
1from unsloth import FastLanguageModel
2
3model, tokenizer = FastLanguageModel.from_pretrained(
4 model_name="togolm/togolm-7b-instruct-v1",
5 max_seq_length=2048,
6 load_in_4bit=True,
7)
8FastLanguageModel.for_inference(model)
9
10prompt = """Below is an instruction about Togo. Write a response that answers it accurately.
11
12### Instruction:
13Quel est le taux d'imposition sur les sociétés au Togo ?
14
15### Response:
16"""
17
18inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
19outputs = model.generate(**inputs, max_new_tokens=256, do_sample=False)
20print(tokenizer.decode(outputs[0], skip_special_tokens=True))1from transformers import AutoTokenizer, AutoModelForCausalLM
2from peft import PeftModel
3
4base = AutoModelForCausalLM.from_pretrained(
5 "mistralai/Mistral-7B-Instruct-v0.3",
6 load_in_4bit=True,
7 device_map="auto",
8)
9model = PeftModel.from_pretrained(base, "togolm/togolm-7b-instruct-v1")
10tokenizer = AutoTokenizer.from_pretrained("togolm/togolm-7b-instruct-v1")Below is an instruction about Togo. Write a response that answers it accurately.
### Instruction:
{your question about Togo}
### Response:1@misc{togolm2026,
2 author = {Kougbada, Omar Farouk},
3 title = {TogoLM: Open-Source AI Infrastructure for Togo},
4 year = {2026},
5 howpublished = {\url{https://huggingface.co/togolm/togolm-7b-instruct-v1}},
6}