Before you begin, make sure your system meets the following requirements:
System Requirements
çš„ MacOS
AndWindows
It is recommended to use a system with a modern processor (Intel i5/AMD Ryzen 5 or above is recommended) and at least 4GB of RAM to run Lemon AI.
Deployment Method 2: deploy Lemon AI with Docker command (applicable to users who can access the Docker official website)
I. Installing WSL
1. Prerequisites
You must be running Windows 10 version 2004 and later (build 19041 and later) or Windows 11 to use the following commands. If you are using an earlier version, see.
2.() command
Everything you need to run WSL can now be installed with a single command. Right-click and select "run as administrator", open the PowerShell or Windows Command Prompt in administrator mode, enter the wsl -- install Command, and restart the computer.
WSL -- Install
The first time you start a newly installed Linux distribution, a console window opens and prompts you to wait for the files to be unzipped and stored on your computer. The startup process should take less than a second afterwards.
3.wsl --versionRun in powershell and confirmDefault Version: 2.
wsl --version
4. After the installation is completed, restart the computer, and WSL can be seen in the computer application.
2. Install Docker Desktop
2. After downloading, install the software installation process. After the installation is complete, double-click to start Docker, install according to the instructions of the client, and keep running and starting after the installation is complete.
3. Open Docker Desktop and goSettingsAnd confirm the following:
Regular:Use the WSL 2 based engineEnabled.
Resources> WSL integration:Enable integration with my default WSL distroEnabled.
3. Launch the Lemon AI application
1. In the windows computer application, to start WSL, the following docker command for starting the application must be run in the WSL terminal.
2. Enter commands in order in WSL, start executing commands, and wait for execution to complete.
Enter in WSL and execute the pull Lemon AI sandbox command
Dockerpull hexdo lemonai/lemon-runtime Sandbox: latest
If the following error occurs when executing the pull command, it proves that the pull fails (it may not have the ability to access the external network). It is recommended to use the first method to download the network disk directly for installation.
After the sandbox pull command is executed, continue to enter and run the Lemon AI program command in WSL.
docker run -it --rm --pull=always \ --name lemon-app \ --env DOCKER_HOST_ADDR=host.docker.internal \ --env ACTUAL_HOST_WORKSPACE_PATH=${WORKSPACE_BASE:-$PWD/workspace} \ --publish 5005:5005 \ --add-host host.Docker.internal:host-gateway \ --Volume /var/run/docker.sock:/var/run/docker.sock \ --Volume ~/.cache:/.cache \ --volume ${WORKSPACE_BASE:-$PWD/workspace}:/app/workspace \ --volume ${WORKSPACE_BASE:-$PWD/data}:/app/data \ --interactive \ --tty \ hexdolemonai/lemon:latest make run
3. After the command is executed, docker will display the Lemon-app file, copy the access link in the terminal or Lemon-app in Containers in docker, click the port link, and jump to the page for access.
4. On the local Web page of Lemon AI, you need to configure the self-subscription model service, search service and default model in turn in the settings. After the configuration is completed, you can have the Lemon AI task question-and-answer experience.
This command will enable the features required to run WSL and install the Ubuntu distribution of Linux. ()。
If you are running an older version, or just don't want to use the installation command and want step-by-step instructions, see.
(Official website:), to download the Docker corresponding to windows for docker installation.