mirror of
https://github.com/mudler/LocalAI.git
synced 2025-02-14 14:41:56 +00:00
chore(docs): add nvidia l4t instructions (#4454)
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
parent
a3b675b09e
commit
cab9f88ca4
35
docs/content/docs/reference/nvidia-l4t.md
Normal file
35
docs/content/docs/reference/nvidia-l4t.md
Normal file
@ -0,0 +1,35 @@
|
||||
|
||||
+++
|
||||
disableToc = false
|
||||
title = "Running on Nvidia ARM64"
|
||||
weight = 27
|
||||
+++
|
||||
|
||||
LocalAI can be run on Nvidia ARM64 devices, such as the Jetson Nano, Jetson Xavier NX, and Jetson AGX Xavier. The following instructions will guide you through building the LocalAI container for Nvidia ARM64 devices.
|
||||
|
||||
## Prerequisites
|
||||
|
||||
- Docker engine installed (https://docs.docker.com/engine/install/ubuntu/)
|
||||
- Nvidia container toolkit installed (https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html#installing-with-ap)
|
||||
|
||||
## Build the container
|
||||
|
||||
Build the LocalAI container for Nvidia ARM64 devices using the following command:
|
||||
|
||||
```bash
|
||||
git clone https://github.com/mudler/LocalAI
|
||||
|
||||
cd LocalAI
|
||||
|
||||
docker build --build-arg SKIP_DRIVERS=true --build-arg BUILD_TYPE=cublas --build-arg BASE_IMAGE=nvcr.io/nvidia/l4t-jetpack:r36.4.0 --build-arg IMAGE_TYPE=core -t localai-orin .
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
Run the LocalAI container on Nvidia ARM64 devices using the following command, where `/data/models` is the directory containing the models:
|
||||
|
||||
```bash
|
||||
docker run -e DEBUG=true -p 8080:8080 -v /data/models:/build/models -ti --restart=always --name local-ai --runtime nvidia --gpus all localai-orin
|
||||
```
|
||||
|
||||
Note: `/data/models` is the directory containing the models. You can replace it with the directory containing your models.
|
Loading…
x
Reference in New Issue
Block a user