mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-22 14:13:08 -05:00
[PR #848] [MERGED] Adding Makefile and LLM update script #7283
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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.