JVice commited on
Commit
1f43872
1 Parent(s): 86c0237

Update model_loading.py

Browse files
Files changed (1) hide show
  1. model_loading.py +0 -1
model_loading.py CHANGED
@@ -46,7 +46,6 @@ def import_model(modelID, modelType):
46
  elif modelType == 'FluxPipeline':
47
  from diffusers import FluxPipeline
48
  T2IModel = FluxPipeline.from_pretrained(modelID, torch_dtype=torch.bfloat16)
49
- T2IModel.enable_model_cpu_offload()
50
  else:
51
  from diffusers import AutoPipelineForText2Image
52
  T2IModel = AutoPipelineForText2Image.from_pretrained(modelID, torch_dtype=torch.float16)
 
46
  elif modelType == 'FluxPipeline':
47
  from diffusers import FluxPipeline
48
  T2IModel = FluxPipeline.from_pretrained(modelID, torch_dtype=torch.bfloat16)
 
49
  else:
50
  from diffusers import AutoPipelineForText2Image
51
  T2IModel = AutoPipelineForText2Image.from_pretrained(modelID, torch_dtype=torch.float16)