Downloads ยท 30 days
29
12% of all-time downloads
ctrlprompt/OjaLM-v0.1
OjaLM-v0.1 is a text generation model from ctrlprompt. Use it when you need the model to write or continue text. It is set up for gguf. The card lists the license as mit.
OjaLM-v0.1 is a specialized, domain-adapted commerce language model and AI foundation engineered for African markets.
Downloads ยท 30 days
29
12% of all-time downloads
All-time downloads
234
Public
Repo size
3.1 GB
Likes
1
Public
Click a slice to open those files.
.gguf3.1 GB ยท 100%
From the Hugging Face model README
OjaLM-v0.1 is a specialized, domain-adapted commerce language model and AI foundation engineered for African markets.
Developing AI for African trade requires moving beyond generic foundation models. Informal and semi-formal open-air trade accounts for over 80% of retail commerce across Sub-Saharan Africa, moving hundreds of billions of dollars annually across hub markets such as Mile 12 (Lagos), Bodija (Ibadan), Dawanau (Kano), Onitsha Main Market (Anambra), and Gikomba (Nairobi).
Generic foundation models frequently hallucinate price data, fail to understand localized non-standard trade units (dericas, painter buckets, 50kg bags, metric tonnes), and lack awareness of regional market closures, transport strikes, or seasonal supply disruptions.
OjaLM addresses this challenge by focusing on a specific, high-impact goal:
Building AI systems that can understand, reason about, and enable autonomous agents to operate within African commerce.
Developed by Ctrl+Prompt, OjaLM serves as the AI foundation layer powering MamaPrice (https://mamaprice.shop) โ the real-time commerce intelligence application and agentic evaluation platform.
OjaLM does not attempt to memorize rapidly fluctuating daily market prices inside static model weights. Instead, it separates language intelligence from live commerce data through OjaGraph v2 โ a multi-modal Retrieval-Augmented Generation (RAG) graph.
OjaLM
AI Foundation Layer
โ
โผ
OjaGraph
Commerce Knowledge Layer
โ
โผ
MamaPrice
Commerce Intelligence App
โ
โโโโโโโโโโดโโโโโโโโโ
โผ โผ
Users / Apps AI Agents
User / Agent Query
โ
โผ
OjaLM (Intent Detection & Query Parsing)
โ
โผ
OjaGraph (Multi-Channel RAG Evidence Retrieval)
โ
โโโ Verified Price Indices & Spreads
โโโ Active Market Disruptions & Events
โโโ Availability & Shortage Reports
โโโ Trend Memory & Historical Movement
โโโ Vendor Reliability Ratings
โ
โผ
OjaLM (Grounded Reasoning & JSON Structuring)
โ
โผ
Clean Conversational Answer / Machine-Readable API Payload
| Parameter | Specification |
|---|---|
| Model Name | OjaLM-v0.1 |
| Model Type | Causal Language Model |
| Base Model Family | Qwen3.5 (Qwen/Qwen3.5-4.8B) |
| Parameters | ~4.8 Billion parameters |
| Quantization Format | GGUF / Q4_K_M |
| Model File Size | ~3.07 GB |
| Embedding Dimension | 2,560 |
| Feed Forward Length | 9,216 |
| Vocabulary Size | 248,320 |
| Tensor Count | 427 |
| GGUF Version | 3 |
| Primary Cloud Runtime | Modal Cloud (Nvidia L4 GPU) / Hugging Face Serverless |
| Primary Local Runtime | llama.cpp / node-llama-cpp |
"hello", "who are you?") from active commerce queries, bypassing evidence injection for general conversation to keep output direct and clean.<think>...</think>) before returning JSON payloads to client applications.x402)Designed from the ground up to support autonomous agentic workflows:
OjaData JSON blocks alongside natural language responses.x402 protocol.To ensure 99.99% operational availability and zero-hang cold-start protection, OjaLM runs within a fault-tolerant 4-Tier Inference Cascade:
POST /chat Request
โ
โโโโบ Attempt 1: Modal Cloud GPU (Nvidia L4, 5s timeout) โโโบ [ojalm-modal]
โ
โโโโบ Attempt 2: Serverless Inference API โโโโโโโโโโโโโโโโบ [ojalm-hf]
โ
โโโโบ Attempt 3: Local CPU GGUF (node-llama-cpp, 4s timeout) โบ [ojalm-local]
โ
โโโโบ Tier 4 Fallback: OpenRouter Router + Grounded Static Snapshot โโโบ [openrouter / static]
OjaLM is benchmarked against OjaBench-v1, a domain-specific evaluation suite created by Ctrl+Prompt to test AI performance across African commercial contexts:
| Benchmark Category | Target Metric | OjaLM-v0.1 Focus |
|---|---|---|
| Product & Unit Reasoning | Unit Conversion Accuracy | 94.2% accuracy on regional trade unit conversions |
| Comparative Market Arbitrage | Wholesale Spread Calculation | Accurate ranking of cheapest vs. nearest market hubs |
| Retrieval Grounding | Hallucination Prevention | 0% price fabrication when OjaGraph evidence is supplied |
| Disruption Contextualization | Event-Aware Guidance | Recommends active alternative markets during closures |
| Structured Output Quality | Valid JSON Payload Rate | 99.1% valid OjaData JSON output compliance |
node-llama-cpp):import { getLlama, LlamaChatSession } from "node-llama-cpp";
import path from "path";
const llama = await getLlama();
const model = await llama.loadModel({
modelPath: path.join(__dirname, "models", "OjaLM-v0.1.gguf")
});
const context = await model.createContext({ contextSize: 512 });
const session = new LlamaChatSession({ contextSequence: context.getSequence() });
const prompt = `GROUNDED OJAGRAPH COMMERCE EVIDENCE:
โข 50kg Bag Rice at Mile 12 Market, Lagos: โฆ82,000 per bag โ Confidence: 95%
USER QUESTION: What is the price of a bag of rice in Mile 12?`;
const response = await session.prompt(prompt, { maxTokens: 200 });
console.log("OjaLM Response:", response);
Distributed under the MIT License.
If you use OjaLM, OjaGraph, or OjaBench in your research or application, please cite:
@misc{ojalm2026,
title = {OjaLM-v0.1: An African Commerce Language Model & Intelligence Foundation},
author = {Ctrl+Prompt},
year = {2026},
publisher = {Hugging Face},
howpublished = {\url{https://huggingface.co/ctrlprompt/OjaLM-v0.1}},
note = {Fine-tuned Qwen3.5 4.8B model for African commerce, markets, and agentic workflows}
}
OjaLM builds upon the open-weights ecosystem, acknowledging the contributions of:
Qwen/Qwen3.5-4.8B)x402 Agent Payment Standards)Developed by Ctrl+Prompt ยท Flagship Application: MamaPrice