ProSparse: Introducing and Enhancing Intrinsic Activation Sparsity within Large Language Models
Paper • 2402.13516 • Published • 1
Run SparseLLM/prosparse-llama-2-13b-predictor on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Use HF Jobs to fine-tune https://huggingface.co/SparseLLM/prosparse-llama-2-13b-predictor. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Use HF Jobs to run batch inference with https://huggingface.co/SparseLLM/prosparse-llama-2-13b-predictor on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
How to use SparseLLM/prosparse-llama-2-13b-predictor with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("feature-extraction", model="SparseLLM/prosparse-llama-2-13b-predictor", trust_remote_code=True) # pip install -U transformers accelerate
# Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("SparseLLM/prosparse-llama-2-13b-predictor", trust_remote_code=True, device_map="auto")This repository provides a group of sparsity predictors serving for SparseLLM/ProSparse-LLaMA-2-13B.
Please kindly cite using the following BibTeX:
@article{song2024prosparse,
title={{ProSparse}: Introducing and Enhancing Intrinsic Activation Sparsity within Large Language Models},
author={Song, Chenyang and Han, Xu and Zhang, Zhengyan and Hu, Shengding and Shi, Xiyu and Li, Kuai and Chen, Chen and Liu, Zhiyuan and Li, Guangli and Yang, Tao and Sun, Maosong},
year={2024},
journal={arXiv preprint arXiv:2402.13516},
url={https://arxiv.org/pdf/2402.13516.pdf}
}