jokerbit commited on
Commit
9aad41a
·
verified ·
1 Parent(s): 727e541

Update config

Browse files
Files changed (1) hide show
  1. src/pipeline.py +8 -2
src/pipeline.py CHANGED
@@ -14,6 +14,12 @@ from transformers import T5EncoderModel, CLIPTextModel
14
 
15
  Pipeline: TypeAlias = FluxPipeline
16
  torch.backends.cudnn.benchmark = True
 
 
 
 
 
 
17
 
18
  CHECKPOINT = "jokerbit/flux.1-schnell-Robert-int8wo"
19
  REVISION = "5ef0012f11a863e5111ec56540302a023bc8587b"
@@ -41,9 +47,9 @@ def load_pipeline() -> Pipeline:
41
  vae=vae,
42
  local_files_only=True,
43
  torch_dtype=torch.bfloat16,
44
- ).to("cuda")
45
 
46
- # pipeline.vae.to(memory_format=torch.channels_last)
47
  # quantize_(pipeline.vae, int8_weight_only())
48
  # pipeline.vae = torch.compile(pipeline.vae, mode="reduce-overhead")
49
  # pipeline.to("cuda")
 
14
 
15
  Pipeline: TypeAlias = FluxPipeline
16
  torch.backends.cudnn.benchmark = True
17
+ torch.backends.cudnn.benchmark = True
18
+ torch._inductor.config.conv_1x1_as_mm = True
19
+ torch._inductor.config.coordinate_descent_tuning = True
20
+ torch._inductor.config.epilogue_fusion = False
21
+ torch._inductor.config.coordinate_descent_check_all_directions = True
22
+ os.environ['PYTORCH_CUDA_ALLOC_CONF']="expandable_segments:True"
23
 
24
  CHECKPOINT = "jokerbit/flux.1-schnell-Robert-int8wo"
25
  REVISION = "5ef0012f11a863e5111ec56540302a023bc8587b"
 
47
  vae=vae,
48
  local_files_only=True,
49
  torch_dtype=torch.bfloat16,
50
+ )
51
 
52
+ # pipeline.transformer.to(memory_format=torch.channels_last)
53
  # quantize_(pipeline.vae, int8_weight_only())
54
  # pipeline.vae = torch.compile(pipeline.vae, mode="reduce-overhead")
55
  # pipeline.to("cuda")