From 10466b9bca40fb1cfc6813d575886419af33f46f Mon Sep 17 00:00:00 2001 From: qwerty108109 <97707491+qwerty108109@users.noreply.github.com> Date: Sun, 13 Apr 2025 14:04:32 -0700 Subject: [PATCH] Update README.md Modified the README.md to separate out the different docker run commands to make it easier to copy into the terminal. Signed-off-by: qwerty108109 <97707491+qwerty108109@users.noreply.github.com> --- README.md | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 00e83d8bb443..776fb1179d34 100644 --- a/README.md +++ b/README.md @@ -75,17 +75,21 @@ curl https://localai.io/install.sh | sh ``` Or run with docker: + +### CPU only image: ```bash -# CPU only image: docker run -ti --name local-ai -p 8080:8080 localai/localai:latest-cpu - -# Nvidia GPU: +``` +### Nvidia GPU: +```bash docker run -ti --name local-ai -p 8080:8080 --gpus all localai/localai:latest-gpu-nvidia-cuda-12 - -# CPU and GPU image (bigger size): +``` +### CPU and GPU image (bigger size): +```bash docker run -ti --name local-ai -p 8080:8080 localai/localai:latest - -# AIO images (it will pre-download a set of models ready for use, see https://localai.io/basics/container/) +``` +### AIO images (it will pre-download a set of models ready for use, see https://localai.io/basics/container/) +```bash docker run -ti --name local-ai -p 8080:8080 localai/localai:latest-aio-cpu ```