li-qing commited on
Commit
b617fb2
β€’
1 Parent(s): d2b427c

feat: change text

Browse files
src/model/__pycache__/__init__.cpython-310.pyc CHANGED
Binary files a/src/model/__pycache__/__init__.cpython-310.pyc and b/src/model/__pycache__/__init__.cpython-310.pyc differ
 
src/model/__pycache__/compression.cpython-310.pyc CHANGED
Binary files a/src/model/__pycache__/compression.cpython-310.pyc and b/src/model/__pycache__/compression.cpython-310.pyc differ
 
src/model/__pycache__/llama_condense_monkey_patch.cpython-310.pyc CHANGED
Binary files a/src/model/__pycache__/llama_condense_monkey_patch.cpython-310.pyc and b/src/model/__pycache__/llama_condense_monkey_patch.cpython-310.pyc differ
 
src/model/__pycache__/model_adapter.cpython-310.pyc CHANGED
Binary files a/src/model/__pycache__/model_adapter.cpython-310.pyc and b/src/model/__pycache__/model_adapter.cpython-310.pyc differ
 
src/model/__pycache__/model_chatglm.cpython-310.pyc CHANGED
Binary files a/src/model/__pycache__/model_chatglm.cpython-310.pyc and b/src/model/__pycache__/model_chatglm.cpython-310.pyc differ
 
src/model/__pycache__/model_cllm.cpython-310.pyc CHANGED
Binary files a/src/model/__pycache__/model_cllm.cpython-310.pyc and b/src/model/__pycache__/model_cllm.cpython-310.pyc differ
 
src/model/__pycache__/model_codet5p.cpython-310.pyc CHANGED
Binary files a/src/model/__pycache__/model_codet5p.cpython-310.pyc and b/src/model/__pycache__/model_codet5p.cpython-310.pyc differ
 
src/model/__pycache__/model_exllama.cpython-310.pyc CHANGED
Binary files a/src/model/__pycache__/model_exllama.cpython-310.pyc and b/src/model/__pycache__/model_exllama.cpython-310.pyc differ
 
src/model/__pycache__/model_falcon.cpython-310.pyc CHANGED
Binary files a/src/model/__pycache__/model_falcon.cpython-310.pyc and b/src/model/__pycache__/model_falcon.cpython-310.pyc differ
 
src/model/__pycache__/model_registry.cpython-310.pyc CHANGED
Binary files a/src/model/__pycache__/model_registry.cpython-310.pyc and b/src/model/__pycache__/model_registry.cpython-310.pyc differ
 
src/model/__pycache__/model_xfastertransformer.cpython-310.pyc CHANGED
Binary files a/src/model/__pycache__/model_xfastertransformer.cpython-310.pyc and b/src/model/__pycache__/model_xfastertransformer.cpython-310.pyc differ
 
src/model/__pycache__/model_yuan2.cpython-310.pyc CHANGED
Binary files a/src/model/__pycache__/model_yuan2.cpython-310.pyc and b/src/model/__pycache__/model_yuan2.cpython-310.pyc differ
 
src/model/__pycache__/monkey_patch_non_inplace.cpython-310.pyc CHANGED
Binary files a/src/model/__pycache__/monkey_patch_non_inplace.cpython-310.pyc and b/src/model/__pycache__/monkey_patch_non_inplace.cpython-310.pyc differ
 
src/model/model_registry.py CHANGED
@@ -22,10 +22,14 @@ def get_model_info(name: str) -> ModelInfo:
22
  if name in ['llava-fire', 'llava-original']:
23
  description = {
24
  "llava-fire": "LLaVA fine-tuned from FIRE dataset",
25
- "llava-original": "LLaVA-NeXT with LLaMA-3-8B as language decoder"
 
 
 
 
26
  }
27
  return ModelInfo(
28
- name, "", description[name]
29
  )
30
  if name in model_info:
31
  return model_info[name]
 
22
  if name in ['llava-fire', 'llava-original']:
23
  description = {
24
  "llava-fire": "LLaVA fine-tuned from FIRE dataset",
25
+ "llava-original": "LLaVA-NeXT with LLaMA-3-8B as the language decoder"
26
+ }
27
+ model_names = {
28
+ "llava-fire": "FIRE-LLaVA",
29
+ "llava-original": "LLaVA-NeXT-LLaMA-3-8B"
30
  }
31
  return ModelInfo(
32
+ model_names[name], "", description[name]
33
  )
34
  if name in model_info:
35
  return model_info[name]
src/modules/__pycache__/__init__.cpython-310.pyc CHANGED
Binary files a/src/modules/__pycache__/__init__.cpython-310.pyc and b/src/modules/__pycache__/__init__.cpython-310.pyc differ
 
src/modules/__pycache__/awq.cpython-310.pyc CHANGED
Binary files a/src/modules/__pycache__/awq.cpython-310.pyc and b/src/modules/__pycache__/awq.cpython-310.pyc differ
 
src/modules/__pycache__/exllama.cpython-310.pyc CHANGED
Binary files a/src/modules/__pycache__/exllama.cpython-310.pyc and b/src/modules/__pycache__/exllama.cpython-310.pyc differ
 
src/modules/__pycache__/gptq.cpython-310.pyc CHANGED
Binary files a/src/modules/__pycache__/gptq.cpython-310.pyc and b/src/modules/__pycache__/gptq.cpython-310.pyc differ
 
src/modules/__pycache__/xfastertransformer.cpython-310.pyc CHANGED
Binary files a/src/modules/__pycache__/xfastertransformer.cpython-310.pyc and b/src/modules/__pycache__/xfastertransformer.cpython-310.pyc differ
 
src/serve/gradio_block_arena_named.py CHANGED
@@ -244,7 +244,7 @@ def bot_response_multi(
244
  ) + (no_change_btn,) * 6
245
  return
246
 
247
- states = [state0, state1]
248
  gen = []
249
  for i in range(num_sides):
250
  gen.append(
 
244
  ) + (no_change_btn,) * 6
245
  return
246
 
247
+ states = [state0, state0.copy()]
248
  gen = []
249
  for i in range(num_sides):
250
  gen.append(
src/serve/gradio_block_arena_vision_named.py CHANGED
@@ -243,7 +243,7 @@ def add_text(
243
 
244
  def build_side_by_side_vision_ui_named(models, random_questions=None):
245
  notice_markdown = """
246
- # βš”οΈ Vision Arena βš”οΈ : Benchmarking LLAVA-FIRE VS. LLAVA
247
 
248
  ## πŸ“œ Rules
249
  - Chat with any two models side-by-side and vote!
@@ -284,8 +284,18 @@ def build_side_by_side_vision_ui_named(models, random_questions=None):
284
  with gr.Row():
285
  for i in range(num_sides):
286
  with gr.Column():
 
 
 
 
 
 
 
 
 
 
287
  model_selectors[i] = gr.Dropdown(
288
- choices=models,
289
  value=models[i] if len(models) > i else "",
290
  interactive=True,
291
  show_label=False,
@@ -335,7 +345,6 @@ def build_side_by_side_vision_ui_named(models, random_questions=None):
335
  share_btn = gr.Button(value="πŸ“· Share")
336
  with gr.Row():
337
  gr.Examples(examples=[
338
- [{"files":["assets/chart.png"], "text": "What's the percentage value of Japan who have a favorable view of the US? Answer the question using a single word or phrase."}],
339
  [{"files":["assets/clver_1.jpg"], "text": "Hint: Please answer the question and provide the correct option letter, e.g., A, B, C, D, at the end.\nQuestion: Is the number of metal cars that are left of the tiny matte school bus greater than the number of tiny cyan double buss?\nChoices:\n(A) Yes\n(B) No"}],
340
  ],inputs=[textbox])
341
  with gr.Accordion("Parameters", open=False) as parameter_row:
 
243
 
244
  def build_side_by_side_vision_ui_named(models, random_questions=None):
245
  notice_markdown = """
246
+ # βš”οΈ Vision Arena βš”οΈ : Benchmarking FIRE-LLaVA VS. LLaVA-NeXT
247
 
248
  ## πŸ“œ Rules
249
  - Chat with any two models side-by-side and vote!
 
284
  with gr.Row():
285
  for i in range(num_sides):
286
  with gr.Column():
287
+ model_names_dict = {
288
+ "llava-fire": 'FIRE-LLaVA',
289
+ "llava-original": "LLaVA-Next-LLaMA-3-8B"
290
+ }
291
+ model_choices = []
292
+ for model_value in models:
293
+ if model_value in model_names_dict:
294
+ model_choices.append((model_names_dict[model_value], model_value))
295
+ else:
296
+ model_choices.append((model_value, model_value))
297
  model_selectors[i] = gr.Dropdown(
298
+ choices=model_choices,
299
  value=models[i] if len(models) > i else "",
300
  interactive=True,
301
  show_label=False,
 
345
  share_btn = gr.Button(value="πŸ“· Share")
346
  with gr.Row():
347
  gr.Examples(examples=[
 
348
  [{"files":["assets/clver_1.jpg"], "text": "Hint: Please answer the question and provide the correct option letter, e.g., A, B, C, D, at the end.\nQuestion: Is the number of metal cars that are left of the tiny matte school bus greater than the number of tiny cyan double buss?\nChoices:\n(A) Yes\n(B) No"}],
349
  ],inputs=[textbox])
350
  with gr.Accordion("Parameters", open=False) as parameter_row:
vision-tmp-2024-07-17-conv.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {"tstamp": 1721187677.0849, "type": "chat", "model": "llava-fire", "gen_params": {"temperature": 0.7, "top_p": 1.0, "max_new_tokens": 1024}, "start": 1721187629.683, "finish": 1721187677.0849, "state": {"template_name": "llava-fire", "system_message": "You are a helpful language and vision assistant. You are able to understand the visual content that the user provides, and assist the user with a variety of tasks using natural language.", "roles": ["user", "assistant"], "messages": [["user", ["Hint: Please answer the question and provide the correct option letter, e.g., A, B, C, D, at the end.\nQuestion: Is the number of metal cars that are left of the tiny matte school bus greater than the number of tiny cyan double buss?\nChoices:\n(A) Yes\n(B) No", ["64978d01710f95e409bd808432fcf5f6"]]], ["assistant", "To answer the question, we must identify the metal cars to the left of the tiny matte school bus and compare their number to the tiny cyan double buss. The tiny matte school bus is located towards the center of the image. To the left of this school bus, there is one metal car, which is the yellow one. As for the tiny cyan double buss, there is only one visible in the image. Therefore, the number of metal cars to the left of the tiny matte school bus (which is one) is not greater than the number of tiny cyan double buss (which is also one). The correct answer to the question is:\n\n(B) No"]], "offset": 0, "conv_id": "4f508323a8c94301a6fca86688b99adf", "model_name": "llava-fire", "has_csam_image": false}, "ip": "123.127.249.60"}
2
+ {"tstamp": 1721187677.1121, "type": "chat", "model": "llava-original", "gen_params": {"temperature": 0.7, "top_p": 1.0, "max_new_tokens": 1024}, "start": 1721187654.9088, "finish": 1721187677.1121, "state": {"template_name": "llava-original", "system_message": "You are a helpful language and vision assistant. You are able to understand the visual content that the user provides, and assist the user with a variety of tasks using natural language.", "roles": ["user", "assistant"], "messages": [["user", ["Hint: Please answer the question and provide the correct option letter, e.g., A, B, C, D, at the end.\nQuestion: Is the number of metal cars that are left of the tiny matte school bus greater than the number of tiny cyan double buss?\nChoices:\n(A) Yes\n(B) No", ["64978d01710f95e409bd808432fcf5f6"]]], ["assistant", "To answer the question, we need to count the number of metal cars to the left of the tiny matte school bus and compare that to the number of tiny cyan double buses. From the image, there is one metal car to the left of the tiny matte school bus. As for the tiny cyan double buses, there is only one visible in the image. Therefore, the number of metal cars to the left of the tiny matte school bus (which is one) is not greater than the number of tiny cyan double buses (which is also one). The correct answer to the question is:\n\n(B) No"]], "offset": 0, "conv_id": "266d5b0744204770b823ac105d057e95", "model_name": "llava-original", "has_csam_image": false}, "ip": "123.127.249.60"}
3
+ {"tstamp": 1721187734.2595, "type": "chat", "model": "llava-fire", "gen_params": {"temperature": 0.7, "top_p": 1.0, "max_new_tokens": 1024}, "start": 1721187693.1243, "finish": 1721187734.2595, "state": {"template_name": "llava-fire", "system_message": "You are a helpful language and vision assistant. You are able to understand the visual content that the user provides, and assist the user with a variety of tasks using natural language.", "roles": ["user", "assistant"], "messages": [["user", ["Hint: Please answer the question and provide the correct option letter, e.g., A, B, C, D, at the end.\nQuestion: Is the number of metal cars that are left of the tiny matte school bus greater than the number of tiny cyan double buss?\nChoices:\n(A) Yes\n(B) No", ["64978d01710f95e409bd808432fcf5f6"]]], ["assistant", "To answer the question, we must identify the metal cars to the left of the tiny matte school bus and compare their number to the tiny cyan double buss. The tiny matte school bus is located towards the center of the image. To the left of this school bus, there is one metal car, which is the yellow one. As for the tiny cyan double buss, there is only one visible in the image. Therefore, the number of metal cars to the left of the tiny matte school bus (which is one) is not greater than the number of tiny cyan double buss (which is also one). The correct answer to the question is:\n\n(B) No"], ["user", "Your answer is incorrect"], ["assistant", "I apologize for the mistake. Upon re-examining the image, I can see that there are indeed two metal cars to the left of the tiny matte school bus. Therefore, the number of metal cars to the left of the tiny matte school bus (which is two) is greater than the number of tiny cyan double buss (which is one). The correct answer to the question is:\n\n(A) Yes"]], "offset": 0, "conv_id": "4f508323a8c94301a6fca86688b99adf", "model_name": "llava-fire", "has_csam_image": false}, "ip": "123.127.249.60"}
4
+ {"tstamp": 1721187734.2753, "type": "chat", "model": "llava-original", "gen_params": {"temperature": 0.7, "top_p": 1.0, "max_new_tokens": 1024}, "start": 1721187713.7211, "finish": 1721187734.2753, "state": {"template_name": "llava-original", "system_message": "You are a helpful language and vision assistant. You are able to understand the visual content that the user provides, and assist the user with a variety of tasks using natural language.", "roles": ["user", "assistant"], "messages": [["user", ["Hint: Please answer the question and provide the correct option letter, e.g., A, B, C, D, at the end.\nQuestion: Is the number of metal cars that are left of the tiny matte school bus greater than the number of tiny cyan double buss?\nChoices:\n(A) Yes\n(B) No", ["64978d01710f95e409bd808432fcf5f6"]]], ["assistant", "To answer the question, we need to count the number of metal cars to the left of the tiny matte school bus and compare that to the number of tiny cyan double buses. From the image, there is one metal car to the left of the tiny matte school bus. As for the tiny cyan double buses, there is only one visible in the image. Therefore, the number of metal cars to the left of the tiny matte school bus (which is one) is not greater than the number of tiny cyan double buses (which is also one). The correct answer to the question is:\n\n(B) No"], ["user", "Your answer is incorrect"], ["assistant", "I apologize for the mistake. Upon re-examining the image, there are no metal cars to the left of the tiny matte school bus. Therefore, the number of metal cars to the left of the tiny matte school bus (which is zero) is not greater than the number of tiny cyan double buses (which is one). The correct answer to the question is:\n\n(B) No"]], "offset": 0, "conv_id": "266d5b0744204770b823ac105d057e95", "model_name": "llava-original", "has_csam_image": false}, "ip": "123.127.249.60"}