We lifted 2 functions out of this paper's own repositories and ran 2 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.
| Repository | Role | Ran |
|---|---|---|
| opensparsellms/llama-moe-v2 | canonical | 2 of 2 |
| Function | Status | Where it lives |
|---|---|---|
| fault_tolerance_data_collator | Ran | opensparsellms/llama-moe-v2/smoe/entrypoint/sft/train_sft_llama3_nopad.py code served (permissive licence) · get_code("166e224261b42266") |
| simple_fault_tolerance_data_collator | Ran | opensparsellms/llama-moe-v2/smoe/entrypoint/sft/train_sft_llama3_nopad.py code served (permissive licence) · get_code("ca021b7b8acf4e5a") |
Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.
Recently, inspired by the concept of sparsity, Mixture-of-Experts (MoE) models have gained increasing popularity for scaling model size while keeping the number of activated parameters constant. In this study, we thoroughly investigate the sparsity of the dense LLaMA model by constructing MoE for both the attention (i.e., Attention MoE) and MLP (i.e., MLP MoE) modules in the transformer blocks. Specifically, we investigate different expert construction methods and granularities under the same activation conditions to analyze the impact of sparsifying the model. Additionally, to comprehensively evaluate the model's capabilities across various domains (e.g., conversation, code, math) after sparsification, we apply sparsity to the instructed large language models (LLMs) and construct instructed MoE models. To counteract the performance degradation resulting from increased sparsity, we design a two-stage post-training strategy to enhance model performance. Experiments on the LLaMA3 model demonstrate the potential effectiveness of this approach for future developments of instructed MoE models. The source codes and models are available at: \url{https://github.com/OpenSparseLLMs/LLaMA-MoE-v2}.
The same record, over MCP at https://syntology.ai/mcp:
get_harvested_code_for_paper("2411.15708")
get_code_for_paper("2411.15708")
have("2411.15708")
Connect an agent — have() is free.