Home  >  Article  >  Technology peripherals  >  Introducing a large domestic open source MoE model, its performance is comparable to Llama 2-7B, while the calculation amount is reduced by 60%

Introducing a large domestic open source MoE model, its performance is comparable to Llama 2-7B, while the calculation amount is reduced by 60%

PHPz
PHPzforward
2024-01-15 21:36:14913browse

The open source MoE model finally welcomes its first domestic player!

Its performance is not inferior to the dense Llama 2-7B model, but the calculation amount is only 40%.

This model can be called a 19-sided warrior, especially in terms of math and coding capabilities, crushing Llama.

首个国产开源MoE大模型来了!性能媲美Llama 2-7B,计算量降低60%

It is the Deep Search team’s latest open source 16 billion parameter expert model DeepSeek MoE.

In addition to its excellent performance, DeepSeek MoE's main focus is to save computing power.

In this performance-activation parameter diagram, it "singles out" and occupies a large blank area in the upper left corner.

首个国产开源MoE大模型来了!性能媲美Llama 2-7B,计算量降低60%

Only one day after its release, the DeepSeek team’s tweet on X received a large number of retweets and attention.

首个国产开源MoE大模型来了!性能媲美Llama 2-7B,计算量降低60%

Maxime Labonne, a machine learning engineer at JP Morgan, also said after testing that the chat version of DeepSeek MoE performs slightly better than Microsoft's "small model" Phi-2.

首个国产开源MoE大模型来了!性能媲美Llama 2-7B,计算量降低60%

At the same time, DeepSeek MoE also received 300 stars on GitHub and appeared on the homepage of the Hugging Face text generation model rankings.

首个国产开源MoE大模型来了!性能媲美Llama 2-7B,计算量降低60%

So, what is the specific performance of DeepSeek MoE?

The amount of calculation is reduced by 60%

The current version of DeepSeek MoE has 16 billion parameters, and the actual number of activated parameters is about 2.8 billion.

Compared with its own 7B dense model, the performance of the two on the 19 data sets has different advantages and disadvantages, but the overall performance is relatively close.

Compared with Llama 2-7B, which is also a dense model, DeepSeek MoE also shows obvious advantages in mathematics, code, etc.

But the calculation amount of both dense models exceeds 180TFLOPs per 4k tokens, while DeepSeek MoE only has 74.4TFLOPs, which is only 40% of the two.

首个国产开源MoE大模型来了!性能媲美Llama 2-7B,计算量降低60%

Performance tests conducted at 2 billion parameters show that DeepSeek MoE can also achieve the performance of the same MoE model with 1.5 times the number of parameters with less calculation. GShard 2.8B has comparable or even better results.

首个国产开源MoE大模型来了!性能媲美Llama 2-7B,计算量降低60%

In addition, the Deep Seek team also fine-tuned the Chat version of DeepSeek MoE based on SFT, and its performance was also close to its own intensive version and Llama 2-7B.

首个国产开源MoE大模型来了!性能媲美Llama 2-7B,计算量降低60%

In addition, the DeepSeek team also revealed that a 145B version of the DeepSeek MoE model is under development.

Phased preliminary tests show that the 145B DeepSeek MoE has a huge lead over the GShard 137B, and can achieve equivalent performance to the dense version of the DeepSeek 67B model with 28.5% of the calculation amount.

After the research and development is completed, the team will also open source the 145B version.

首个国产开源MoE大模型来了!性能媲美Llama 2-7B,计算量降低60%

Behind the performance of these models is DeepSeek’s new self-developed MoE architecture.

Self-developed MoE new architecture

First of all, compared to the traditional MoE architecture, DeepSeek has a more fine-grained expert division.

When the total number of parameters is fixed, the traditional model can classify N experts, while DeepSeek may classify 2N experts.

At the same time, the number of experts selected each time a task is performed is twice that of the traditional model, so the overall number of parameters used remains the same, but the degree of freedom of selection increases.

This segmentation strategy allows for a more flexible and adaptive combination of activation experts, thereby improving the accuracy of the model on different tasks and the pertinence of knowledge acquisition.

首个国产开源MoE大模型来了!性能媲美Llama 2-7B,计算量降低60%

In addition to the differences in expert division, DeepSeek also innovatively introduces the "shared expert" setting.

These shared experts activate tokens for all inputs and are not affected by the routing module. The purpose is to capture and integrate common knowledge that is needed in different contexts.

By compressing these shared knowledge into shared experts, parameter redundancy among other experts can be reduced, thereby improving the parameter efficiency of the model.

The setting of shared experts helps other experts focus more on their unique knowledge areas, thereby improving the overall level of expert specialization.

首个国产开源MoE大模型来了!性能媲美Llama 2-7B,计算量降低60%

#Ablation experiment results show that both solutions play an important role in the "cost reduction and efficiency increase" of DeepSeek MoE.

首个国产开源MoE大模型来了!性能媲美Llama 2-7B,计算量降低60%

Paper address: https://arxiv.org/abs/2401.06066.

Reference link: https://mp.weixin.qq.com/s/T9-EGxYuHcGQgXArLXGbgg.

The above is the detailed content of Introducing a large domestic open source MoE model, its performance is comparable to Llama 2-7B, while the calculation amount is reduced by 60%. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:51cto.com. If there is any infringement, please contact admin@php.cn delete