From afe9f77f96f970f4f70ec4626409ceee72eb82c8 Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Sun, 15 Jan 2023 15:30:39 -0300 Subject: [PATCH] Reorder parameters --- README.md | 6 +++--- server.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 93b59118..8c29d8a2 100644 --- a/README.md +++ b/README.md @@ -122,9 +122,6 @@ Optionally, you can use the following command-line flags: ``` -h, --help show this help message and exit --model MODEL Name of the model to load by default. ---settings-file SETTINGS_FILE - Load default interface settings from this json file. See settings- - template.json for an example. --notebook Launch the webui in notebook mode, where the output is written to the same text box as the input. --chat Launch the webui in chat mode. @@ -135,6 +132,9 @@ Optionally, you can use the following command-line flags: --auto-devices Automatically split the model across the available GPU(s) and CPU. --load-in-8bit Load the model with 8-bit precision. --no-listen Make the webui unreachable from your local network. +--settings-file SETTINGS_FILE + Load default interface settings from this json file. See settings- + template.json for an example. ``` ## Presets diff --git a/server.py b/server.py index 40fca6fb..04da96fd 100644 --- a/server.py +++ b/server.py @@ -17,7 +17,6 @@ transformers.logging.set_verbosity_error() parser = argparse.ArgumentParser() parser.add_argument('--model', type=str, help='Name of the model to load by default.') -parser.add_argument('--settings-file', type=str, help='Load default interface settings from this json file. See settings-template.json for an example.') parser.add_argument('--notebook', action='store_true', help='Launch the webui in notebook mode, where the output is written to the same text box as the input.') parser.add_argument('--chat', action='store_true', help='Launch the webui in chat mode.') parser.add_argument('--cai-chat', action='store_true', help='Launch the webui in chat mode with a style similar to Character.AI\'s. If the file profile.png exists in the same folder as server.py, this image will be used as the bot\'s profile picture.') @@ -25,6 +24,7 @@ parser.add_argument('--cpu', action='store_true', help='Use the CPU to generate parser.add_argument('--auto-devices', action='store_true', help='Automatically split the model across the available GPU(s) and CPU.') parser.add_argument('--load-in-8bit', action='store_true', help='Load the model with 8-bit precision.') parser.add_argument('--no-listen', action='store_true', help='Make the webui unreachable from your local network.') +parser.add_argument('--settings-file', type=str, help='Load default interface settings from this json file. See settings-template.json for an example.') args = parser.parse_args() loaded_preset = None