feat: add more examples
Browse files- assets/fox.png +0 -0
- assets/magnetic.png +0 -0
- assets/test_11407.jpg +0 -0
- src/model/__pycache__/__init__.cpython-310.pyc +0 -0
- src/model/__pycache__/compression.cpython-310.pyc +0 -0
- src/model/__pycache__/llama_condense_monkey_patch.cpython-310.pyc +0 -0
- src/model/__pycache__/model_adapter.cpython-310.pyc +0 -0
- src/model/__pycache__/model_chatglm.cpython-310.pyc +0 -0
- src/model/__pycache__/model_cllm.cpython-310.pyc +0 -0
- src/model/__pycache__/model_codet5p.cpython-310.pyc +0 -0
- src/model/__pycache__/model_exllama.cpython-310.pyc +0 -0
- src/model/__pycache__/model_falcon.cpython-310.pyc +0 -0
- src/model/__pycache__/model_registry.cpython-310.pyc +0 -0
- src/model/__pycache__/model_xfastertransformer.cpython-310.pyc +0 -0
- src/model/__pycache__/model_yuan2.cpython-310.pyc +0 -0
- src/model/__pycache__/monkey_patch_non_inplace.cpython-310.pyc +0 -0
- src/modules/__pycache__/__init__.cpython-310.pyc +0 -0
- src/modules/__pycache__/awq.cpython-310.pyc +0 -0
- src/modules/__pycache__/exllama.cpython-310.pyc +0 -0
- src/modules/__pycache__/gptq.cpython-310.pyc +0 -0
- src/modules/__pycache__/xfastertransformer.cpython-310.pyc +0 -0
- src/serve/gradio_block_arena_vision_named.py +29 -1
- vision-tmp-2024-07-25-conv.json +2 -0
assets/fox.png
ADDED
assets/magnetic.png
ADDED
assets/test_11407.jpg
ADDED
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/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_vision_named.py
CHANGED
@@ -352,7 +352,35 @@ def build_side_by_side_vision_ui_named(models, random_questions=None):
|
|
352 |
{
|
353 |
"files": ["assets/image_50.png"],
|
354 |
"text": "Please directly answer the question and provide the correct option letter, e.g., A, B, C, D.\nQuestion: As shown in the figure, then angle COE = ()\nChoices:\nA:30°\nB:140°\nC:50°\nD:60°"
|
355 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
356 |
],
|
357 |
],inputs=[textbox])
|
358 |
with gr.Accordion("Parameters", open=False) as parameter_row:
|
|
|
352 |
{
|
353 |
"files": ["assets/image_50.png"],
|
354 |
"text": "Please directly answer the question and provide the correct option letter, e.g., A, B, C, D.\nQuestion: As shown in the figure, then angle COE = ()\nChoices:\nA:30°\nB:140°\nC:50°\nD:60°"
|
355 |
+
},
|
356 |
+
{
|
357 |
+
"files": ["assets/test_11407.png"],
|
358 |
+
"text": """Hint: Please answer the question and provide the correct option letter, e.g., A, B, C, D, at the end.
|
359 |
+
Question: 如图,△ABC中,AD为中线,AD⊥AC,∠BAD=30°,AB=3,则AC长()
|
360 |
+
Choices:
|
361 |
+
A. 2.5
|
362 |
+
B. 2
|
363 |
+
C. 1
|
364 |
+
D. 1.5"""
|
365 |
+
},
|
366 |
+
{
|
367 |
+
"files": ["assets/magnetic.png"],
|
368 |
+
"text": """Hint: Please answer the question and provide the correct option letter, e.g., A, B, C, D, at the end.
|
369 |
+
Question: Will these magnets attract or repel each other?
|
370 |
+
Choices:
|
371 |
+
A. repel
|
372 |
+
B. attract"""
|
373 |
+
},
|
374 |
+
{
|
375 |
+
"files": ["assets/fox.png"],
|
376 |
+
"text": """Hint: Please answer the question and provide the correct option letter, e.g., A, B, C, D, at the end.
|
377 |
+
Question: Which of the following organisms is the primary consumer in this food web?
|
378 |
+
Choices:
|
379 |
+
A. Arctic fox
|
380 |
+
B. rough-legged hawk
|
381 |
+
C. mushroom"""
|
382 |
+
},
|
383 |
+
|
384 |
],
|
385 |
],inputs=[textbox])
|
386 |
with gr.Accordion("Parameters", open=False) as parameter_row:
|
vision-tmp-2024-07-25-conv.json
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
{"tstamp": 1721889851.4907, "type": "chat", "model": "llava-fire", "gen_params": {"temperature": 0.7, "top_p": 1.0, "max_new_tokens": 1024}, "start": 1721889808.9996, "finish": 1721889851.4907, "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: Which of the following organisms is the primary consumer in this food web? \nChoices: \nA. Arctic fox \nB. rough-legged hawk \nC. mushroom", ["b866e8955884179b33bfa0bf26c041bd"]]], ["assistant", "The primary consumer in a food web is the organism that feeds directly on producers, which are typically plants or plant-like organisms. In this image, the producers are represented by the \"brown lemming\" and \"bilberry,\" which are plants. The organisms that feed directly on these producers are the \"earthworm\" and \"brown lemming,\" as they are shown with arrows pointing from the producers to them, indicating that they consume the producers. Therefore, the correct answer to the question is:\n\nC. mushroom\n\nThe mushroom is not a primary consumer in this food web; it is shown as a decomposer, which means it feeds on decaying organic material rather than living plants."]], "offset": 0, "conv_id": "52a445f0d8ba494c84523c689125a872", "model_name": "llava-fire", "has_csam_image": false}, "ip": "123.127.249.92"}
|
2 |
+
{"tstamp": 1721889851.5194, "type": "chat", "model": "llava-original", "gen_params": {"temperature": 0.7, "top_p": 1.0, "max_new_tokens": 1024}, "start": 1721889830.8533, "finish": 1721889851.5194, "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: Which of the following organisms is the primary consumer in this food web? \nChoices: \nA. Arctic fox \nB. rough-legged hawk \nC. mushroom", ["b866e8955884179b33bfa0bf26c041bd"]]], ["assistant", "The primary consumers in this food web are the organisms that feed directly on producers, which are typically plants or plant-like organisms. In the given choices, the Arctic fox (A) is a secondary consumer, as it preys on other animals. The rough-legged hawk (B) is also a secondary consumer, as it preys on birds. The mushroom (C) is a decomposer, which means it breaks down dead organic material, but it is not a primary consumer. Therefore, the correct answer to the question is not listed among the provided choices. The correct option would be the organisms that feed on the producers, such as the brown lemming, which is a primary consumer in this food web."]], "offset": 0, "conv_id": "73a644a53b25447dac3f2a55871d910c", "model_name": "llava-original", "has_csam_image": false}, "ip": "123.127.249.92"}
|