SparseLLM / ReluLLaMA-13B

huggingface.co
Total runs: 7
24-hour runs: 0
7-day runs: 3
30-day runs: -6
Model's Last Updated: December 15 2023
text-generation

Introduction of ReluLLaMA-13B

Model Details of ReluLLaMA-13B

ReluLLaMA-13B

Background

Sparse computation is increasingly recognized as an important direction in enhancing the computational efficiency of large language models (LLMs). Among various approaches, the mixture-of-experts (MoE) method, exemplified by models like Mixtral, has shown particular promise. MoE works by selectively activating different model components (experts), thus optimizing resource usage.

Recent studies ( Zhang el al., 2021 ; Liu et al., 2023 ; Mirzadeh et al., 2023 ) reveal that LLMs inherently exhibit properties conducive to sparse computation when employing the ReLU activation function. This insight opens up new avenues for model efficiency, akin to MoE's selective activation. By dynamically choosing model parameters for computation, we can substantially boost efficiency.

However, the widespread adoption of ReLU-based models in the LLM field remains limited. Referring to the transformation methods from existing works ( Zhang el al., 2021 ; Mirzadeh et al., 2023 ), we convert existing models to ReLU-activated versions through fine-tuning. We hope these open-source ReLU LLMs could promote the development of sparse LLMs.

Dataset

We finetune the model on about 5 billion tokens, including:

  • Wikipedia
  • Pile
  • StackOverflow

We optimistically believe that by continuing to train with more tokens (covering a wider variety of data), the model will further approach its original performance.

Training Details

We jointly optimize the model on the conventional language modeling objective and the knowledge distillation objective. The knowledge distillation objective is to minimize the KL divergence between the teacher model and the student model. The teacher model is the original LLM, and the student model is the ReLU-activated version. Since the size of the fine-tuning data is relatively small, we introduce the knowledge distillation objective to avoid overfitting and enhance the generalization ability of the model, which can be also seen as a technique of label smoothing.

Parameter Value
Finetune_Type Full FT
Batch_Size 2048
GPUs 16xA100(80G)
LR_Scheduler cosine
LR 3e-5
Evaluation

We evaluate the model on the datasets of Open LLM Leaderboard . The results are shown below:

Metric ReLU Value Orig Value
ARC (25-shot) 53.92 59.3
HellaSwag (10-shot) 78.22 82.15
MMLU (5-shot) 52.10 55.67
TruthfulQA (0-shot) 37.36 37.39
Winogrande (5-shot) 73.40 76.64
GSM8K (5-shot) 16.37 10.84
Average 51.90 53.67
Inference Tool

We utilize PowerInfer for inference, here we present the inference speeds of pure CPU-based inference with fp16 precision. The CPU configuration includes an Intel i9-13900K processor (eight performance cores at 5.4GHz) and 192GB of host memory (with a memory bandwidth of 67.2 GB/s).

Dense Inference: 2.69 tokens/s

Sparse Inference: 4.45 tokens/s

License Disclaimer:

This model is bound by the license & usage restrictions of the original Llama-2 model. And comes with no warranty or gurantees of any kind.

Limitations & Biases:

Llama 2 and fine-tuned variants are a new technology that carries risks with use. Testing conducted to date has been in English, and has not covered, nor could it cover all scenarios. For these reasons, as with all LLMs, Llama 2 and any fine-tuned varient's potential outputs cannot be predicted in advance, and the model may in some instances produce inaccurate, biased or other objectionable responses to user prompts. Therefore, before deploying any applications of Llama 2 variants, developers should perform safety testing and tuning tailored to their specific applications of the model.

Please see the Responsible Use Guide available at https://ai.meta.com/llama/responsible-use-guide/

Citiation:

Please kindly cite using the following BibTeX:

@misc{sparsellm,
    title={Sparse Large Language Models with ReLU Activation}, 
    author={SpaseLLM Team},
    year={2023}
}
Acknowledgments:

The model card is modified from ORCA_LLaMA_70B_QLoRA .

Runs of SparseLLM ReluLLaMA-13B on huggingface.co

7
Total runs
0
24-hour runs
0
3-day runs
3
7-day runs
-6
30-day runs

More Information About ReluLLaMA-13B huggingface.co Model

More ReluLLaMA-13B license Visit here:

https://choosealicense.com/licenses/llama2

ReluLLaMA-13B huggingface.co

ReluLLaMA-13B huggingface.co is an AI model on huggingface.co that provides ReluLLaMA-13B's model effect (), which can be used instantly with this SparseLLM ReluLLaMA-13B model. huggingface.co supports a free trial of the ReluLLaMA-13B model, and also provides paid use of the ReluLLaMA-13B. Support call ReluLLaMA-13B model through api, including Node.js, Python, http.

ReluLLaMA-13B huggingface.co Url

https://huggingface.co/SparseLLM/ReluLLaMA-13B

SparseLLM ReluLLaMA-13B online free

ReluLLaMA-13B huggingface.co is an online trial and call api platform, which integrates ReluLLaMA-13B's modeling effects, including api services, and provides a free online trial of ReluLLaMA-13B, you can try ReluLLaMA-13B online for free by clicking the link below.

SparseLLM ReluLLaMA-13B online free url in huggingface.co:

https://huggingface.co/SparseLLM/ReluLLaMA-13B

ReluLLaMA-13B install

ReluLLaMA-13B is an open source model from GitHub that offers a free installation service, and any user can find ReluLLaMA-13B on GitHub to install. At the same time, huggingface.co provides the effect of ReluLLaMA-13B install, users can directly use ReluLLaMA-13B installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

ReluLLaMA-13B install url in huggingface.co:

https://huggingface.co/SparseLLM/ReluLLaMA-13B

Url of ReluLLaMA-13B

ReluLLaMA-13B huggingface.co Url

Provider of ReluLLaMA-13B huggingface.co

SparseLLM
ORGANIZATIONS

Other API from SparseLLM

huggingface.co

Total runs: 5
Run Growth: 4
Growth Rate: 80.00%
Updated:February 07 2024
huggingface.co

Total runs: 4
Run Growth: 3
Growth Rate: 75.00%
Updated:February 07 2024
huggingface.co

Total runs: 4
Run Growth: 2
Growth Rate: 50.00%
Updated:February 07 2024
huggingface.co

Total runs: 3
Run Growth: 0
Growth Rate: 0.00%
Updated:February 07 2024
huggingface.co

Total runs: 3
Run Growth: 1
Growth Rate: 33.33%
Updated:February 07 2024
huggingface.co

Total runs: 3
Run Growth: 1
Growth Rate: 33.33%
Updated:February 07 2024
huggingface.co

Total runs: 3
Run Growth: 2
Growth Rate: 66.67%
Updated:February 07 2024
huggingface.co

Total runs: 2
Run Growth: -1
Growth Rate: -50.00%
Updated:February 07 2024
huggingface.co

Total runs: 2
Run Growth: -1
Growth Rate: -50.00%
Updated:February 07 2024
huggingface.co

Total runs: 2
Run Growth: 1
Growth Rate: 50.00%
Updated:February 07 2024
huggingface.co

Total runs: 2
Run Growth: -3
Growth Rate: -150.00%
Updated:February 07 2024
huggingface.co

Total runs: 2
Run Growth: 1
Growth Rate: 50.00%
Updated:February 07 2024
huggingface.co

Total runs: 2
Run Growth: 1
Growth Rate: 50.00%
Updated:February 07 2024
huggingface.co

Total runs: 2
Run Growth: 0
Growth Rate: 0.00%
Updated:February 07 2024
huggingface.co

Total runs: 2
Run Growth: -2
Growth Rate: -100.00%
Updated:February 07 2024
huggingface.co

Total runs: 2
Run Growth: -1
Growth Rate: -50.00%
Updated:February 07 2024
huggingface.co

Total runs: 1
Run Growth: 0
Growth Rate: 0.00%
Updated:February 07 2024
huggingface.co

Total runs: 1
Run Growth: 0
Growth Rate: 0.00%
Updated:February 07 2024
huggingface.co

Total runs: 1
Run Growth: 0
Growth Rate: 0.00%
Updated:February 07 2024
huggingface.co

Total runs: 1
Run Growth: 0
Growth Rate: 0.00%
Updated:February 07 2024
huggingface.co

Total runs: 1
Run Growth: 0
Growth Rate: 0.00%
Updated:February 07 2024
huggingface.co

Total runs: 1
Run Growth: -1
Growth Rate: -100.00%
Updated:February 07 2024
huggingface.co

Total runs: 1
Run Growth: 0
Growth Rate: 0.00%
Updated:February 07 2024
huggingface.co

Total runs: 1
Run Growth: -1
Growth Rate: -100.00%
Updated:February 07 2024
huggingface.co

Total runs: 1
Run Growth: 0
Growth Rate: 0.00%
Updated:February 07 2024
huggingface.co

Total runs: 1
Run Growth: 0
Growth Rate: 0.00%
Updated:February 07 2024
huggingface.co

Total runs: 1
Run Growth: 0
Growth Rate: 0.00%
Updated:February 07 2024
huggingface.co

Total runs: 1
Run Growth: 0
Growth Rate: 0.00%
Updated:February 07 2024
huggingface.co

Total runs: 1
Run Growth: -4
Growth Rate: -400.00%
Updated:February 07 2024
huggingface.co

Total runs: 1
Run Growth: 0
Growth Rate: 0.00%
Updated:February 07 2024
huggingface.co

Total runs: 1
Run Growth: -1
Growth Rate: -100.00%
Updated:February 07 2024
huggingface.co

Total runs: 1
Run Growth: 0
Growth Rate: 0.00%
Updated:February 07 2024
huggingface.co

Total runs: 1
Run Growth: -2
Growth Rate: -200.00%
Updated:February 07 2024
huggingface.co

Total runs: 1
Run Growth: -3
Growth Rate: -300.00%
Updated:February 07 2024
huggingface.co

Total runs: 1
Run Growth: 0
Growth Rate: 0.00%
Updated:February 07 2024
huggingface.co

Total runs: 1
Run Growth: 0
Growth Rate: 0.00%
Updated:February 07 2024
huggingface.co

Total runs: 1
Run Growth: 0
Growth Rate: 0.00%
Updated:February 07 2024
huggingface.co

Total runs: 1
Run Growth: 0
Growth Rate: 0.00%
Updated:February 07 2024
huggingface.co

Total runs: 1
Run Growth: 0
Growth Rate: 0.00%
Updated:February 07 2024
huggingface.co

Total runs: 1
Run Growth: 0
Growth Rate: 0.00%
Updated:February 07 2024
huggingface.co

Total runs: 1
Run Growth: -2
Growth Rate: -200.00%
Updated:February 07 2024
huggingface.co

Total runs: 1
Run Growth: 0
Growth Rate: 0.00%
Updated:February 07 2024
huggingface.co

Total runs: 1
Run Growth: 0
Growth Rate: 0.00%
Updated:February 07 2024
huggingface.co

Total runs: 1
Run Growth: 0
Growth Rate: 0.00%
Updated:February 07 2024
huggingface.co

Total runs: 1
Run Growth: 0
Growth Rate: 0.00%
Updated:February 07 2024
huggingface.co

Total runs: 1
Run Growth: 0
Growth Rate: 0.00%
Updated:February 07 2024
huggingface.co

Total runs: 1
Run Growth: -1
Growth Rate: -100.00%
Updated:February 07 2024
huggingface.co

Total runs: 1
Run Growth: 0
Growth Rate: 0.00%
Updated:February 07 2024
huggingface.co

Total runs: 1
Run Growth: 0
Growth Rate: 0.00%
Updated:February 07 2024
huggingface.co

Total runs: 1
Run Growth: 0
Growth Rate: 0.00%
Updated:February 07 2024
huggingface.co

Total runs: 1
Run Growth: 0
Growth Rate: 0.00%
Updated:February 07 2024
huggingface.co

Total runs: 1
Run Growth: -1
Growth Rate: -100.00%
Updated:February 07 2024
huggingface.co

Total runs: 1
Run Growth: 0
Growth Rate: 0.00%
Updated:February 07 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:February 07 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:February 07 2024
huggingface.co

Total runs: 0
Run Growth: -1
Growth Rate: 0.00%
Updated:February 07 2024