Spaces:
Sleeping
Sleeping
init
Browse files- app.py +3 -3
- gradio_web_server.log +0 -0
- llava/serve/gradio_web_server.py +3 -3
app.py
CHANGED
@@ -47,7 +47,7 @@ def start_worker(model_path: str, bits=4):
|
|
47 |
"--model-path",
|
48 |
model_path,
|
49 |
"--model-name",
|
50 |
-
'llava-v1.5-
|
51 |
"--use-flash-attn",
|
52 |
]
|
53 |
if bits != 16:
|
@@ -70,7 +70,7 @@ if __name__ == "__main__":
|
|
70 |
gws.models = []
|
71 |
|
72 |
gws.title_markdown += """
|
73 |
-
This is a demo for UGround from *Navigating the Digital World as Humans Do: Universal Visual Grounding for GUI Agents*. We load the 4bit model
|
74 |
"""
|
75 |
|
76 |
print(f"args: {gws.args}")
|
@@ -79,7 +79,7 @@ This is a demo for UGround from *Navigating the Digital World as Humans Do: Univ
|
|
79 |
model_path = "osunlp/UGround"
|
80 |
# "osunlp/UGround"
|
81 |
bits = int(os.getenv("bits", 4))
|
82 |
-
concurrency_count = int(os.getenv("concurrency_count",
|
83 |
|
84 |
controller_proc = start_controller()
|
85 |
worker_proc = start_worker(model_path, bits=bits)
|
|
|
47 |
"--model-path",
|
48 |
model_path,
|
49 |
"--model-name",
|
50 |
+
'llava-v1.5-UGround-4bit',
|
51 |
"--use-flash-attn",
|
52 |
]
|
53 |
if bits != 16:
|
|
|
70 |
gws.models = []
|
71 |
|
72 |
gws.title_markdown += """
|
73 |
+
This is a demo for UGround from *Navigating the Digital World as Humans Do: Universal Visual Grounding for GUI Agents*. We load the **4bit** model for it.
|
74 |
"""
|
75 |
|
76 |
print(f"args: {gws.args}")
|
|
|
79 |
model_path = "osunlp/UGround"
|
80 |
# "osunlp/UGround"
|
81 |
bits = int(os.getenv("bits", 4))
|
82 |
+
concurrency_count = int(os.getenv("concurrency_count", 3))
|
83 |
|
84 |
controller_proc = start_controller()
|
85 |
worker_proc = start_worker(model_path, bits=bits)
|
gradio_web_server.log
DELETED
The diff for this file is too large to render.
See raw diff
|
|
llava/serve/gradio_web_server.py
CHANGED
@@ -460,7 +460,7 @@ def build_demo(embed_mode, cur_dir=None, concurrency_count=1):
|
|
460 |
interactive=True,
|
461 |
show_label=False,
|
462 |
container=False)
|
463 |
-
# model_selector="llava-v1.5-
|
464 |
|
465 |
imagebox = gr.Image(type="pil")
|
466 |
image_process_mode = gr.Radio(
|
@@ -479,8 +479,8 @@ def build_demo(embed_mode, cur_dir=None, concurrency_count=1):
|
|
479 |
# max_output_tokens=16384
|
480 |
#
|
481 |
with gr.Accordion("Parameters", open=False) as parameter_row:
|
482 |
-
temperature = gr.Slider(minimum=0.0, maximum=1.0, value=0.
|
483 |
-
top_p = gr.Slider(minimum=0.0, maximum=1.0, value=0
|
484 |
max_output_tokens = gr.Slider(minimum=0, maximum=1024, value=512, step=64, interactive=True, label="Max output tokens",)
|
485 |
|
486 |
with gr.Column(scale=8):
|
|
|
460 |
interactive=True,
|
461 |
show_label=False,
|
462 |
container=False)
|
463 |
+
# model_selector="llava-v1.5-UGround-4bit"
|
464 |
|
465 |
imagebox = gr.Image(type="pil")
|
466 |
image_process_mode = gr.Radio(
|
|
|
479 |
# max_output_tokens=16384
|
480 |
#
|
481 |
with gr.Accordion("Parameters", open=False) as parameter_row:
|
482 |
+
temperature = gr.Slider(minimum=0.0, maximum=1.0, value=0.1, step=0.1, interactive=True, label="Temperature",)
|
483 |
+
top_p = gr.Slider(minimum=0.0, maximum=1.0, value=0, step=0.1, interactive=True, label="Top P",)
|
484 |
max_output_tokens = gr.Slider(minimum=0, maximum=1024, value=512, step=64, interactive=True, label="Max output tokens",)
|
485 |
|
486 |
with gr.Column(scale=8):
|