This Pull Request presents a Makefile and LLM Update Script designed to improve the workflow of managing and updating Large Language Models (LLMs) in Docker containers.
Main characteristics
Makefile: Provides a set of commands for automated management of Docker containers, making it easier to manage common tasks such as starting, stopping, and deleting containers. The Makefile includes the following commands:
install: Starts containers using docker-compose up -d.
remove: Stop and remove containers and volumes with docker-compose down -v.
start/stop: Commands to manage the state of containers.
update: Pulls the latest changes from the git repository, rebuilds and restarts the containers. This also includes running the new LLM update script to ensure that all installed LLMs are up to date.
LLM Update Script (update_llm.sh): Automates the process of retrieving and updating each LLM installed in the Docker container. This script dynamically retrieves the list of installed LLMs and updates them with the latest versions, ensuring that the models are up to date and reducing the risk of version-related issues.
Motivation
The motivation behind this contribution is to streamline the LLM management process within Dockerized environments.
By automating container updates and management, developers can focus more on development and less on maintenance tasks.
Additionally, it is crucial to ensure that LLMs are kept up to date to take advantage of the latest security improvements and patches.
This contribution is aimed at developers and teams working with LLMs in Docker containers, providing them with tools to improve their efficiency and the maintainability of their projects.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/open-webui/open-webui/pull/848
**Author:** [@Patrice-Gaudicheau](https://github.com/Patrice-Gaudicheau)
**Created:** 2/22/2024
**Status:** ✅ Merged
**Merged:** 2/28/2024
**Merged by:** [@tjbck](https://github.com/tjbck)
**Base:** `dev` ← **Head:** `feat-makefile-llm-update`
---
### 📝 Commits (5)
- [`5adff77`](https://github.com/open-webui/open-webui/commit/5adff7767f1dcbc6dca77dff32e9f0deeb248705) Adding Makefile and LLM update script
- [`6bc627b`](https://github.com/open-webui/open-webui/commit/6bc627bbfba1bf9232286e53993a857aa5cc005b) Updated code comments to English.
- [`7d0d504`](https://github.com/open-webui/open-webui/commit/7d0d504390c55f09aa31dc6ba555dc8497aab0bb) Updated code comments to English.
- [`a016171`](https://github.com/open-webui/open-webui/commit/a016171573f9da5d09c1030776d4a9050e55569b) fix: update Makefile and rename script for open-webui integration
- [`0f6bdaa`](https://github.com/open-webui/open-webui/commit/0f6bdaa60238e15832bcbe0414b5d62d3fe55669) feat: implemented user confirmation for safe removal of containers and volumes in Makefile
### 📊 Changes
**3 files changed** (+43 additions, -0 deletions)
<details>
<summary>View changed files</summary>
➕ `Makefile` (+25 -0)
➕ `confirm_remove.sh` (+8 -0)
➕ `update_ollama_models.sh` (+10 -0)
</details>
### 📄 Description
This Pull Request presents a Makefile and LLM Update Script designed to improve the workflow of managing and updating Large Language Models (LLMs) in Docker containers.
### Main characteristics
- **Makefile:** Provides a set of commands for automated management of Docker containers, making it easier to manage common tasks such as starting, stopping, and deleting containers. The Makefile includes the following commands:
- `install`: Starts containers using `docker-compose up -d`.
- `remove`: Stop and remove containers and volumes with `docker-compose down -v`.
- `start`/`stop`: Commands to manage the state of containers.
- `update`: Pulls the latest changes from the git repository, rebuilds and restarts the containers. This also includes running the new LLM update script to ensure that all installed LLMs are up to date.
- **LLM Update Script (`update_llm.sh`):** Automates the process of retrieving and updating each LLM installed in the Docker container. This script dynamically retrieves the list of installed LLMs and updates them with the latest versions, ensuring that the models are up to date and reducing the risk of version-related issues.
### Motivation
The motivation behind this contribution is to streamline the LLM management process within Dockerized environments.
By automating container updates and management, developers can focus more on development and less on maintenance tasks.
Additionally, it is crucial to ensure that LLMs are kept up to date to take advantage of the latest security improvements and patches.
This contribution is aimed at developers and teams working with LLMs in Docker containers, providing them with tools to improve their efficiency and the maintainability of their projects.
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/848
Author: @Patrice-Gaudicheau
Created: 2/22/2024
Status: ✅ Merged
Merged: 2/28/2024
Merged by: @tjbck
Base:
dev← Head:feat-makefile-llm-update📝 Commits (5)
5adff77Adding Makefile and LLM update script6bc627bUpdated code comments to English.7d0d504Updated code comments to English.a016171fix: update Makefile and rename script for open-webui integration0f6bdaafeat: implemented user confirmation for safe removal of containers and volumes in Makefile📊 Changes
3 files changed (+43 additions, -0 deletions)
View changed files
➕
Makefile(+25 -0)➕
confirm_remove.sh(+8 -0)➕
update_ollama_models.sh(+10 -0)📄 Description
This Pull Request presents a Makefile and LLM Update Script designed to improve the workflow of managing and updating Large Language Models (LLMs) in Docker containers.
Main characteristics
Makefile: Provides a set of commands for automated management of Docker containers, making it easier to manage common tasks such as starting, stopping, and deleting containers. The Makefile includes the following commands:
install: Starts containers usingdocker-compose up -d.remove: Stop and remove containers and volumes withdocker-compose down -v.start/stop: Commands to manage the state of containers.update: Pulls the latest changes from the git repository, rebuilds and restarts the containers. This also includes running the new LLM update script to ensure that all installed LLMs are up to date.LLM Update Script (
update_llm.sh): Automates the process of retrieving and updating each LLM installed in the Docker container. This script dynamically retrieves the list of installed LLMs and updates them with the latest versions, ensuring that the models are up to date and reducing the risk of version-related issues.Motivation
The motivation behind this contribution is to streamline the LLM management process within Dockerized environments.
By automating container updates and management, developers can focus more on development and less on maintenance tasks.
Additionally, it is crucial to ensure that LLMs are kept up to date to take advantage of the latest security improvements and patches.
This contribution is aimed at developers and teams working with LLMs in Docker containers, providing them with tools to improve their efficiency and the maintainability of their projects.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.