Logo Lanfrica
  • Home
  • Atlas
  • Insights
  • Docs
  • Sign in

© 2026 Lanfrica. All rights reserved. All copyrights of the resources shown on the Lanfrica website belong to the original copyright holders, unless explicitly stated otherwise.

danigeremew/amharic-afaan-oromo-llm-cpt

Domain:

natural language processing

Record type:

software
Creator:
dan
Host:
Continuous pretraining (CPT) pipeline for Amharic and Afaan Oromo languages. # Pretraining (CPT) This repo includes a **continuous pretraining (CPT)** pipeline and local inference/export helpers. ## What you edit Edit `train_config.yaml`: - `model_id`: Hugging Face *trainable* base checkpoint (example: `Qwen/Qwen2-0.5B`) - Dataset (Hugging Face): - `dataset_source: "hf"` - `hf_dataset_id`, `hf_dataset_subset`, `hf_split` - `text_column` (set this if the dataset uses a different field than `"text"`) - Dataset (local files): - `dataset_source: "local"` - `local_dataset_path` (file or directory) - `local_file_type` (`jsonl|csv|parquet|txt`) - `text_column` ## Install (one time) From repo root: ```powershell python -m pip install -r requirements-pretraining.txt ``` Notes: - Your current Python already has `torch`, `transformers`, `accelerate`, and `bitsandbytes` installed, but `datasets`/`peft` are required for CPT. - If you prefer a venv, create/activate one first, then run the same installs. ## Run CPT Smoke test (quick): ```powershell python run_cpt.py --max_steps_override 20 ``` Full run: ```powershell python run_cpt.py ``` Custom config path: ```powershell python run_cpt.py --config path\to\train_config.yaml ``` Outputs are written under `outputs/ /` and should include LoRA adapter files (not a fully merged model). ## Run inference (adapter) One prompt: ```powershell python infer.py --adapter outputs/cpt_run_001 --base-model Qwen/Qwen2-0.5B --prompt "አማርኛ ስለ ቴክኖሎጂ አጭር ጽሑፍ ጻፍ።" ``` Interactive chat: ```powershell python infer.py --adapter outputs/cpt_run_001 --base-model Qwen/Qwen2-0.5B --interactive ``` ## Export GGUF (optional) This requires a local `llama.cpp` checkout that has been built. Export merged FP16 GGUF: ```powershell python export_gguf.py --adapter outputs/cpt_run_001 --base-model Qwen/Qwen2-0.5B --llama-cpp-dir C:\path\to\llama.cpp ``` Export and quantize (example `Q4_K_M`): ```powershell python export_gguf.py --adapter outputs/cpt_run_001 --base-model Qwen/Qwen2-0.5B --llama-cpp-dir C:\path\to\llama …

Visit

github.com

Tasks

language modeling

Languages

AmharicOromoOromo, Borana-Arsi-Guji

Similar

millionsime/MSRAMOR-Afaan-Oromo-and-Amharicmichaelmelese/Bilingual-Amharic-Afaan-Oromo-Hate-Speechdese-123/amharic-text-to-afaan-oromo-translateb1n1yam/amharic-llama-7b-cptBilingual Hate Speech Detection on Social Media : Amharic and Afaan Oromob1n1yam/gemma-2-27b-amharic-cpt

millionsime/MSRAMOR-Afaan-Oromo-and-Amharic

MSRAMOR is afaan Oromo and Amharic is a 30 sec dataset of multilingual Afaan Oromo and Amharic speak

michaelmelese/Bilingual-Amharic-Afaan-Oromo-Hate-Speech

Amharic Afaan Oromo Bilingual Hate Speech Detection # This work shows a Bilingual Amharic - Afaan O

dese-123/amharic-text-to-afaan-oromo-translate

amharic text to afaan oromo translate using html, css and js

b1n1yam/amharic-llama-7b-cpt

Bilingual Hate Speech Detection on Social Media : Amharic and Afaan Oromo

Abstract Due to significant increases in internet penetration and the development of smart

b1n1yam/gemma-2-27b-amharic-cpt