[Paper Review] JetMoE: Reaching Llama2 Performance with 0.1M Dollars
JetMoE-8B is a sparse Mixture-of-Experts (MoE) language model trained for under $100K using 1.25T tokens from open-source datasets and 30,000 H100 GPU hours. By applying sparse activation to both attention and feedforward experts, it achieves 8B total parameters with only 2B active per token, reducing inference cost by ~70% and outperforming Llama2-7B and Llama2-13B-Chat on key benchmarks while remaining fully open-source and reproducible.
Large Language Models (LLMs) have achieved remarkable results, but their increasing resource demand has become a major obstacle to the development of powerful and accessible super-human intelligence. This report introduces JetMoE-8B, a new LLM trained with less than $0.1 million, using 1.25T tokens from carefully mixed open-source corpora and 30,000 H100 GPU hours. Despite its low cost, the JetMoE-8B demonstrates impressive performance, with JetMoE-8B outperforming the Llama2-7B model and JetMoE-8B-Chat surpassing the Llama2-13B-Chat model. These results suggest that LLM training can be much more cost-effective than generally thought. JetMoE-8B is based on an efficient Sparsely-gated Mixture-of-Experts (SMoE) architecture, composed of attention and feedforward experts. Both layers are sparsely activated, allowing JetMoE-8B to have 8B parameters while only activating 2B for each input token, reducing inference computation by about 70% compared to Llama2-7B. Moreover, JetMoE-8B is highly open and academia-friendly, using only public datasets and training code. All training parameters and data mixtures have been detailed in this report to facilitate future efforts in the development of open foundation models. This transparency aims to encourage collaboration and further advancements in the field of accessible and efficient LLMs. The model weights are publicly available at https://github.com/myshell-ai/JetMoE.
Motivation & Objective
- To develop a high-performing, cost-effective large language model using minimal financial and computational resources.
- To enable open, reproducible training of MoE models using only public datasets and open-source code.
- To reduce inference cost through sparse activation in both attention and feedforward components of the transformer architecture.
- To demonstrate that state-of-the-art performance in open-source LLMs is achievable with limited budgets.
- To provide a transparent, academia-friendly training recipe for future research and model development.
Proposed method
- JetMoE-8B employs a sparse Mixture-of-Experts (SMoE) architecture in both self-attention and feedforward layers, enabling selective activation of only a subset of experts per token.
- The router network, implemented as a linear layer followed by a top-k softmax, selects the most relevant experts for each input token.
- Both the attention and feedforward experts are sparsely activated, reducing inference computation by approximately 70% compared to dense Llama2-7B.
- The model uses shared key-value (KV) projections across attention experts to improve training stability.
- A two-phase training strategy is applied, with a carefully curated mixture of 1.25T tokens from diverse open-source datasets to ensure high-quality pretraining.
- All training hyperparameters, data mixtures, and model weights are publicly released to ensure reproducibility and facilitate future research.
Experimental results
Research questions
- RQ1Can a sparse MoE model achieve performance comparable to dense LLMs like Llama2 while using significantly less training cost?
- RQ2Does applying sparse activation to both attention and feedforward layers yield greater efficiency gains than applying it only to feedforward layers?
- RQ3Can a high-performing open-source LLM be trained with under $100K and only public datasets, enabling broad academic access?
- RQ4How does the performance of a 2B-active-parameter MoE model compare to larger dense models like Llama2-13B-Chat across diverse benchmarks?
- RQ5To what extent does a transparent, open training recipe enable reproducibility and community advancement in open foundation models?
Key findings
- JetMoE-8B outperforms Llama2-7B on all tasks in the OpenLLM leaderboard, achieving a 51.0 average score compared to Llama2-7B's 46.4.
- JetMoE-8B-Chat surpasses Llama2-13B-Chat on the OpenLLM leaderboard, achieving a 53.0 average score versus Llama2-13B-Chat's 47.6.
- On the MBPP benchmark, JetMoE-8B achieves a Pass@1 score of 34.2, outperforming Gemma, LLaMA2, and DeepseekMoE.
- On the HumanEval benchmark, JetMoE-8B achieves a Pass@1 score of 25.0, outperforming LLaMA2-7B (12.8) and Gemma (20.8).
- JetMoE-8B-Chat achieves an MT-Bench score of 6.681, slightly exceeding Llama-2-13b-chat (6.650), indicating strong instruction-following capability.
- Despite its smaller active parameter count (2B), JetMoE-8B reduces inference computation by approximately 70% compared to Llama2-7B due to sparse expert routing.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.