Views
No views yet
pip install pruna1from pruna import PrunaModel
2
3loaded_model = PrunaModel.from_hub(
4 "AINovice2005/medgemma-4b-it-smashed"
5)smash_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 "factorizer": null,
6 "pruner": null,
7 "quantizer": "llm_int8",
8 "llm_int8_compute_dtype": "bfloat16",
9 "llm_int8_double_quant": false,
10 "llm_int8_enable_fp32_cpu_offload": false,
11 "llm_int8_has_fp16_weight": false,
12 "llm_int8_quant_type": "fp4",
13 "llm_int8_threshold": 6.0,
14 "llm_int8_weight_bits": 8,
15 "batch_size": 1,
16 "device": "cuda",
17 "device_map": null,
18 "save_fns": [],
19 "load_fns": [
20 "transformers"
21 ],
22 "reapply_after_load": {
23 "factorizer": null,
24 "pruner": null,
25 "quantizer": null,
26 "cacher": null,
27 "compiler": null,
28 "batcher": null
29 }
30}