Instructions to use ctrlprompt/OjaLM-v0.1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use ctrlprompt/OjaLM-v0.1 with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf ctrlprompt/OjaLM-v0.1 # Run inference directly in the terminal: llama cli -hf ctrlprompt/OjaLM-v0.1
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf ctrlprompt/OjaLM-v0.1 # Run inference directly in the terminal: llama cli -hf ctrlprompt/OjaLM-v0.1
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf ctrlprompt/OjaLM-v0.1 # Run inference directly in the terminal: ./llama-cli -hf ctrlprompt/OjaLM-v0.1
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf ctrlprompt/OjaLM-v0.1 # Run inference directly in the terminal: ./build/bin/llama-cli -hf ctrlprompt/OjaLM-v0.1
Use Docker
docker model run hf.co/ctrlprompt/OjaLM-v0.1
- LM Studio
- Jan
- vLLM
How to use ctrlprompt/OjaLM-v0.1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ctrlprompt/OjaLM-v0.1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ctrlprompt/OjaLM-v0.1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/ctrlprompt/OjaLM-v0.1
- Ollama
How to use ctrlprompt/OjaLM-v0.1 with Ollama:
ollama run hf.co/ctrlprompt/OjaLM-v0.1
- Unsloth Studio
How to use ctrlprompt/OjaLM-v0.1 with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for ctrlprompt/OjaLM-v0.1 to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for ctrlprompt/OjaLM-v0.1 to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for ctrlprompt/OjaLM-v0.1 to start chatting
- Docker Model Runner
How to use ctrlprompt/OjaLM-v0.1 with Docker Model Runner:
docker model run hf.co/ctrlprompt/OjaLM-v0.1
- Lemonade
How to use ctrlprompt/OjaLM-v0.1 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull ctrlprompt/OjaLM-v0.1
Run and chat with the model
lemonade run user.OjaLM-v0.1-{{QUANT_TAG}}List all available models
lemonade list
- Atomic Chat
- π OjaLM-v0.1 β African Commerce Language Model
π OjaLM-v0.1 β African Commerce Language Model
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.
π System Architecture
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
Data & Execution Flow:
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
π Model Specifications
| 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 |
π Key Capabilities
π 1. Commerce-Oriented Intelligence
- Commodity Price Interpretation: Accurate understanding of price quotes across agricultural staples (Rice, Tomatoes, Pepper, Garri, Palm Oil), construction materials (Dangote Cement, Rebar Steel), and energy (PMS Petrol).
- Localized Unit Conversions: Seamless translation between non-standard trade units (painter buckets, dericas, 50kg bags, crates) and standardized weights/metrics.
- Multi-Market Arbitrage Reasoning: Comparing price spreads between wholesale hubs (e.g., Mile 12 vs. Balogun Market in Lagos; Bodija vs. Dugbe in Ibadan).
π 2. Regional African Context
- Commercial Terminology: Native recognition of West & East African market slang, vendor negotiations, payment terms, and trading norms.
- Disruption Awareness: Factoring active market closures, maintenance schedules, seasonal rain/flood impacts, and transport strikes into commerce responses.
π‘οΈ 3. Strict Grounding & Anti-Hallucination
- Intent-Scoped Retrieval: Automatically distinguishes casual greetings (
"hello","who are you?") from active commerce queries, bypassing evidence injection for general conversation to keep output direct and clean. - Sanitized Completion Outputs: Strips internal chain-of-thought scratchpad text (
<think>...</think>) before returning JSON payloads to client applications.
π€ 4. Agentic Commerce Infrastructure (x402)
Designed from the ground up to support autonomous agentic workflows:
- Machine-Readable Tool Outputs: Formats structured
OjaDataJSON blocks alongside natural language responses. - Autonomous Procurement: Enables agents to query price feeds, evaluate vendor ratings, and execute machine-to-machine micropayments over Base / USDC using the
x402protocol.
ποΈ Deployment & Inference Cascade
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]
π§ͺ Evaluation: OjaBench
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 |
π» Usage Example
Running OjaLM via Node.js (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);
β οΈ Limitations & Responsible AI Guidelines
- Parametric Memory vs. Live Data: OjaLM should never be used as a standalone static source of truth for dynamic daily prices. Always pair OjaLM with OjaGraph or an active price feed.
- Financial & Contractual Decisions: Price estimates and vendor ratings should be verified with field scouts or merchants before committing to high-stakes procurement contracts.
- Geographic Coverage: Current v0.1 evaluation focuses heavily on Nigeria, Kenya, Ghana, and South Africa. Coverage for additional regional markets is actively expanding.
π License
Distributed under the MIT License.
π Citation & Acknowledgments
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}
}
Acknowledgments
OjaLM builds upon the open-weights ecosystem, acknowledging the contributions of:
- Qwen Team (
Qwen/Qwen3.5-4.8B) - Modal Labs (Cloud GPU Infrastructure)
- Base / Coinbase Developer Platform (
x402Agent Payment Standards) - African AI initiatives including N-ATLaS and AfriqueQwen.
Developed by Ctrl+Prompt Β· Flagship Application: MamaPrice
- Downloads last month
- 17
We're not able to determine the quantization variants.
docker model run hf.co/ctrlprompt/OjaLM-v0.1