Spaces:
Paused
Paused
Update optimization.py
Browse files41 unmodified lines424344454645464739 unmodified lines8788899091929341 unmodified lines
@spaces.GPU(duration=1500) def compile_transformer():
quantize_(pipeline.text_encoder, Int8WeightOnlyConfig()) # Just to free-up some GPU memory with capture_component_call(pipeline, 'transformer') as call: pipeline(*args, **kwargs)39 unmodified lines compiled_portrait_2, )
quantize_(pipeline.text_encoder, Int8WeightOnlyConfig()) cl1, cl2, cp1, cp2 = compile_transformer()
def combined_transformer_1(*args, **kwargs):optimization.py+1-2