Instructions to use credible-ai/olmo2-60M-288domains-dirichlet with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use credible-ai/olmo2-60M-288domains-dirichlet with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="credible-ai/olmo2-60M-288domains-dirichlet")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("credible-ai/olmo2-60M-288domains-dirichlet", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use credible-ai/olmo2-60M-288domains-dirichlet with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "credible-ai/olmo2-60M-288domains-dirichlet" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "credible-ai/olmo2-60M-288domains-dirichlet", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/credible-ai/olmo2-60M-288domains-dirichlet
- SGLang
How to use credible-ai/olmo2-60M-288domains-dirichlet 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 "credible-ai/olmo2-60M-288domains-dirichlet" \ --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": "credible-ai/olmo2-60M-288domains-dirichlet", "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 "credible-ai/olmo2-60M-288domains-dirichlet" \ --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": "credible-ai/olmo2-60M-288domains-dirichlet", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use credible-ai/olmo2-60M-288domains-dirichlet with Docker Model Runner:
docker model run hf.co/credible-ai/olmo2-60M-288domains-dirichlet
olmo2-60M-288domains-dirichlet
1,024 pretrained 60M proxy language models from the LinMix paper, one per data mix of its Dirichlet design over 288 WebOrganizer topic × format domains.
| models | 1,024, in folders mix_0 to mix_1023, bfloat16, 118 GB in total |
| architecture | OLMo 2 (Olmo2ForCausalLM), 57.6M parameters, 8 layers, hidden size 384 |
| tokenizer | GPT-NeoX-20B at the repo root, vocabulary length 50,432 |
| training | 2B tokens with OLMo-core |
mix_<i>/mix.json |
the mix proxy i was trained on |
| design, results, training sequences | credible-ai/linmix-proxy-swarms |
Loading
from huggingface_hub import snapshot_download
from transformers import AutoModelForCausalLM, AutoTokenizer
path = snapshot_download("credible-ai/olmo2-60M-288domains-dirichlet", allow_patterns=["mix_17/*", "tokenizer*"])
tokenizer = AutoTokenizer.from_pretrained(path)
model = AutoModelForCausalLM.from_pretrained(path, subfolder="mix_17")
To load many models, download the repo once with snapshot_download("credible-ai/olmo2-60M-288domains-dirichlet").
Training data and license
The weights are released under the MIT license. The training data come from WebOrganizer/Corpus-200B, derived from the DCLM 1b-1x pool (CC-BY-4.0) and subject to Common Crawl's terms of use. The tokenized sequences the models were trained on are in credible-ai/weborganizer-corpus-200b-tokenized.
Code: https://github.com/credibleai/linmix
Citation
@article{baniecki2026linmix,
title={LinMix: Data Mixing as Linear Domain Attribution},
author={Baniecki, Hubert and Biecek, Przemyslaw and Pawelczyk, Martin},
journal={arXiv preprint arXiv:2610.37390},
year={2026}
}