Instructions to use mechramc/kalavai-cross-lingual-yoruba-specialist-seed2026 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mechramc/kalavai-cross-lingual-yoruba-specialist-seed2026 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="mechramc/kalavai-cross-lingual-yoruba-specialist-seed2026")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("mechramc/kalavai-cross-lingual-yoruba-specialist-seed2026") model = AutoModelForCausalLM.from_pretrained("mechramc/kalavai-cross-lingual-yoruba-specialist-seed2026", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use mechramc/kalavai-cross-lingual-yoruba-specialist-seed2026 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "mechramc/kalavai-cross-lingual-yoruba-specialist-seed2026" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "mechramc/kalavai-cross-lingual-yoruba-specialist-seed2026", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/mechramc/kalavai-cross-lingual-yoruba-specialist-seed2026
- SGLang
How to use mechramc/kalavai-cross-lingual-yoruba-specialist-seed2026 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "mechramc/kalavai-cross-lingual-yoruba-specialist-seed2026" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "mechramc/kalavai-cross-lingual-yoruba-specialist-seed2026", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "mechramc/kalavai-cross-lingual-yoruba-specialist-seed2026" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "mechramc/kalavai-cross-lingual-yoruba-specialist-seed2026", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use mechramc/kalavai-cross-lingual-yoruba-specialist-seed2026 with Docker Model Runner:
docker model run hf.co/mechramc/kalavai-cross-lingual-yoruba-specialist-seed2026
KALAVAI β Yoruba Specialist (pythia-410m, seed 2026)
Fine-tuned EleutherAI/pythia-410m on Yoruba data as part of the KALAVAI decentralized cooperative training protocol.
Code
The official implementation for KALAVAI can be found here: mechramc/Kalavai.
Paper results
Yoruba PPL 41.9β7.7 (5.4Γ), Welsh 102.7β22.1 (4.6Γ), Tamil 4.2β3.0. MoE fusion of 4 specialists: +21.76% over best specialist (seeds 137+2026).
How to use
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("mechramc/kalavai-cross-lingual-yoruba-specialist-seed2026")
tokenizer = AutoTokenizer.from_pretrained("EleutherAI/pythia-410m")
This model is one specialist in a KALAVAI cooperative. To reproduce the MoE fusion results from the paper, load multiple domain specialists and combine them with a trained MoE router (see the paper and GitHub for details).
Citation
@article{kumaresan2026kalavai,
title = {{KALAVAI}: Predicting When Independent Specialist Fusion Works
--- A Quantitative Model for Post-Hoc Cooperative {LLM} Training},
author = {Kumaresan, Ramchand},
journal = {arXiv preprint arXiv:2603.22755},
year = {2026},
url = {https://arxiv.org/abs/2603.22755}
}
- Downloads last month
- 12
Model tree for mechramc/kalavai-cross-lingual-yoruba-specialist-seed2026
Base model
EleutherAI/pythia-410m