Downloads · 30 days
106
12% of all-time downloads
luciodery/Bonsai-PrunedPhi-1.8B
Bonsai-PrunedPhi-1.8B is a machine learning model from luciodery. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as mit.
We prune the Phi-2 (2.7B) model to 35% sparsty (1.8B) and then finetune on 100K 2048 length sequences from the C4 dataset (https://huggingface.co/datasets/c4). Our pruning algorithm is described in the paper Everybody…
Downloads · 30 days
106
12% of all-time downloads
All-time downloads
853
Public
Parameters
1.9B
4.3 GB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors4.3 GB · 100%
How the weights are stored.
F161.6B · 86%
From the Hugging Face model README
We prune the Phi-2 (2.7B) model to 35% sparsty (1.8B) and then finetune on 100K 2048 length sequences from the C4 dataset (https://huggingface.co/datasets/c4). Our pruning algorithm is described in the paper Everybody Prune Now: Structured Pruning of LLMs with only Forward Passes. Code for pruning algorithm can be found here .
Model is derived from Pruning the Phi-2 Model
This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
Finetuned on 100K 2048 length sequences from the C4 dataset (https://huggingface.co/datasets/c4).
Full fine-tuning.
Distillation KL-Weight : 0.01
Learning Rate : 1e-4
Batch Size : 128
Optimzer : AdamW
Warmup Steps : 5
The model is licensed under the MIT license.
Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).
BibTeX:
@misc{dery2024everybody, title={Everybody Prune Now: Structured Pruning of LLMs with only Forward Passes}, author={Lucio Dery and Steven Kolawole and Jean-Francois Kagey and Virginia Smith and Graham Neubig and Ameet Talwalkar}, year={2024}, eprint={2402.05406}, archivePrefix={arXiv}, primaryClass={cs.LG} }
Lucio Dery: [email protected]