Views
No views yet
pip install pruna_pro1from pruna_pro import PrunaProModel
2
3loaded_model = PrunaProModel.from_pretrained(
4 "loulou2/tiny_llama_higgs"
5)
6# we can then run inference using the methods supported by the base modelsmash_config.json file, which describes the optimization methods that were applied to the model.1{
2 "batcher": null,
3 "cacher": null,
4 "compiler": null,
5 "distiller": null,
6 "distributer": null,
7 "enhancer": null,
8 "factorizer": null,
9 "kernel": null,
10 "pruner": null,
11 "quantizer": "higgs",
12 "recoverer": null,
13 "higgs_group_size": 256,
14 "higgs_hadamard_size": 1024,
15 "higgs_p": 2,
16 "higgs_weight_bits": 4,
17 "batch_size": 1,
18 "device": "cuda",
19 "device_map": null,
20 "save_fns": [
21 "transformers_higgs"
22 ],
23 "load_fns": [
24 "transformers_higgs"
25 ],
26 "reapply_after_load": {
27 "factorizer": null,
28 "pruner": null,
29 "quantizer": null,
30 "distiller": null,
31 "kernel": null,
32 "cacher": null,
33 "recoverer": null,
34 "distributer": null,
35 "compiler": null,
36 "batcher": null,
37 "enhancer": null
38 }
39}