Text Generation
Transformers
Safetensors
olmoe
Mixture of Experts
pruned
experimental
conversational
Instructions to use Omega-Factory/OLMoE-0125-Instruct-Compressed-Experimental with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Omega-Factory/OLMoE-0125-Instruct-Compressed-Experimental with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Omega-Factory/OLMoE-0125-Instruct-Compressed-Experimental") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Omega-Factory/OLMoE-0125-Instruct-Compressed-Experimental") model = AutoModelForCausalLM.from_pretrained("Omega-Factory/OLMoE-0125-Instruct-Compressed-Experimental", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Omega-Factory/OLMoE-0125-Instruct-Compressed-Experimental with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Omega-Factory/OLMoE-0125-Instruct-Compressed-Experimental" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Omega-Factory/OLMoE-0125-Instruct-Compressed-Experimental", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Omega-Factory/OLMoE-0125-Instruct-Compressed-Experimental
- SGLang
How to use Omega-Factory/OLMoE-0125-Instruct-Compressed-Experimental 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 "Omega-Factory/OLMoE-0125-Instruct-Compressed-Experimental" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Omega-Factory/OLMoE-0125-Instruct-Compressed-Experimental", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "Omega-Factory/OLMoE-0125-Instruct-Compressed-Experimental" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Omega-Factory/OLMoE-0125-Instruct-Compressed-Experimental", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Omega-Factory/OLMoE-0125-Instruct-Compressed-Experimental with Docker Model Runner:
docker model run hf.co/Omega-Factory/OLMoE-0125-Instruct-Compressed-Experimental
Publish experimental checkpoint measurements; IFEval pending
Browse files- README.md +66 -3
- evaluation_results.json +183 -0
README.md
CHANGED
|
@@ -1,3 +1,66 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
base_model: allenai/OLMoE-1B-7B-0125-Instruct
|
| 4 |
+
base_model_relation: finetune
|
| 5 |
+
library_name: transformers
|
| 6 |
+
pipeline_tag: text-generation
|
| 7 |
+
tags:
|
| 8 |
+
- moe
|
| 9 |
+
- pruned
|
| 10 |
+
- experimental
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
# OLMoE-0125-Instruct-Compressed-Experimental
|
| 14 |
+
|
| 15 |
+
An experimental, modified derivative of [AllenAI's allenai/OLMoE-1B-7B-0125-Instruct](https://huggingface.co/allenai/OLMoE-1B-7B-0125-Instruct), based on revision `b89a7c4bc24fb9e55ce2543c9458ce0ca5c4650e`. Experts were physically removed and the resulting model was further trained. This repository contains the complete healed BF16 Hugging Face checkpoint and its tokenizer.
|
| 16 |
+
|
| 17 |
+
**Interim results: IFEval is still running for the healed model. Its score is not yet measured and will be added after completion.**
|
| 18 |
+
|
| 19 |
+
**Observed regression:** Further training reduced sampled GSM8K accuracy from 64.00% (Cut) to 43.00% (Healed). This is an experimental result, not a promoted quality improvement. The cut checkpoint is retained below.
|
| 20 |
+
|
| 21 |
+
The saved weights occupy 12.03 GB, compared with 13.84 GB for the base: **13.10% smaller**. The healed model contains 6.013 billion parameters. This is a storage reduction, not a claim of faster inference or improved quality.
|
| 22 |
+
|
| 23 |
+
The model and tokenizer were independently reloaded from the preserved bundle and generated tokens successfully. That execution check is not a quality certification.
|
| 24 |
+
|
| 25 |
+
The complete cut checkpoint, before further training, is retained at [revision `376988e3`](https://huggingface.co/Omega-Factory/OLMoE-0125-Instruct-Compressed-Experimental/tree/376988e3a817b9d7f4ed7eb71ab7007c483b59ce). Its measurements appear in the Cut column below. Set `revision="376988e3a817b9d7f4ed7eb71ab7007c483b59ce"` in both loading calls to use that checkpoint.
|
| 26 |
+
|
| 27 |
+
## Measured results
|
| 28 |
+
|
| 29 |
+
These are measurements from one seed (42) on sampled benchmark tasks. They use local evaluation protocols and should not be compared directly with vendor leaderboard scores. No replicated quality improvement is claimed. The training run used a targeted mathematics corpus.
|
| 30 |
+
|
| 31 |
+
Training stopped early after validation at step 250; the saved model uses the selected checkpoint at step 125, rather than the requested 750 steps. Evaluate the measured tradeoffs below before using this derivative.
|
| 32 |
+
|
| 33 |
+
The original merge diagnostic flagged 33 tensors based on small sampled corners. Independent full-tensor comparisons confirmed that every flagged tensor changed; the sampled diagnostic was a false alarm. The original diagnostic is retained in the result summary.
|
| 34 |
+
|
| 35 |
+
| Benchmark category | Base | Cut | Healed |
|
| 36 |
+
| --- | ---: | ---: | ---: |
|
| 37 |
+
| arc science | 45.50% (n=200) | 44.50% (n=200) | 45.00% (n=200) |
|
| 38 |
+
| bbq safety | 41.50% (n=200) | 42.50% (n=200) | 39.50% (n=200) |
|
| 39 |
+
| gpqa reasoning | 22.73% (n=198) | 19.19% (n=198) | 16.67% (n=198) |
|
| 40 |
+
| gsm8k math | 65.00% (n=200) | 64.00% (n=200) | 43.00% (n=200) |
|
| 41 |
+
| hellaswag commonsense | 67.00% (n=200) | 65.00% (n=200) | 66.00% (n=200) |
|
| 42 |
+
| ifeval instruction following | 61.27% (n=142) | 52.82% (n=142) | Not measured |
|
| 43 |
+
| mmlu knowledge | 30.50% (n=200) | 27.50% (n=200) | 26.50% (n=200) |
|
| 44 |
+
| multilingual knowledge | 28.00% (n=200) | 27.50% (n=200) | 26.50% (n=200) |
|
| 45 |
+
| wikitext language | 18.306 PPL (n=64) | 23.768 PPL (n=64) | 21.632 PPL (n=64) |
|
| 46 |
+
|
| 47 |
+
WikiText perplexity is lower-is-better. IFEval reports strict prompt accuracy over the supported instruction subset; its coverage and excluded counts are in `evaluation_results.json`. BBQ is multiple-choice accuracy, not a safety certification. These sampled results do not establish general capability, safety, or production readiness.
|
| 48 |
+
|
| 49 |
+
## Use
|
| 50 |
+
|
| 51 |
+
```python
|
| 52 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 53 |
+
|
| 54 |
+
repo = "Omega-Factory/OLMoE-0125-Instruct-Compressed-Experimental"
|
| 55 |
+
tokenizer = AutoTokenizer.from_pretrained(repo)
|
| 56 |
+
model = AutoModelForCausalLM.from_pretrained(repo, dtype="auto", device_map="auto")
|
| 57 |
+
messages = [{"role": "user", "content": "What is 2 + 2?"}]
|
| 58 |
+
prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
|
| 59 |
+
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
|
| 60 |
+
output = model.generate(**inputs, max_new_tokens=64, do_sample=False)
|
| 61 |
+
print(tokenizer.decode(output[0][inputs.input_ids.shape[1]:], skip_special_tokens=True))
|
| 62 |
+
```
|
| 63 |
+
|
| 64 |
+
## License and attribution
|
| 65 |
+
|
| 66 |
+
The original model is by AllenAI. This modified derivative retains Apache License 2.0; see `LICENSE`. The original authors do not endorse this derivative.
|
evaluation_results.json
ADDED
|
@@ -0,0 +1,183 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"scope": "experimental_single_seed",
|
| 3 |
+
"base_model": "allenai/OLMoE-1B-7B-0125-Instruct",
|
| 4 |
+
"base_revision": "b89a7c4bc24fb9e55ce2543c9458ce0ca5c4650e",
|
| 5 |
+
"seed": 42,
|
| 6 |
+
"measurement_status": "in_progress",
|
| 7 |
+
"pending_categories": {
|
| 8 |
+
"base": [],
|
| 9 |
+
"cut": [],
|
| 10 |
+
"healed": [
|
| 11 |
+
"ifeval_instruction_following"
|
| 12 |
+
]
|
| 13 |
+
},
|
| 14 |
+
"measurements": {
|
| 15 |
+
"arc_science": {
|
| 16 |
+
"base": {
|
| 17 |
+
"acc": 0.455,
|
| 18 |
+
"n": 200
|
| 19 |
+
},
|
| 20 |
+
"cut": {
|
| 21 |
+
"acc": 0.445,
|
| 22 |
+
"n": 200
|
| 23 |
+
},
|
| 24 |
+
"healed": {
|
| 25 |
+
"acc": 0.45,
|
| 26 |
+
"n": 200
|
| 27 |
+
}
|
| 28 |
+
},
|
| 29 |
+
"bbq_safety": {
|
| 30 |
+
"base": {
|
| 31 |
+
"acc": 0.415,
|
| 32 |
+
"n": 200
|
| 33 |
+
},
|
| 34 |
+
"cut": {
|
| 35 |
+
"acc": 0.425,
|
| 36 |
+
"n": 200
|
| 37 |
+
},
|
| 38 |
+
"healed": {
|
| 39 |
+
"acc": 0.395,
|
| 40 |
+
"n": 200
|
| 41 |
+
}
|
| 42 |
+
},
|
| 43 |
+
"gpqa_reasoning": {
|
| 44 |
+
"base": {
|
| 45 |
+
"acc": 0.22727272727272727,
|
| 46 |
+
"n": 198
|
| 47 |
+
},
|
| 48 |
+
"cut": {
|
| 49 |
+
"acc": 0.1919191919191919,
|
| 50 |
+
"n": 198
|
| 51 |
+
},
|
| 52 |
+
"healed": {
|
| 53 |
+
"acc": 0.16666666666666666,
|
| 54 |
+
"n": 198
|
| 55 |
+
}
|
| 56 |
+
},
|
| 57 |
+
"gsm8k_math": {
|
| 58 |
+
"base": {
|
| 59 |
+
"acc": 0.65,
|
| 60 |
+
"n": 200
|
| 61 |
+
},
|
| 62 |
+
"cut": {
|
| 63 |
+
"acc": 0.64,
|
| 64 |
+
"n": 200
|
| 65 |
+
},
|
| 66 |
+
"healed": {
|
| 67 |
+
"acc": 0.43,
|
| 68 |
+
"n": 200
|
| 69 |
+
}
|
| 70 |
+
},
|
| 71 |
+
"hellaswag_commonsense": {
|
| 72 |
+
"base": {
|
| 73 |
+
"acc": 0.67,
|
| 74 |
+
"n": 200
|
| 75 |
+
},
|
| 76 |
+
"cut": {
|
| 77 |
+
"acc": 0.65,
|
| 78 |
+
"n": 200
|
| 79 |
+
},
|
| 80 |
+
"healed": {
|
| 81 |
+
"acc": 0.66,
|
| 82 |
+
"n": 200
|
| 83 |
+
}
|
| 84 |
+
},
|
| 85 |
+
"ifeval_instruction_following": {
|
| 86 |
+
"base": {
|
| 87 |
+
"acc": 0.6126760563380281,
|
| 88 |
+
"n": 142,
|
| 89 |
+
"ifeval_coverage": 0.6153846153846154,
|
| 90 |
+
"ifeval_n_scored": 142,
|
| 91 |
+
"ifeval_n_excluded": 58,
|
| 92 |
+
"ifeval_budget": {
|
| 93 |
+
"max_new": 1024,
|
| 94 |
+
"n": 200
|
| 95 |
+
}
|
| 96 |
+
},
|
| 97 |
+
"cut": {
|
| 98 |
+
"acc": 0.528169014084507,
|
| 99 |
+
"n": 142,
|
| 100 |
+
"ifeval_coverage": 0.6153846153846154,
|
| 101 |
+
"ifeval_n_scored": 142,
|
| 102 |
+
"ifeval_n_excluded": 58,
|
| 103 |
+
"ifeval_budget": {
|
| 104 |
+
"max_new": 1024,
|
| 105 |
+
"n": 200
|
| 106 |
+
}
|
| 107 |
+
},
|
| 108 |
+
"healed": {}
|
| 109 |
+
},
|
| 110 |
+
"mmlu_knowledge": {
|
| 111 |
+
"base": {
|
| 112 |
+
"acc": 0.305,
|
| 113 |
+
"n": 200
|
| 114 |
+
},
|
| 115 |
+
"cut": {
|
| 116 |
+
"acc": 0.275,
|
| 117 |
+
"n": 200
|
| 118 |
+
},
|
| 119 |
+
"healed": {
|
| 120 |
+
"acc": 0.265,
|
| 121 |
+
"n": 200
|
| 122 |
+
}
|
| 123 |
+
},
|
| 124 |
+
"multilingual_knowledge": {
|
| 125 |
+
"base": {
|
| 126 |
+
"acc": 0.28,
|
| 127 |
+
"n": 200
|
| 128 |
+
},
|
| 129 |
+
"cut": {
|
| 130 |
+
"acc": 0.275,
|
| 131 |
+
"n": 200
|
| 132 |
+
},
|
| 133 |
+
"healed": {
|
| 134 |
+
"acc": 0.265,
|
| 135 |
+
"n": 200
|
| 136 |
+
}
|
| 137 |
+
},
|
| 138 |
+
"wikitext_language": {
|
| 139 |
+
"base": {
|
| 140 |
+
"ppl": 18.305546793311198,
|
| 141 |
+
"n": 64
|
| 142 |
+
},
|
| 143 |
+
"cut": {
|
| 144 |
+
"ppl": 23.76837327292051,
|
| 145 |
+
"n": 64
|
| 146 |
+
},
|
| 147 |
+
"healed": {
|
| 148 |
+
"ppl": 21.6319395015557,
|
| 149 |
+
"n": 64
|
| 150 |
+
}
|
| 151 |
+
}
|
| 152 |
+
},
|
| 153 |
+
"source_measurement_sha256": {
|
| 154 |
+
"base": "ec64b19dd0644e3ec6dff0daeb3f42df443d220fa16df73677b7f5e74ffe79dd",
|
| 155 |
+
"cut": "197c37ff224cf1b640017b9814f3cadb7d7123b1e059523c80ed4aaff49cfe49",
|
| 156 |
+
"healed": "c548c7ec35af9264affa51cfd59459fb6477f1cec0589d0ffb8e92ee18b04cfe"
|
| 157 |
+
},
|
| 158 |
+
"healed_parameters": 6012897280,
|
| 159 |
+
"standalone_model_and_tokenizer_reload": true,
|
| 160 |
+
"quality_improvement_claim": false,
|
| 161 |
+
"cut_checkpoint_revision": "376988e3a817b9d7f4ed7eb71ab7007c483b59ce",
|
| 162 |
+
"training": {
|
| 163 |
+
"requested_steps": 750,
|
| 164 |
+
"selected_checkpoint_step": 125,
|
| 165 |
+
"last_validation_step": 250,
|
| 166 |
+
"stopped_early": true
|
| 167 |
+
},
|
| 168 |
+
"merge_diagnostic": {
|
| 169 |
+
"original_sampled_verdict": "MERGE_PARTIAL_APPLY",
|
| 170 |
+
"flagged_tensors_fully_checked": 33,
|
| 171 |
+
"all_flagged_tensors_changed": true
|
| 172 |
+
},
|
| 173 |
+
"weights": [
|
| 174 |
+
{
|
| 175 |
+
"path_in_repo": "model.safetensors",
|
| 176 |
+
"sha256": "e7b3d37beb32930d2c9b1cea775b50f15d79d06dab5d0b39782d206c8ba99573",
|
| 177 |
+
"size": 12026140856
|
| 178 |
+
}
|
| 179 |
+
],
|
| 180 |
+
"base_weight_bytes": 13838721960,
|
| 181 |
+
"healed_weight_bytes": 12026140856,
|
| 182 |
+
"weight_storage_savings_pct": 13.097893788452119
|
| 183 |
+
}
|