jinjieyuan
commited on
Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language: en
|
3 |
+
license: apache-2.0
|
4 |
+
library_name: transformers
|
5 |
+
---
|
6 |
+
|
7 |
+
# SQFT Fine-tuned Model: sqft-sparsepeft-mistral-7b-v0.3-40-gsm8k-heu
|
8 |
+
|
9 |
+
- Base Model: [IntelLabs/sqft-mistral-7b-v0.3-40-base](https://huggingface.co/IntelLabs/sqft-mistral-7b-v0.3-40-base)
|
10 |
+
- Sparsity: 40%
|
11 |
+
- Quantization: No
|
12 |
+
- Finetune Method: SQFT + SparsePEFT
|
13 |
+
- Finetune data: [GSM8K](https://huggingface.co/datasets/openai/gsm8k)
|
14 |
+
- Sub-Adapter: Heuristic
|
15 |
+
|
16 |
+
### Evaluation
|
17 |
+
|
18 |
+
```bash
|
19 |
+
MODEL_NAME=IntelLabs/sqft-sparsepeft-mistral-7b-v0.3-40-gsm8k-heu
|
20 |
+
lm_eval --model hf --model_args pretrained=${MODEL_NAME},add_bos_token=True,trust_remote_code=True --tasks gsm8k --batch_size auto:4
|
21 |
+
```
|
22 |
+
|
23 |
+
Refer to our [repo](https://github.com/IntelLabs/Hardware-Aware-Automated-Machine-Learning/tree/main/SQFT) for the environment information to run this command.
|
24 |
+
|
25 |
+
## Model Sources
|
26 |
+
|
27 |
+
- **Repository:** [https://github.com/IntelLabs/Hardware-Aware-Automated-Machine-Learning/tree/main/SQFT](https://github.com/IntelLabs/Hardware-Aware-Automated-Machine-Learning/tree/main/SQFT)
|
28 |
+
- **Paper:** [SQFT: Low-cost Model Adaptation in Low-precision Sparse Foundation Models]()
|
29 |
+
|
30 |
+
## Citation
|
31 |
+
|
32 |
+
```bash
|
33 |
+
@article{munoz2024sqft,
|
34 |
+
title = {SQFT: Low-cost Model Adaptation in Low-precision Sparse Foundation Models},
|
35 |
+
author={J. Pablo Munoz and Jinjie Yuan and Nilesh Jain},
|
36 |
+
journal={},
|
37 |
+
year={2024}
|
38 |
+
}
|
39 |
+
```
|
40 |
+
|
41 |
+
## License
|
42 |
+
|
43 |
+
Apache-2.0
|