Skip to content

Commit b21d0f7

Browse files
Update version to 0.2.36 (#3033)
Co-authored-by: Wei-Lin Chiang <infwinston@gmail.com>
1 parent e087d6e commit b21d0f7

6 files changed

Lines changed: 15 additions & 7 deletions

File tree

fastchat/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.2.35"
1+
__version__ = "0.2.36"

fastchat/model/model_registry.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,12 @@ def get_model_info(name: str) -> ModelInfo:
291291
)
292292

293293
register_model_info(
294-
["codellama-34b-instruct", "codellama-13b-instruct", "codellama-7b-instruct"],
294+
[
295+
"codellama-70b-instruct",
296+
"codellama-34b-instruct",
297+
"codellama-13b-instruct",
298+
"codellama-7b-instruct",
299+
],
295300
"Code Llama",
296301
"https://ai.meta.com/blog/code-llama-large-language-model-coding/",
297302
"Open foundation models for code by Meta",
@@ -640,10 +645,10 @@ def get_model_info(name: str) -> ModelInfo:
640645

641646
register_model_info(
642647
[
643-
"llava-v1.6-vicuna-7b",
644648
"llava-v1.6-vicuna-13b",
645-
"llava-v1.5-7b",
649+
"llava-v1.6-vicuna-7b",
646650
"llava-v1.5-13b",
651+
"llava-v1.5-7b",
647652
],
648653
"LLaVA",
649654
"https://github.com/haotian-liu/LLaVA",

fastchat/serve/gradio_block_arena_vision.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def build_single_vision_language_model_ui(models, add_promotion_links=False):
6666
with gr.Column(scale=3):
6767
textbox = gr.Textbox(
6868
show_label=False,
69-
placeholder="Enter your prompt here and press ENTER",
69+
placeholder="👉 Enter your prompt and press ENTER",
7070
container=False,
7171
render=False,
7272
elem_id="input_box",

fastchat/serve/register_worker.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,15 @@
1414
parser.add_argument("--controller-address", type=str)
1515
parser.add_argument("--worker-name", type=str)
1616
parser.add_argument("--check-heart-beat", action="store_true")
17+
parser.add_argument("--multimodal", action="store_true")
1718
args = parser.parse_args()
1819

1920
url = args.controller_address + "/register_worker"
2021
data = {
2122
"worker_name": args.worker_name,
2223
"check_heart_beat": args.check_heart_beat,
2324
"worker_status": None,
25+
"multimodal": args.multimodal,
2426
}
2527
r = requests.post(url, json=data)
2628
assert r.status_code == 200

fastchat/serve/sglang_worker.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
A model worker that executes the model based on SGLANG.
2+
A model worker that executes the model based on SGLang.
33
44
Usage:
55
python3 -m fastchat.serve.sglang_worker --model-path liuhaotian/llava-v1.5-7b --tokenizer-path llava-hf/llava-1.5-7b-hf --port 30000 --worker-address http://localhost:30000
@@ -121,6 +121,7 @@ async def generate_stream(self, params):
121121
for i in range(len(split_prompt)):
122122
prompt.append(split_prompt[i])
123123
if i < len(images):
124+
prompt[-1] = prompt[-1].strip()
124125
prompt.append(load_image(images[i]))
125126

126127
state = pipeline.run(

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "fschat"
7-
version = "0.2.35"
7+
version = "0.2.36"
88
description = "An open platform for training, serving, and evaluating large language model based chatbots."
99
readme = "README.md"
1010
requires-python = ">=3.8"

0 commit comments

Comments
 (0)