Skip to content

About

No description, website, or topics provided.

Resources

Stars

6 stars

Watchers

0 watching

Forks

Latest commit

 

History

68 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Local AI with Vulkan support Community Container for Nextcloud All-In-One

This container is used in the Nextcloud All-In-One AI backend for Nextcloud Assistant. It works with the Caddy community container as a reverse proxy.

Features

Compared to the default LocalAI container, this container provides:

  • Automatic configuration of Nextcloud Assistant.
  • Hardware acceleration support with Vulkan.
  • Easy access to the local AI web interface.

Getting Started

Prerequisites

You need:

  • A Nextcloud instance running on a server with x86_64 architecture.
  • At least 7GB of available storage space.
  • Ensure that port 10078 is not used by another program (use sudo netstat -tulpn to list all used ports).
  • Deploy the Caddy community container as a reverse proxy. (Other solutions are possible, see: Use Your Own Reverse Proxy).

For hardware acceleration (optional but recommended), you need:

  • A GPU compatible with Vulkan. Run vulkaninfo in the terminal to check if it is enabled.
  • Enable DRI device in AIO. Add --env NEXTCLOUD_ENABLE_DRI_DEVICE=true to the container.

Installation

See how to use community containers.

After installation on Nextcloud, go to https://ai.$NC_DOMAIN and log in with:

  • API key: Retrieve the password from the AIO interface

From the Local AI web interface, you can download and manage models. By default, no models are installed, so you need to download them manually. See Recommended Models below.

After downloading the models, configure the Local AI server in Nextcloud:

  1. Go to https://$NC_DOMAIN/settings/admin/ai
  2. Set the Local AI server URL to http://nextcloud-aio-local-ai:10078
  3. Setup API key authentication with the API key from above.
  4. Configure the models you want to use in the Nextcloud Assistant settings.

Recommended Models

Usage Model
Text generation Llama 3
Image generation Stable Diffusion
Audio transcription Whisper

Feedback and suggestions are welcome!

Use Your Own Reverse Proxy

Redirect HTTPS (or HTTP) traffic from ai.$NC_DOMAIN (or another subdomain) to port 10078 of the nextcloud-aio-local-ai container over HTTP.

Example with Caddyfile syntax:

https://ai.{$NC_DOMAIN}:443 {
    reverse_proxy http://{$LOCAL_AI_HOSTNAME}:10078
}

About

No description, website, or topics provided.

Resources

Stars

6 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages