From 2aad91f3c9bc48eaee38ba313d2b928e6faa56e0 Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Sun, 31 Dec 2023 02:07:48 -0300 Subject: [PATCH] Remove deprecated command-line flags (#5131) --- modules/shared.py | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/modules/shared.py b/modules/shared.py index 785d5509..b4194107 100644 --- a/modules/shared.py +++ b/modules/shared.py @@ -198,15 +198,7 @@ group = parser.add_argument_group('Multimodal') group.add_argument('--multimodal-pipeline', type=str, default=None, help='The multimodal pipeline to use. Examples: llava-7b, llava-13b.') # Deprecated parameters -group = parser.add_argument_group('Deprecated') -group.add_argument('--notebook', action='store_true', help='DEPRECATED') -group.add_argument('--chat', action='store_true', help='DEPRECATED') -group.add_argument('--no-stream', action='store_true', help='DEPRECATED') -group.add_argument('--mul_mat_q', action='store_true', help='DEPRECATED') -group.add_argument('--api-blocking-port', type=int, default=5000, help='DEPRECATED') -group.add_argument('--api-streaming-port', type=int, default=5005, help='DEPRECATED') -group.add_argument('--llama_cpp_seed', type=int, default=0, help='DEPRECATED') -group.add_argument('--use_fast', action='store_true', help='DEPRECATED') +# group = parser.add_argument_group('Deprecated') args = parser.parse_args() args_defaults = parser.parse_args([]) @@ -216,7 +208,7 @@ for arg in sys.argv[1:]: if hasattr(args, arg): provided_arguments.append(arg) -deprecated_args = ['notebook', 'chat', 'no_stream', 'mul_mat_q', 'use_fast'] +deprecated_args = [] def do_cmd_flags_warnings():