We are Tushe – The Foundry Research Team, and we are building a bare-metal inference engine for African language AI on constrained hardware.
This repository is part of our open-source model-baked-on-metal-inference-engine package — a lightweight inference runtime we are releasing as:
Format
Use case
🐍 Python library (pip install tushe-bare-metal)
Server, Raspberry Pi, edge Linux
📦 npm package (npm install tushe-bare-metal)
Node.js apps, Electron, React Native
⚙️ Compiled C executable
Bare-metal embedded, IoT, MCUs
Every developer can drop this into their app and run offline African language inference right away — no internet, no cloud, no GPU required.
Note: 💡 This is the F16 (full precision) version. It is best used for benchmarking, research, and producing further quantisations. For deployment on phones and edge devices, use the lighter Q4_K_M version (4.5 GB, runs on 8 GB RAM).💡 This is the F16 (full precision) version. It is best used for benchmarking, research, and producing further quantisations. For deployment on phones and edge devices, use the lighter Q4_K_M version (4.5 GB, runs on 8 GB RAM).
🎯 Why We Built This
Africa has some of the most resource-constrained connectivity environments in the world. Millions of people — rural doctors, farmers, teachers, students, traders, and tourists — need intelligent language tools but have no reliable internet access.
We took N-ATLaS, the Llama 3 8B model fine-tuned on Nigerian and African languages by Awarri Technologies in collaboration with NCAIR, and quantised it with immense optimizations to run on low-resource hardware including:
📱 Android & iOS phones
🌾 Edge IoT devices in agricultural fields
🏥 Offline clinical/medical support tools in rural clinics
🏫 Classrooms with no internet access
🧭 Portable translator devices for traders and tourists
🌍 Target Use Cases
Domain
Description
🏥 Rural & Edge Medical
Doctors and health workers in remote clinics — symptom triage, patient communication, drug info in local languages
🌾 Farmers Support
Modern and rural farmers — crop advice, weather interpretation, market prices, pest identification in Hausa, Igbo, Yoruba
🏫 Education
Teachers and students in areas without internet — explanations, tutoring, literacy support in local languages
🛒 Traders & Markets
Cross-language communication for traders and informal markets across Africa
✈️ Tourists
Real-time offline translation across African languages
🔩 About the Base Model
This GGUF is derived from NCAIR1/N-ATLaS — An open-source multilingual LLM, built on Llama 3 8B, fine-tuned by Awarri Technologies in collaboration with the National Centre for Artificial Intelligence & Robotics (NCAIR) and the Federal Ministry of Communications, Innovation and Digital Economy of Nigeria.
N-ATLaS was trained on approximately ~392 million multilingual tokens spanning English, Hausa, Igbo, and Yoruba.
We did not change the weights. We quantised the original model and build a highly optimized efficient inference engine to enable edge deployment.
💾 This File
File
Quant
Size
Min RAM
AMINI-F16.gguf
F16
~16 GB
25-32 GB
F16 is our recommended quant for edge deployment — best balance of accuracy, speed, and memory. Runs on a phone with 8GB RAM or a Raspberry Pi 5.
🚀 Inference Examples
1. Python — llama-cpp-python
pip install llama-cpp-python
python
1from llama_cpp import Llama
23llm = Llama.from_pretrained(4 repo_id ="AlaminI/AMINI-ASSISTANT-GGUF-F16",5 filename ="*.gguf",6 n_ctx =2048,7 n_gpu_layers =0,# 0 = CPU only (edge/offline), -1 = full GPU8 verbose =False,9)
English — rural medical support:
python
1output = llm(2"A patient presents with fever, headache, and joint pain for 3 days. What are the possible diagnoses and first-line management?",3 max_tokens =256,4 temperature =0.7,5 echo =False,6)7print(output["choices"][0]["text"])
Hausa — farmer support:
python
1output = llm(2"Gonar hatsi na da kwari da yawa. Menene zan iya yi don kare amfanin gona na?",3 max_tokens =256,4 temperature =0.7,5 echo =False,6)7print(output["choices"][0]["text"])
Yoruba — student support:
python
1output = llm(2"Ṣe alaye ohun ti photosynthesis jẹ ni ede Yoruba fun ọmọ ile-iwe.",3 max_tokens =256,4 temperature =0.7,5 echo =False,6)7print(output["choices"][0]["text"])
Igbo — trader/market support:
python
1output = llm(2"Gwa m ọnụ ahịa nke ọka ugbu a n'ahịa Onitsha.",3 max_tokens =256,4 temperature =0.7,5 echo =False,6)7print(output["choices"][0]["text"])
2. Chat format — multilingual instruction
python
1from llama_cpp import Llama
23llm = Llama.from_pretrained(4 repo_id ="AlaminI/AMINI-ASSISTANT-GGUF-F16",5 filename ="*.gguf",6 n_ctx =2048,7 n_gpu_layers =0,8 verbose =False,9)1011response = llm.create_chat_completion(12 messages =[13{14"role":"system",15"content":(16"You are an offline African language assistant running on a local device. "17"You support English, Hausa, Igbo, and Yoruba. "18"Respond in the same language the user writes in. "19"Be concise — this device has limited resources."20)21},22{23"role":"user",24"content":"Translate 'The child has a high fever and needs immediate care' into Hausa and Yoruba."25}26],27 max_tokens =256,28 temperature =0.7,29)30print(response["choices"][0]["message"]["content"])
3. Streaming (for responsive UIs on edge devices)
python
1stream = llm.create_chat_completion(2 messages =[3{"role":"user","content":"Explain crop rotation to a farmer in Hausa."}4],5 max_tokens =256,6 temperature =0.7,7 stream =True,8)910for chunk in stream:11 delta = chunk["choices"][0]["delta"].get("content","")12print(delta, end="", flush=True)
4. Node.js — node-llama-cpp
npm install node-llama-cpp
javascript
1import{ getLlama,LlamaChatSession}from"node-llama-cpp";2importpathfrom"path";34const llama =awaitgetLlama();5const model =await llama.loadModel({modelPath: path.join("models","AMINI-F16.gguf")});6const context =await model.createContext({contextSize:2048});7const session =newLlamaChatSession({contextSequence: context.getSequence()});89const response =await session.prompt(10"A farmer asks: my tomatoes are wilting despite regular watering. What could be wrong?",11{maxTokens:256}12);13console.log(response);
5. llama.cpp CLI (bare-metal / embedded)
bash
1# Download2huggingface-cli download AlaminI/AMINI-ASSISTANT-GGUF-F16 \3 AMINI-F16.gguf --local-dir ./models/
45# Run on CPU only (edge device)6./llama-cli -m ./models/AMINI-F16.gguf \7 --ctx-size 2048\8 --threads 4\9 --temp 0.7\10 -i -r "User:"\11 -p "You are an offline assistant for African languages. Respond in the user's language.\nUser:"
This GGUF quantisation is an independent contribution by Tushe – The Foundry Research Team, We enncorage developers to refer to the N-ATLaS licence.
But our Inference engine ca be used for any mean, commercial and beyond any user Number.
We will rellease models traind by us to give developers fullly open-source models and inference at edge