5 Commits

Author SHA1 Message Date
humu789
dcf7bfa1a2
[Feature] Add GPTQ and uniform interfaces (#538)
* add gptq implementation

* pre-checkout

* passed resnet example

* passed llama example

* aglin gptq acc

* add activation quantization

* uniform interfaces

* add gptq readme

* update mmrazor_large redame

* add gptq opt example

* fix sparse_gpt example for opt

* fix import Protocol from py37

* fix error function name

* fix bug in test

* fix bug

* fix bug

* limit sparsegpt test with torch>=1.12

* add docstring for gptq and sparse_gpt

* pre-commit

* align acc & add save load ckpt & add ut

* fix ut

* fix ut

* fix ut

* fix ut & add torch2.0 for ci

* del torch2.0 for ci

* fix ut

---------

Co-authored-by: FIRST_NAME LAST_NAME <MY_NAME@example.com>
2023-05-24 16:38:51 +08:00
LKJacky
cea39c0aa2
Lk large (#510)
* update

* update

---------

Co-authored-by: liukai <your_email@abc.example>
2023-04-17 10:55:55 +08:00
LKJacky
316977b036
add sparse gpt (#499)
init

Co-authored-by: liukai <your_email@abc.example>
2023-04-11 16:14:35 +08:00
LKJacky
9446b301a3
Inhence groupfisher (#474)
* update

* update

* add pose

* update

* fix bug in mmpose demo input

* add dist

* add config

* update

* update for deploy

* fix bug

* remove dist and make no positional warn only once

* fix bug

* update

* fix for ci

* update readme

---------

Co-authored-by: liukai <your_email@abc.example>
2023-03-09 16:34:28 +08:00
LKJacky
7acc046678
Add GroupFisher pruning algorithm. (#459)
* init

* support expand dwconv

* add tools

* init

* add import

* add configs

* add ut and fix bug

* update

* update finetune config

* update impl imports

* add deploy configs and result

* add _train_step

* detla_type -> normalization_type

* change img link

* add prune to config

* add json dump when GroupFisherSubModel init

* update prune config

* update finetune config

* update deploy config

* update prune config

* update readme

* mutable_cfg -> fix_subnet

* update readme

* impl -> implementations

* update script.sh

* rm gen_fake_cfg

* add Implementation to readme

* update docstring

* add finetune_lr to config

* update readme

* fix error in config

* update links

* update configs

* refine

* fix spell error

* add test to readme

* update README

* update readme

* update readme

* update cite format

* fix for ci

* update to pass ci

* update readme

---------

Co-authored-by: liukai <your_email@abc.example>
Co-authored-by: Your Name <you@example.com>
2023-02-20 14:29:42 +08:00