The following provides the steps to install Lemonade from source code. We also provide 2 alternative ways to install Lemonade:
- To install Lemonade via PyPi, see the Lemonade README.
- To install Lemonade Server using the standalone GUI installer, see the Lemonade Server Installer README.
-
Clone:
git clone https://github.com/onnx/turnkeyml.git -
cd turnkeyml(whereturnkeymlis the repo root of your clone)- Note: be sure to run these installation instructions from the repo root.
-
Create and activate a Miniconda environment.
conda create -n lemon python=3.10
conda activate lemon
-
Install Lemonade for your backend of choice:
-
OnnxRuntime GenAI with CPU backend:
pip install -e .[llm-oga-cpu]
-
OnnxRuntime GenAI with Integrated GPU (iGPU, DirectML) backend:
Note: Requires Windows and a DirectML-compatible iGPU.
pip install -e .[llm-oga-igpu]
-
OnnxRuntime GenAI with Ryzen AI Hybrid (NPU + iGPU) backend:
Note: Ryzen AI Hybrid requires a Windows 11 PC with an AMD Ryzen™ AI 300-series processor.
- Ensure you have the correct driver version installed by checking here.
- Visit the AMD Hugging Face OGA Hybrid collection for supported checkpoints.
pip install -e .[llm-oga-hybrid]
lemonade-install --ryzenai hybrid
-
Hugging Face (PyTorch) LLMs for CPU backend:
pip install -e .[llm]
-
llama.cpp: see instructions.
-
-
Use
lemonade -hto explore the LLM tools, and see the commands and APIs in the Lemonade SDK REAMDE.