mirror of
https://github.com/mudler/LocalAI.git
synced 2025-04-25 13:29:58 +00:00
chore(docs): improve installer.sh docs (#5232)
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
parent
378161060c
commit
cc3df759f8
@ -103,9 +103,12 @@
|
|||||||
Run the installer script:
|
Run the installer script:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
# Basic installation
|
||||||
curl https://localai.io/install.sh | sh
|
curl https://localai.io/install.sh | sh
|
||||||
```
|
```
|
||||||
|
|
||||||
|
For more installation options, see [Installer Options](https://localai.io/advanced/installer/).
|
||||||
|
|
||||||
Or run with docker:
|
Or run with docker:
|
||||||
|
|
||||||
### CPU only image:
|
### CPU only image:
|
||||||
|
@ -34,4 +34,12 @@ List of the Environment Variables:
|
|||||||
| **FEDERATED** | Set to "true" to share the instance with the federation (p2p token is required see [documentation]({{%relref "docs/features/distributed_inferencing" %}})) |
|
| **FEDERATED** | Set to "true" to share the instance with the federation (p2p token is required see [documentation]({{%relref "docs/features/distributed_inferencing" %}})) |
|
||||||
| **FEDERATED_SERVER** | Set to "true" to run the instance as a federation server which forwards requests to the federation (p2p token is required see [documentation]({{%relref "docs/features/distributed_inferencing" %}})) |
|
| **FEDERATED_SERVER** | Set to "true" to run the instance as a federation server which forwards requests to the federation (p2p token is required see [documentation]({{%relref "docs/features/distributed_inferencing" %}})) |
|
||||||
|
|
||||||
|
## Uninstallation
|
||||||
|
|
||||||
|
To uninstall, run:
|
||||||
|
|
||||||
|
```
|
||||||
|
curl https://localai.io/install.sh | sh -s -- --uninstall
|
||||||
|
```
|
||||||
|
|
||||||
We are looking into improving the installer, and as this is a first iteration any feedback is welcome! Open up an [issue](https://github.com/mudler/LocalAI/issues/new/choose) if something doesn't work for you!
|
We are looking into improving the installer, and as this is a first iteration any feedback is welcome! Open up an [issue](https://github.com/mudler/LocalAI/issues/new/choose) if something doesn't work for you!
|
@ -18,12 +18,15 @@ If you are exposing LocalAI remotely, make sure you protect the API endpoints ad
|
|||||||
|
|
||||||
## Quickstart
|
## Quickstart
|
||||||
|
|
||||||
|
|
||||||
### Using the Bash Installer
|
### Using the Bash Installer
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
# Basic installation
|
||||||
curl https://localai.io/install.sh | sh
|
curl https://localai.io/install.sh | sh
|
||||||
```
|
```
|
||||||
|
|
||||||
|
See [Installer]({{% relref "docs/advanced/installer" %}}) for all the supported options
|
||||||
|
|
||||||
### Run with docker:
|
### Run with docker:
|
||||||
```bash
|
```bash
|
||||||
# CPU only image:
|
# CPU only image:
|
||||||
|
30
docs/static/install.sh
vendored
30
docs/static/install.sh
vendored
@ -1,12 +1,30 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# This script installs LocalAI on Linux.
|
# LocalAI Installer Script
|
||||||
# It detects the current operating system architecture and installs the appropriate version of LocalAI.
|
# This script installs LocalAI on Linux and macOS systems.
|
||||||
|
# It automatically detects the system architecture and installs the appropriate version.
|
||||||
|
|
||||||
# Usage:
|
# Usage:
|
||||||
# curl ... | ENV_VAR=... sh -
|
# Basic installation:
|
||||||
# or
|
# curl https://localai.io/install.sh | sh
|
||||||
# ENV_VAR=... ./install.sh
|
#
|
||||||
# To uninstall: ./install.sh --uninstall
|
# With environment variables:
|
||||||
|
# DOCKER_INSTALL=true USE_AIO=true API_KEY=your-key PORT=8080 THREADS=4 curl https://localai.io/install.sh | sh
|
||||||
|
#
|
||||||
|
# To uninstall:
|
||||||
|
# curl https://localai.io/install.sh | sh -s -- --uninstall
|
||||||
|
#
|
||||||
|
# Environment Variables:
|
||||||
|
# DOCKER_INSTALL - Set to "true" to install Docker images (default: auto-detected)
|
||||||
|
# USE_AIO - Set to "true" to use the all-in-one LocalAI image (default: false)
|
||||||
|
# API_KEY - API key for securing LocalAI access (default: none)
|
||||||
|
# PORT - Port to run LocalAI on (default: 8080)
|
||||||
|
# THREADS - Number of CPU threads to use (default: auto-detected)
|
||||||
|
# MODELS_PATH - Path to store models (default: /usr/share/local-ai/models)
|
||||||
|
# CORE_IMAGES - Set to "true" to download core LocalAI images (default: false)
|
||||||
|
# P2P_TOKEN - Token for P2P federation/worker mode (default: none)
|
||||||
|
# WORKER - Set to "true" to run as a worker node (default: false)
|
||||||
|
# FEDERATED - Set to "true" to enable federation mode (default: false)
|
||||||
|
# FEDERATED_SERVER - Set to "true" to run as a federation server (default: false)
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
set -o noglob
|
set -o noglob
|
||||||
|
Loading…
x
Reference in New Issue
Block a user