-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
[Feature] Add option to run llamafactory-cli webui
in background
#6644
Comments
try |
Hey @hiyouga I tried, it creates the |
Sorry i am not very familiar with this... Maybe you can try nohup or other linux commands |
@hiyouga No problem! I will try! I hope guys coming and share ideas about this. |
You can try this command, a common command when you want to run some process in background:
|
@BUAADreamer Thanks for note Code 1: !GRADIO_SHARE=1 llamafactory-cli webui >log.txt 2>&1 & -> Code 2: os.system("GRADIO_SHARE=1 llamafactory-cli webui >log.txt 2>&1 &") -> There is no log for gradio local/public url, seems broken |
Proposal:from llamafactory import webui
# start the webui service and prints urls of gradio.
webui.start()
# user now is able to intract with notebook
...
# end the webui service
webui.end() Problem of Proposal:we can not prints the Idea for this problem:i think we can create a new element in gradio dashboard and show example image of gradio_log pip package: Related: |
Problem:
Running
llamafactory-cli webui
forces the notebook to keep cell running and then we can't interact with notebook anymore until we stop the cell from running. another problem is when we stop / re-run this cell is the share url changes.Note:
one common solution is:
but in this way, we can't see logs any more, and the most important is that we can't see gradio public url also.
The text was updated successfully, but these errors were encountered: