Skip to content

Latest commit

 

History

History
64 lines (45 loc) · 2.96 KB

config-local-localai.md

File metadata and controls

64 lines (45 loc) · 2.96 KB

Run your models with LocalAI x big-AGI

LocalAI lets you run your AI models locally, or in the cloud. It supports text, image, asr, speech, and more models.

We are deepening the integration between the two products. As of the time of writing, we integrate the following features:

Last updated Feb 21, 2024

Guide

LocalAI installation and configuration

Follow the guide at: https://localai.io/basics/getting_started/

  • verify it works by browsing to http://localhost:8080/v1/models (or the IP:Port of the machine, if running remotely) and seeing listed the model(s) you downloaded listed in the JSON response.

Integration: chat with LocalAI

  • Go to Models > Add a model source of type: LocalAI
  • Enter the default address: http://localhost:8080, or the address of your localAI cloud instance configure models
    • If running remotely, replace localhost with the IP of the machine. Make sure to use the IP:Port format
  • Load the models (click on Models 🔄)
  • Select the model and chat

In addition to using the UI, configuration can also be done using environment variables.

Integration: Models Gallery

If the running LocalAI instance is configured with a Model Gallery:

  • Go to Models > LocalAI
  • Click on Gallery Admin
  • Select the models to install, and view installation progress img.png

Troubleshooting

Unknown Context Window Size

At the time of writing, LocalAI does not publish the model context window size. Every model is assumed to be capable of chatting, and with a context window of 4096 tokens. Please update the src/modules/llms/transports/server/openai/models.data.ts file with the mapping information between LocalAI model IDs and names/descriptions/tokens, etc.

🤝 Support