Views
No views yet
| Total Parameters | 8.1B |
| Expert 1 Parameters | 0.8B |
| Expert 1 Width | 2048 (19%) |
| Base Model | allenai/Flex-math-2x7B-1T (11.6B params) |
| Distillation | Partial (~20k steps, stopped early) |
modeling_pruned_flex_olmo.py file that handles the variable-width expert architecture. Just load with trust_remote_code=True and it works like any other HuggingFace model:1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3model = AutoModelForCausalLM.from_pretrained("hbfreed/flex-general-2048", trust_remote_code=True)
4tokenizer = AutoTokenizer.from_pretrained("allenai/Flex-math-2x7B-1T")
5
6inputs = tokenizer("Hello, world!", return_tensors="pt")
7outputs = model.generate(**inputs, max_new_tokens=256)
8print(tokenizer.decode(outputs[0], skip_special_tokens=True))| Model | Calibration | Expert Width | Distillation |
|---|---|---|---|
| flex-math-8192 | Math | 8192 (74%) | Full |
| flex-math-5504 | Math | 5504 (50%) | Full |
| flex-math-2048 | Math | 2048 (19%) | Full |
| flex-general-2048 | General | 2048 (19%) | Partial |