Image-Text-to-Text
PEFT
Safetensors
monarch-2
lora
multilingual
african-languages
world-development-indicators
text-generation
conversational
Run this model with HF Jobs
Run AfricaComputeFund/Monarch-2 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/AfricaComputeFund/Monarch-2. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/AfricaComputeFund/Monarch-2 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/AfricaComputeFund/Monarch-2. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/AfricaComputeFund/Monarch-2. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use AfricaComputeFund/Monarch-2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use AfricaComputeFund/Monarch-2 with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3.5-9B") model = PeftModel.from_pretrained(base_model, "AfricaComputeFund/Monarch-2") - Notebooks
- Google Colab
- Kaggle
Download preprocessor_config.json from AfricaComputeFund/Monarch-2: direct link, hf CLI and curl.
- Browser
- Download file 390 Bytes
-
https://huggingface.co/AfricaComputeFund/Monarch-2/resolve/main/preprocessor_config.json
- Command line
-
hf download hf://AfricaComputeFund/Monarch-2/preprocessor_config.json
-
curl -L -o preprocessor_config.json https://huggingface.co/AfricaComputeFund/Monarch-2/resolve/main/preprocessor_config.json
390 Bytes
| { | |
| "size": { | |
| "longest_edge": 16777216, | |
| "shortest_edge": 65536 | |
| }, | |
| "patch_size": 16, | |
| "temporal_patch_size": 2, | |
| "merge_size": 2, | |
| "image_mean": [ | |
| 0.5, | |
| 0.5, | |
| 0.5 | |
| ], | |
| "image_std": [ | |
| 0.5, | |
| 0.5, | |
| 0.5 | |
| ], | |
| "processor_class": "Qwen3VLProcessor", | |
| "image_processor_type": "Qwen2VLImageProcessorFast" | |
| } |