Movatterモバイル変換


[0]ホーム

URL:


Hugging Face's logoHugging Face

Text Generation
Transformers
Safetensors
English
olmoe
Mixture of Experts
olmo
OLMoE Logo.

Model Summary

OLMoE-1B-7B is a Mixture-of-Experts LLM with 1B active and 7B total parameters released in September 2024 (0924). It yields state-of-the-art performance among models with a similar cost (1B) and is competitive with much larger models like Llama2-13B. OLMoE is 100% open-source.

This information and more can also be found on theOLMoE GitHub repository.

Use

Installtransformersfrom source until a release afterthis PR &torch and run:

from transformersimport OlmoeForCausalLM, AutoTokenizerimport torchDEVICE ="cuda"if torch.cuda.is_available()else"cpu"# Load different ckpts via passing e.g. `revision=step10000-tokens41B`model = OlmoeForCausalLM.from_pretrained("allenai/OLMoE-1B-7B-0924").to(DEVICE)tokenizer = AutoTokenizer.from_pretrained("allenai/OLMoE-1B-7B-0924")inputs = tokenizer("Bitcoin is", return_tensors="pt")inputs = {k: v.to(DEVICE)for k, vin inputs.items()}out = model.generate(**inputs, max_length=64)print(tokenizer.decode(out[0]))# > # Bitcoin is a digital currency that is created and held electronically. No one controls it. Bitcoins aren’t printed, like dollars or euros – they’re produced by people and businesses running computers all around the world, using software that solves mathematical

You can list all revisions/branches by installinghuggingface-hub & running:

from huggingface_hubimport list_repo_refsout = list_repo_refs("allenai/OLMoE-1B-7B-0924")branches = [b.namefor bin out.branches]

Important branches:

  • step1200000-tokens5033B: Pretraining checkpoint used for annealing. There are a few more checkpoints after this one but we did not use them.
  • main: Checkpoint annealed fromstep1200000-tokens5033B for an additional 100B tokens (23,842 steps). We use this checkpoint for our adaptation (https://huggingface.co/allenai/OLMoE-1B-7B-0924-SFT &https://huggingface.co/allenai/OLMoE-1B-7B-0924-Instruct).
  • fp32: FP32 version ofmain. The model weights were stored in FP32 during training but we did not observe any performance drop from casting them to BF16 after training so we upload all weights in BF16. If you want the original FP32 checkpoint formain you can use this one. You will find that it yields slightly different results but should perform around the same on benchmarks.

Evaluation Snapshot

ModelActive ParamsOpen DataMMLUHellaSwagARC-Chall.ARC-EasyPIQAWinoGrande
LMs with ~1B active parameters
OLMoE-1B-7B1.3B54.180.062.184.279.870.2
DCLM-1B1.4B48.575.157.679.576.668.1
TinyLlama-1B1.1B33.660.838.169.571.760.1
OLMo-1B (0724)1.3B32.167.536.453.574.062.9
Pythia-1B1.1B31.148.031.463.468.952.7
LMs with ~2-3B active parameters
Qwen1.5-3B-14B2.7B62.480.077.491.681.072.3
Gemma2-3B2.6B53.374.667.584.378.571.8
JetMoE-2B-9B2.2B49.181.761.481.980.370.7
DeepSeek-3B-16B2.9B45.580.453.482.780.173.2
StableLM-2B1.6B40.470.350.675.375.665.8
OpenMoE-3B-9B2.9B27.444.429.350.663.351.9
LMs with ~7-9B active parameters
Gemma2-9B9.2B70.687.389.595.586.178.8
Llama3.1-8B8.0B66.981.679.591.781.176.6
DCLM-7B6.9B64.482.379.892.380.177.3
Mistral-7B7.3B64.083.078.690.882.877.9
OLMo-7B (0724)6.9B54.980.568.085.779.373.2
Llama2-7B6.7B46.278.954.284.077.571.7

Citation

@misc{muennighoff2024olmoeopenmixtureofexpertslanguage,      title={OLMoE: Open Mixture-of-Experts Language Models},       author={Niklas Muennighoff and Luca Soldaini and Dirk Groeneveld and Kyle Lo and Jacob Morrison and Sewon Min and Weijia Shi and Pete Walsh and Oyvind Tafjord and Nathan Lambert and Yuling Gu and Shane Arora and Akshita Bhagia and Dustin Schwenk and David Wadden and Alexander Wettig and Binyuan Hui and Tim Dettmers and Douwe Kiela and Ali Farhadi and Noah A. Smith and Pang Wei Koh and Amanpreet Singh and Hannaneh Hajishirzi},      year={2024},      eprint={2409.02060},      archivePrefix={arXiv},      primaryClass={cs.CL},      url={https://arxiv.org/abs/2409.02060}, }
Downloads last month
28,644
Safetensors
Model size
6.92B params
Tensor type
BF16
·
Inference ProvidersNEW
This model isn't deployed by any Inference Provider.🙋Ask for provider support

Model tree forallenai/OLMoE-1B-7B-0924

Finetunes
3 models
Quantizations
5 models

Dataset used to trainallenai/OLMoE-1B-7B-0924

Space usingallenai/OLMoE-1B-7B-09241

Collection includingallenai/OLMoE-1B-7B-0924


[8]ページ先頭

©2009-2025 Movatter.jp