Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Stable Diffusion examples on GPU and CPU #11166

Merged
merged 9 commits into from
Jun 12, 2024
Merged

Add Stable Diffusion examples on GPU and CPU #11166

merged 9 commits into from
Jun 12, 2024

Conversation

ivy-lv11
Copy link
Contributor

Add Stable Diffusion examples on GPU and CPU


### 1. Installation
#### 1.1 Installation on Linux
We suggest using conda to manage environment.
Copy link
Contributor

@shane-huang shane-huang May 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

separate ipex-llm installation from diffusers dependences. Like below:

1.1. Install IPEX-LLM

Follow the instructions in IPEX-GPU installation guides (Linux Guide, Windows Guide) according to your system to install IPEX-LLM. After the installation, you should have created a conda environment, named diffusion for instance

1.2 Install dependencies for Stable Diffusion

Assume you have created a conda environment named diffusion with ipex-llm installed. Run below commands to install dependencies for running Stable Diffusion.

conda activate diffusion
pip install ...
...

#### 1.1 Installation on Linux
We suggest using conda to manage environment.
```bash
conda create -n diffusion python=3.11
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove the conda env creation part but use conda activate diffusion instead, as ipex-llm installation part has created it.

python/llm/example/CPU/StableDiffusion/README.md Outdated Show resolved Hide resolved
Copy link
Contributor

@shane-huang shane-huang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@shane-huang
Copy link
Contributor

add one generated picture?

@ivy-lv11
Copy link
Contributor Author

add one generated picture?

Add figure generated by sdxl-base-1.0

@shane-huang shane-huang merged commit e7a4e22 into intel-analytics:main Jun 12, 2024
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants