-
Notifications
You must be signed in to change notification settings - Fork 191
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build+docs: Make ollama optional (#671)
- Loading branch information
Showing
6 changed files
with
62 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
services: | ||
ollama: | ||
image: ollama/ollama:${OLLAMA__VERSION} | ||
ports: | ||
- 11434:11434 | ||
volumes: | ||
- ollama:/root/.ollama | ||
|
||
volumes: | ||
ollama: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
--- | ||
title: Self-hosted LLMs | ||
description: Learn how to self-host LLMs in Tracecat with Ollama. | ||
--- | ||
|
||
## Prerequisites | ||
|
||
- Basic Tracecat deployment with [Docker Compose](/self-hosting/deployment-options/docker-compose) | ||
- Minimum 10GB of disk space | ||
|
||
## Instructions | ||
|
||
<Note> | ||
Deploying self-hosted LLMs is resource intensive with large downloads and large model weights. | ||
The Ollama Docker image is 1.5GB+ large and model weights can vary greatly in size. | ||
|
||
Only models less than 5GB in size are currently supported. | ||
</Note> | ||
|
||
Tracecat supports self-hosted LLMs through [Ollama](https://ollama.ai/). | ||
|
||
Supported models: | ||
|
||
- [`llama3.2`](https://ollama.com/library/llama3.2): 1.3GB | ||
- [`llama3.2:1b`](https://ollama.com/library/llama3.2): 2.0GB | ||
|
||
<Steps> | ||
<Step title="Configure open source models"> | ||
Specify the open source models you wish to use in Tracecat by setting the `TRACECAT__PRELOAD_OSS_MODELS` environment variable in the `.env` file. | ||
|
||
For example, to preload the `llama3.2` model, set the following: | ||
``` | ||
TRACECAT__PRELOAD_OSS_MODELS=llama3.2 | ||
``` | ||
</Step> | ||
<Step title="Deploy"> | ||
Deploy Tracecat with the Ollama docker compose extension: | ||
```bash | ||
docker compose up -f docker-compose.yml -f docker-compose.ollama.yml up -d | ||
``` | ||
</Step> | ||
<Step title="AI Action"> | ||
You can now use Tracecat's AI action to call your preloaded open source LLMs. | ||
For example, to call the `llama3.2` model, you can specify the following arguments: | ||
 | ||
</Step> | ||
</Steps> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters