manbeast3b commited on
Commit
bca4fd6
·
verified ·
1 Parent(s): eed3bac

Update src/pipeline.py

Browse files
Files changed (1) hide show
  1. src/pipeline.py +2 -1
src/pipeline.py CHANGED
@@ -33,7 +33,8 @@ def load_pipeline() -> Pipeline:
33
  quantize_(vae, int8_weight_only())
34
  for name, module in vae.named_modules():
35
  if isinstance(module, torch.nn.Linear):
36
- prune.l1_unstructured(module, 'weight', amount=0.1)
 
37
  pipeline = DiffusionPipeline.from_pretrained(
38
  ckpt_id,
39
  vae=vae,
 
33
  quantize_(vae, int8_weight_only())
34
  for name, module in vae.named_modules():
35
  if isinstance(module, torch.nn.Linear):
36
+ prune.random_unstructured(module, name="weight", amount=0.2)
37
+ # prune.l1_unstructured(module, 'weight', amount=0.1)
38
  pipeline = DiffusionPipeline.from_pretrained(
39
  ckpt_id,
40
  vae=vae,