
jetmoe
Language29 ops50.2K params
A language model that sparsely activates attention and feed-forward experts for each input token.
Language · 29 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
About this model's family
JetMoE-8B is a large language model from a technical report about training cost: it was trained with less than $0.1 million, using 1.25T tokens from open-source corpora and 30,000 H100 GPU hours.
Its architecture is a sparse mixture of experts inspired by ModuleFormer, in which sparse activation is applied to both the attention and the feed-forward layers. Each block has two such layers, a Mixture of Attention heads (MoA) and a Mixture of MLP Experts (MoE). Each of these layers has 8 experts, and 2 of them are activated for each input token. Within the attention experts, the key and value projection matrices are shared across experts. The report says this lets JetMoE-8B have 8B parameters while activating only 2B for each input token, reducing inference computation by about 70% compared to Llama2-7B.
Training followed a two-phase recipe, with phase 1 using a constant learning rate with linear warmup on 1 trillion tokens. The report states that JetMoE-8B outperforms Gemma, LLaMA2 and DeepseekMoE on the OpenLLM leaderboard, with the best scores in all tasks except ARC-challenge and WinoGrande. Its table of results gives an OpenLLM Leaderboard average of 53.0 for JetMoE-8B and 51.0 for LLaMA2.
Key idea. JetMoE-8B applies sparse activation to both attention and feed-forward layers, giving 8B parameters with 2B active per token, and was trained for under $0.1 million.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@misc{shen2024jetmoereachingllama2performance,
title={JetMoE: Reaching Llama2 Performance with 0.1M Dollars},
author={Yikang Shen and Zhen Guo and Tianle Cai and Zengyi Qin},
year={2024},
eprint={2404.07413},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2404.07413},
}