-
Notifications
You must be signed in to change notification settings - Fork 308
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhanced Gradio UI #89
base: main
Are you sure you want to change the base?
Conversation
demos/gradio_ui.py
Outdated
demo.launch() | ||
@click.option("--lora_path", required=False, help="Path to the lora file.") | ||
@click.option("--cpu_offload", is_flag=True, help="Whether to offload model to CPU.") | ||
@click.option("--gpu", default=None, help="Specify the GPU to use (e.g., 'cuda:0').") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems like the gpu
option is used to set CUDA_VISIBLE_DEVICES, so the help text is incorrect (cuda:0 isn't valid). Could you remove the option? Users can set CUDA_VISIBLE_DEVICES manually.
You are right. I'll make the change. Thanks |
Hi, can you please review my pull request? |
Enhanced Gradio interface UI
Added the possibility to select the host and port number when launching the gradio service
Added the possibility to select a specific GPU when launching the gradio service