https://github.com/modeltc/fcpts
https://github.com/modeltc/fcpts
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/modeltc/fcpts
- Owner: ModelTC
- Created: 2023-12-18T05:38:19.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-14T07:19:01.000Z (almost 2 years ago)
- Last Synced: 2025-02-14T19:51:54.053Z (12 months ago)
- Language: Python
- Size: 52.7 KB
- Stars: 3
- Watchers: 7
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# FCPTS
This is the official implementation of "Fast and Controllable Post-training Sparsity: Learning Optimal Sparsity Allocation with Global Constraint in Minutes"
The paper link is : [FCPTS](https://arxiv.org/abs/2405.05808)
The repo depends on [msbench](https://github.com/ModelTC/msbench)
## start
```
git clone https://github.com/ModelTC/FCPTS.git
git clone https://github.com/ModelTC/msbench.git
cd FCPTS
# modify run.sh
bash run.sh
```
The core code:
```
class FCPTSMaskGenerator in msbench/mask_generator.py
class SparsityConstrain in FCPTS/main.py
```