This example is based on the xpu implementation of Intel Arc A-Series dGPU and Ultra iGPU
Welcome to AI Playground beta open source project and AI PC starter app for doing AI image creation, image stylizing, and chatbot on a PC powered by an Intel® Arc™ GPU. AI Playground leverages libraries from GitHub and Huggingface which may not be available in all countries world-wide.
- English (readme.md)
AI Playground beta is currently available as a packaged installer, or available as a source code from our Github repository. To run AI Playground you must have a PC that meets the following specifications
- Windows OS
- Intel Core Ultra-H Processor (coming soon) OR Intel Arc GPU (discrete) with 8GB of vRAM
AI Playground has multiple packaged installers, each specific to the hardware.
- Choose the correct installer (for Desktop systems with Intel Arc GPUs,or for Intel Core Ultra-H systems), download to your PC then run the installer.
- The installer will have two phases. It will first install components and environment from the installer. The second phase will pull in components from their source. This second phase of installation will take several minutes and require a steady internet connection.
- On first run, the load screen will take up to a minute
- Download the Users Guide for application information
-
AI Playground for Desktop-dGPU - Release Notes | Download
-
AI Playground for Intel Core Ultra-H - coming soon.
- Create and switch the conda environment and go to the service directory.
conda create -n aipg_xpu python=3.10 -y
activate aipg_xpu
pip install -r requirements.txt
- Download the Intel Extension For Pytorch* AOT Packages. Depending on your hardware, download cp310 whl files from the links below.
Core Ultra-H https://github.com/Nuullll/intel-extension-for-pytorch/releases/tag/v2.1.20%2Bmtl%2Boneapi
The Arc A - Series dGPU https://github.com/Nuullll/intel-extension-for-pytorch/releases/tag/v2.1.10%2Bxpu
Install all downloaded whl files using the pip install command
- Check whether the XPU environment is correct
python -c "import torch; import intel_extension_for_pytorch as ipex; print(torch.version); print(ipex.version); [print(f'[{i}]: {torch.xpu.get_device_properties(i)}') for i in range(torch.xpu.device_count())];"
-
Switch to the root directory of the project. (AI-Playground)
-
Run the following command to view the path of the conda virtual environment
on windows
conda env list|findstr aipg_xpu
- Based on the obtained environment path, run the following command to create an env file link on windows
mklink /J "./env" "{aipg_xpu_env_path}"
-
Install Nodejs development environment, you can get it from https://nodejs.org/en/download.
-
Switch to the WebUI directory and install all Nodejs dependencies.
npm install
- In the WebUI directory, run the below command to get started with development
npm run dev
AI Playground supports PyTorch LLM, SD1.5, and SDXL models. AI Playground does not ship with any models but does make models available for all features either directly from the interface or indirectly by the users downloading models from HuggingFace.com of CivitAI.com and placing them in the appropriate model folder.
Models currently linked from the application
Model | License | Background Information/Model Card |
---|---|---|
Dreamshaper 8 Model | license | site |
Dreamshaper 8 Inpainting Model | license | site |
JuggernautXL v9 Model | license | site |
Phi3-mini-4k-instruct | license | site |
bge-large-en-v1.5 | license | site |
Latent Consistency Model (LCM) LoRA: SD1.5 | license | site |
Latent Consistency Model (LCM) LoRA:SDXL | license | site |
Be sure to check license terms for any model used in AI Playground especially taking note of any restrictions.
Check the User Guide for details or watch this video on how to add alternative Stable Diffusion models to AI Playground
For information on AI Playground terms, license and disclaimers, visit the project and files on GitHub repo:
License | Notices & Disclaimers
The software may include third party components with separate legal notices or governed by other agreements, as may be described in the Third Party Notices file accompanying the software.