BoyuNLP commited on
Commit
bdcef78
β€’
1 Parent(s): 1aaea48
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-UGround_v1',
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 by default.
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", 2))
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-UGround_v1"
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.2, step=0.1, interactive=True, label="Temperature",)
483
- top_p = gr.Slider(minimum=0.0, maximum=1.0, value=0.7, 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):
 
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):