Instructions to use credible-ai/olmo2-1B-288domains-dirichlet-linear-hellaswag with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use credible-ai/olmo2-1B-288domains-dirichlet-linear-hellaswag with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="credible-ai/olmo2-1B-288domains-dirichlet-linear-hellaswag")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("credible-ai/olmo2-1B-288domains-dirichlet-linear-hellaswag") model = AutoModelForCausalLM.from_pretrained("credible-ai/olmo2-1B-288domains-dirichlet-linear-hellaswag", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use credible-ai/olmo2-1B-288domains-dirichlet-linear-hellaswag with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "credible-ai/olmo2-1B-288domains-dirichlet-linear-hellaswag" # 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-1B-288domains-dirichlet-linear-hellaswag", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/credible-ai/olmo2-1B-288domains-dirichlet-linear-hellaswag
- SGLang
How to use credible-ai/olmo2-1B-288domains-dirichlet-linear-hellaswag 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-1B-288domains-dirichlet-linear-hellaswag" \ --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-1B-288domains-dirichlet-linear-hellaswag", "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-1B-288domains-dirichlet-linear-hellaswag" \ --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-1B-288domains-dirichlet-linear-hellaswag", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use credible-ai/olmo2-1B-288domains-dirichlet-linear-hellaswag with Docker Model Runner:
docker model run hf.co/credible-ai/olmo2-1B-288domains-dirichlet-linear-hellaswag
olmo2-1B-288domains-dirichlet-linear-hellaswag
A 1B language model pretrained on 32B tokens from the WebOrganizer corpus, mixed over 288 topic × format domains with mixture weights optimized by LinMix for the HellaSwag benchmark. It is a research artifact for reproducing the experiments of the LinMix paper, not a general-purpose language model.
| method | LinMix (sampling ablation): linear surrogate fit on the Dirichlet swarm instead of the vertex swarm with linear utility π (r = 0) |
| proxy swarm | credible-ai/olmo2-60M-288domains-dirichlet |
| architecture | OLMo 2 (Olmo2ForCausalLM), 1.41B parameters, 18 layers, hidden size 2048 |
| tokenizer | GPT-NeoX-20B, vocabulary length 50,432 |
| training | 32B tokens with OLMo-core |
| weights | bfloat16 |
mix.json |
the mix of the training data |
Loading
from transformers import AutoModelForCausalLM, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("credible-ai/olmo2-1B-288domains-dirichlet-linear-hellaswag")
model = AutoModelForCausalLM.from_pretrained("credible-ai/olmo2-1B-288domains-dirichlet-linear-hellaswag")
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}
}
- Downloads last month
- 261