File size: 1,795 Bytes
955de36
 
 
6b06764
 
 
955de36
 
f98efa3
955de36
 
 
 
 
 
 
 
 
 
 
 
 
f98efa3
 
955de36
f98efa3
955de36
 
 
 
f98efa3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
---
language: en
license: apache-2.0
base_model:
- IntelLabs/sqft-phi-3-mini-4k-50-base-gptq
library_name: peft
---

# SQFT Fine-tuned Model: sqft-phi-3-mini-4k-50-gptq-math-heu-adapter

- Base Model: [IntelLabs/sqft-phi-3-mini-4k-50-base-gptq](https://huggingface.co/IntelLabs/sqft-phi-3-mini-4k-50-base-gptq)
- Sparsity: 50%
- Quantization: INT4 (GPTQ)
- Finetune Method: SQFT
- Finetune data: 10K instruction-following math reasoning training dataset from [LLM-Adapters](https://github.com/AGI-Edgerunners/LLM-Adapters) ([math_10k.json](https://github.com/AGI-Edgerunners/LLM-Adapters/blob/main/ft-training_set/math_10k.json))
- Sub-Adapter: Heuristic

### Evaluation

```bash
git clone https://github.com/IntelLabs/Hardware-Aware-Automated-Machine-Learning.git haaml && cd haaml/SQFT

BASE_MODEL_NAME=IntelLabs/sqft-phi-3-mini-4k-50-base-gptq
ADAPTER_MODEL_NAME=IntelLabs/sqft-phi-3-mini-4k-50-gptq-math-heu-adapter
OUTPUT_DIR=./results
python eval/evaluate_math.py --base_model_path ${BASE_MODEL_NAME} --adapter_model_path ${ADAPTER_MODEL_NAME} --output_dir ${OUTPUT_DIR}
```

Refer to our [repo](https://github.com/IntelLabs/Hardware-Aware-Automated-Machine-Learning/tree/main/SQFT) for the environment information to run this command.

## Model Sources

- **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)
- **Paper:** [SQFT: Low-cost Model Adaptation in Low-precision Sparse Foundation Models]()

## Citation

```bash
@article{munoz2024sqft,
  title = {SQFT: Low-cost Model Adaptation in Low-precision Sparse Foundation Models},
  author={J. Pablo Munoz and Jinjie Yuan and Nilesh Jain},
  journal={},
  year={2024}
}
```

## License

Apache-2.0