Downloads · 30 days
11
31% of all-time downloads
RichardErkhov/SparseLLM_-_reglu-90B-8bits
SparseLLM_-_reglu-90B-8bits is a machine learning model from RichardErkhov. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Downloads · 30 days
11
31% of all-time downloads
All-time downloads
36
Public
Parameters
1.3B
1.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.5 GB · 100%
How the weights are stored.
I81.2B · 90%
From the Hugging Face model README
Quantization made by Richard Erkhov.
reglu-90B - bnb 8bits
language:
Sparse computation is increasingly recognized as an important direction in enhancing the computational efficiency of large language models (LLMs).
Prior research has demonstrated that LLMs utilizing the ReLU activation function exhibit sparse activations. Interestingly, our findings indicate that models based on SwiGLU also manifest sparse activations.
This phenomenon prompts an essential question: Which activation function is optimal for sparse LLMs? Although previous works on activation function selection have focused on the performance of LLMs, we argue that the efficiency of sparse computation should also be considered so that the LLMs can proceed with efficient inference while preserving performance.
To answer this question, we pretrain 4 LLMs with different activation functions, including ReLU, SwiGLU, ReGLU, and Squared ReLU to do more comprehensive experiments.
We pretrain the model on 100 billion tokens, including:
| Parameter | Value |
|---|---|
| Batch_Size | 4M |
| GPUs | 64xA100(80G) |
| LR_Scheduler | cosine |
| LR | 3e-4 |
Please kindly cite using the following BibTeX:
@article{zhang2024relu2,
title={ReLU$^2$ Wins: Discovering Efficient Activation Functions for Sparse LLMs},
author={Zhengyan Zhang and Yixin Song and Guanghui Yu and Xu Han and Yankai Lin and Chaojun Xiao and Chenyang Song and Zhiyuan Liu and Zeyu Mi and Maosong Sun},
journal = {arXiv preprint arXiv:2402.03804},
year={2024},
}