Skip to main content

ezlocalai is an easy to set up local artificial intelligence server with OpenAI Style Endpoints.

Project description

ezlocalai

GitHub Dockerhub

ezlocalai is an easy set up artificial intelligence server that easily exposes a list of local artificial intelligence models to choose from to run on your own computer. It is designed to be as easy as possible to get started with running local models. It automatically handles downloading the model of your choice and configuring the server based on your CPU, RAM, and GPU specifications. It also includes OpenAI Style endpoints for easy integration with other applications using ezlocalai as an OpenAI API proxy with any model. Additional functionality is built in for voice cloning text to speech and a voice to text for easy voice communication entirely offline after the initial setup.

Prerequisites

Additional Linux Prerequisites

Installation

git clone https://github.com/DevXT-LLC/ezlocalai
cd ezlocalai

Environment Setup

Expand Environment Setup if you would like to modify the default environment variables, otherwise skip to Usage. All environment variables are optional and have useful defaults. Change the default model that starts with ezlocalai in your .env file.

Environment Setup (Optional)

None of the values need modified in order to run the server. If you are using an NVIDIA GPU, I would recommend setting the GPU_LAYERS and MAIN_GPU environment variables. If you plan to expose the server to the internet, I would recommend setting the EZLOCALAI_API_KEY environment variable for security. THREADS is set to your CPU thread count minus 2 by default, if this causes significant performance issues, consider setting the THREADS environment variable manually to a lower number.

Modify the .env file to your desired settings. Assumptions will be made on all of these values if you choose to accept the defaults.

Replace the environment variables with your desired settings. Assumptions will be made on all of these values if you choose to accept the defaults.

  • EZLOCALAI_API_KEY - The API key to use for the server. If not set, the server will not require an API key when accepting requests.
  • DEFAULT_MODEL - The default model to use when no model is specified. Default is zephyr-7b-beta.
  • WHISPER_MODEL - The model to use for speech-to-text. Default is base.en.
  • AUTO_UPDATE - Whether or not to automatically update ezlocalai. Default is true.
  • THREADS - The number of CPU threads ezlocalai is allowed to use. Default is 4.
  • GPU_LAYERS (Only applicable to NVIDIA GPU) - The number of layers to use on the GPU. Default is 0. Your GPU_LAYERS will automatically determine a number of layers to use based on your GPU's memory if it is set to 0 and you have an NVIDIA GPU.
  • MAIN_GPU (Only applicable to NVIDIA GPU) - The GPU to use for the language model. Default is 0.

Usage

./start.ps1

For examples on how to use the server to communicate with the models, see the Examples Jupyter Notebook.

OpenAI Style Endpoint Usage

OpenAI Style endpoints available at http://<YOUR LOCAL IP ADDRESS>:8091/v1/ by default. Documentation can be accessed at that http://localhost:8091 when the server is running.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ezlocalai-0.1.3.tar.gz (20.4 kB view details)

Uploaded Source

Built Distribution

ezlocalai-0.1.3-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file ezlocalai-0.1.3.tar.gz.

File metadata

  • Download URL: ezlocalai-0.1.3.tar.gz
  • Upload date:
  • Size: 20.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for ezlocalai-0.1.3.tar.gz
Algorithm Hash digest
SHA256 8cd77fe16028ffe502902b2ade2a0d13351789a27296b57387a28ffffa742179
MD5 d5e8cb3838df701f5fc9df3121a215b4
BLAKE2b-256 9002463de99fed9ca992a5512e5d39668b63460c93deb517854b5a572ba76311

See more details on using hashes here.

File details

Details for the file ezlocalai-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: ezlocalai-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 11.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for ezlocalai-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d66a6b7aac4eb341b5eff73a7a5219c0060a648b0a2071a20eecf6b2cfdab9ad
MD5 d5b2072a6dfc2d660d381ebd3d7aa57f
BLAKE2b-256 bbdb33ff6d22b7fb596315aa6c3fd734485fcb35a96bad489c233be61574b7e9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page