Downloads · 30 days
21
12% of all-time downloads
AfricaComputeFund/Monarch-1
Monarch-1 is a text generation model from AfricaComputeFund. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as other.
Monarch-1 is a generative AI model fine-tuned from Mistral-7B-Instruct-v0.3, specifically optimized for African linguistic, cultural, and economic contexts. Developed as a foundational project within the Africa Comput…
Downloads · 30 days
21
12% of all-time downloads
All-time downloads
180
Public
Parameters
7.2B
14.7 GB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors14.7 GB · 100%
From the Hugging Face model README
Monarch-1 is a generative AI model fine-tuned from Mistral-7B-Instruct-v0.3, specifically optimized for African linguistic, cultural, and economic contexts. Developed as a foundational project within the Africa Compute Fund (ACF), Monarch-1 demonstrates the power of localized AI infrastructure, regional dataset curation, and specialized fine-tuning methodologies.
Monarch-1 was created to bridge the gap between global AI models and Africa’s unique needs. Generic large-scale models often lack awareness of the diverse languages, historical contexts, and market-specific data necessary for effective AI applications across the continent. Monarch-1 aims to:
This model is part of a broader initiative to establish high-performance GPU-powered compute infrastructure, train indigenous AI systems, and build an ecosystem where African developers can train and deploy AI solutions optimized for their own markets.
Developers and researchers can use Monarch-1 to generate human-like responses aligned with African contexts. Below is an example of how to run inference using the model:
from transformers import AutoModelForCausalLM, AutoTokenizer
model_path = "PATH_TO_MONARCH-1_REPO"
tokenizer = AutoTokenizer.from_pretrained(model_path)
model = AutoModelForCausalLM.from_pretrained(
model_path,
device_map="auto",
torch_dtype='auto'
).eval()
# Example prompt
messages = [
{"role": "user", "content": "What impact can Monarch-1 have in Africa?"}
]
input_ids = tokenizer.apply_chat_template(conversation=messages, tokenize=True, add_generation_prompt=True, return_tensors='pt')
output_ids = model.generate(input_ids.to('cuda'))
response = tokenizer.decode(output_ids[0][input_ids.shape[1]:], skip_special_tokens=True)
print(response)
Monarch-1 is designed for ethical and responsible AI use. Developers and users must ensure that the model is used in a manner that promotes positive social impact, accuracy, and fairness. The following considerations are essential:
Monarch-1 represents the first step in a broader AI initiative focused on localized, high-performance AI models. Planned developments include:
Monarch-1 is provided as is with no guarantees of performance or accuracy in critical applications. Users are responsible for evaluating the model's suitability for their specific use cases.