Skip to content

Commit 32a2ec4

Browse files
authored
[Stable Diffusion] Revive the tuned model (huggingface#506)
1 parent f4821d0 commit 32a2ec4

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

shark/examples/shark_inference/stable_diffusion/opt_params.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,8 @@ def get_unet():
2323
# Tuned model is present for `fp16` precision.
2424
if args.precision == "fp16":
2525
if args.use_tuned:
26-
sys.exit("The tuned version is in maintenance, stay tuned.")
2726
bucket = "gs://shark_tank/quinn"
28-
model_name = "unet_fp16_tunedv2"
29-
iree_flags += [
30-
"--iree-flow-enable-padding-linalg-ops",
31-
"--iree-flow-linalg-ops-padding-size=32",
32-
]
33-
# TODO: Pass iree_flags to the exported model.
34-
if args.import_mlir:
35-
return get_unet16_wrapped(model_name, iree_flags)
27+
model_name = "unet_22nov_fp16_tuned"
3628
return get_shark_model(bucket, model_name, iree_flags)
3729
else:
3830
bucket = "gs://shark_tank/prashant_nod"

0 commit comments

Comments
 (0)