Spaces:
Runtime error
Runtime error
File size: 1,945 Bytes
88f55d9 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
import argparse
def parse_args():
parser = argparse.ArgumentParser(
description="Gradio Application for LLM as a chatbot service"
)
parser.add_argument(
"--base-url",
help="Hugging Face Hub URL",
default="elinas/llama-7b-hf-transformers-4.29",
type=str,
)
parser.add_argument(
"--ft-ckpt-url",
help="Hugging Face Hub URL",
# default="tloen/alpaca-lora-7b",
default="LLMs/Alpaca-LoRA-7B-elina",
type=str,
)
parser.add_argument(
"--port",
help="PORT number where the app is served",
default=6006,
type=int,
)
parser.add_argument(
"--share",
help="Create and share temporary endpoint (useful in Colab env)",
action='store_true'
)
parser.add_argument(
"--gen-config-path",
help="path to GenerationConfig file",
default="configs/response_configs/default.yaml",
# default="configs/gen_config_koalpaca.yaml",
# default="configs/gen_config_stablelm.yaml",
type=str
)
parser.add_argument(
"--gen-config-summarization-path",
help="path to GenerationConfig file used in context summarization",
default="configs/summarization_configs/default.yaml",
type=str
)
parser.add_argument(
"--multi-gpu",
help="Enable multi gpu mode. This will force not to use Int8 but float16, so you need to check if your system has enough GPU memory",
action='store_true'
)
parser.add_argument(
"--force-download_ckpt",
help="Force to download ckpt instead of using cached one",
action="store_true"
)
parser.add_argument(
"--chat-only-mode",
help="Only show chatting window. Otherwise, other components will be appeared for more sophisticated control",
action="store_true"
)
return parser.parse_args() |