Skip to content

Commit

Permalink
Update Stable Diffusion to match latest DeepSpeed-Inference (#229)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrwyattii authored Aug 29, 2023
1 parent 72b4898 commit ab9f39d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 4 additions & 0 deletions examples/local/txt2img-example.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
mii_configs = {
"tensor_parallel":
1,
"enable_cuda_graph":
True,
"replace_with_kernel_inject":
True,
"dtype":
"fp16",
"hf_auth_token":
Expand Down
2 changes: 0 additions & 2 deletions mii/models/load_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,6 @@ def load_models(task_name,
model_name,
task_name,
mii_config)
inf_config["replace_with_kernel_inject"] = False #not supported yet
inf_config["enable_cuda_graph"] = True
else:
raise ValueError(f"Unknown model provider {provider}")

Expand Down

0 comments on commit ab9f39d

Please sign in to comment.