From 193fe18c8c10448f75d995ebf622215c9923aaaf Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Thu, 21 Sep 2023 17:45:11 -0700 Subject: [PATCH] Resolve conflicts --- .gitignore | 3 --- README.md | 18 ------------------ webui.py | 23 ----------------------- 3 files changed, 44 deletions(-) diff --git a/.gitignore b/.gitignore index 76c8e03f..f66d828c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ -<<<<<<< HEAD cache characters training/datasets @@ -34,6 +33,4 @@ models/config-user.yaml .DS_Store Thumbs.db -======= installer_files/ ->>>>>>> second-repo/main diff --git a/README.md b/README.md index acff9c2f..c3bfe137 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,3 @@ -<<<<<<< HEAD # Text generation web UI A Gradio web UI for Large Language Models. @@ -391,20 +390,3 @@ If you would like to contribute to the project, check out the [Contributing guid ## Acknowledgment In August 2023, [Andreessen Horowitz](https://a16z.com/) (a16z) provided a generous grant to encourage and support my independent work on this project. I am **extremely** grateful for their trust and recognition, which will allow me to dedicate more time towards realizing the full potential of text-generation-webui. -======= -# One-click installers - -These are automated installers for [oobabooga/text-generation-webui](https://github.com/oobabooga/text-generation-webui). - -The idea is to allow people to use the program without having to type commands in the terminal, thus making it more accessible. - -## How it works - -The `start` scripts download miniconda, create a conda environment inside the current folder, and then install the webui using that environment. - -After the initial installation, the `update` scripts are then used to automatically pull the latest text-generation-webui code and upgrade its requirements. - -## Limitations - -* The start/update scripts themselves are not automatically updated. To update them, you have to re-download the zips listed on the [main README](https://github.com/oobabooga/text-generation-webui#one-click-installers) and overwrite your existing files. ->>>>>>> second-repo/main diff --git a/webui.py b/webui.py index 083272ed..8707e7f7 100644 --- a/webui.py +++ b/webui.py @@ -112,23 +112,12 @@ def install_dependencies(): else: run_cmd("conda install -y -k ninja git && python -m pip install torch torchvision torchaudio", assert_success=True, environment=True) -<<<<<<< HEAD -======= - # Clone webui to our computer - run_cmd("git clone https://github.com/oobabooga/text-generation-webui.git", assert_success=True, environment=True) - ->>>>>>> second-repo/main # Install the webui dependencies update_dependencies(initial_installation=True) def update_dependencies(initial_installation=False): -<<<<<<< HEAD # run_cmd("git pull", assert_success=True, environment=True) # TODO uncomment before merging (is there a better way?) -======= - os.chdir("text-generation-webui") - run_cmd("git pull", assert_success=True, environment=True) ->>>>>>> second-repo/main # Install the extensions dependencies (only on the first install) if initial_installation: @@ -222,18 +211,10 @@ def update_dependencies(initial_installation=False): def download_model(): -<<<<<<< HEAD -======= - os.chdir("text-generation-webui") ->>>>>>> second-repo/main run_cmd("python download-model.py", environment=True) def launch_webui(): -<<<<<<< HEAD -======= - os.chdir("text-generation-webui") ->>>>>>> second-repo/main run_cmd(f"python server.py {CMD_FLAGS}", environment=True) @@ -249,12 +230,8 @@ if __name__ == "__main__": update_dependencies() else: # If webui has already been installed, skip and run -<<<<<<< HEAD # if not os.path.exists("text-generation-webui/"): if True: # TODO implement a new installation check -======= - if not os.path.exists("text-generation-webui/"): ->>>>>>> second-repo/main install_dependencies() os.chdir(script_dir)