jinjieyuan
commited on
Commit
•
ead54b3
1
Parent(s):
dbd1904
Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language: en
|
3 |
+
license: apache-2.0
|
4 |
+
---
|
5 |
+
|
6 |
+
# SQFT: Low-cost Model Adaptation in Low-precision Sparse Foundation Models
|
7 |
+
|
8 |
+
- Base Model: [IntelLabs/sqft-mistral-7b-v0.3-50-base-gptq](https://huggingface.co/IntelLabs/sqft-mistral-7b-v0.3-50-base-gptq)
|
9 |
+
- Sparsity: 50%
|
10 |
+
- Quantization: INT4 (GPTQ)
|
11 |
+
- Finetune Method: SQFT + QA-SparsePEFT
|
12 |
+
- Finetune data: [GSM8K](https://huggingface.co/datasets/openai/gsm8k)
|
13 |
+
- Sub-Adapter: Heuristic
|
14 |
+
|
15 |
+
### Evaluation
|
16 |
+
|
17 |
+
```bash
|
18 |
+
MODEL_PATH=IntelLabs/sqft-qa-sparsepeft-mistral-7b-v0.3-50-gptq-gsm8k-heu
|
19 |
+
lm_eval --model hf --model_args pretrained=${MODEL_PATH},add_bos_token=True,trust_remote_code=True --tasks gsm8k --batch_size auto:4
|
20 |
+
```
|
21 |
+
|
22 |
+
Refer to our [repo](https://github.com/IntelLabs/Hardware-Aware-Automated-Machine-Learning/tree/main/SQFT) for the environment information to run this command.
|
23 |
+
|