Skip to content
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

Encountered [error 11001] getaddrinfo failed #10

Open
PeterL-1111 opened this issue Apr 28, 2023 · 6 comments
Open

Encountered [error 11001] getaddrinfo failed #10

PeterL-1111 opened this issue Apr 28, 2023 · 6 comments

Comments

@PeterL-1111
Copy link

The original script defined local url: demo.launch(server_name="0.0.0.0", server_port=80)

but I could not open it, I tried to modify the url to demo.launch(server_name="http://127.0.0.1", server_port=7860) which works on stable diffusion on my machine,

then I get the [error 11001] getaddrinfo failed
Screenshot 2023-04-28 140134

Please advise, help me😅

@Yangr116
Copy link
Collaborator

Hi, please try this one :demo.launch(server_name="0.0.0.0", server_port=7860).

The port 7860 shouldn't be occupied and closed. You can use lsof -i:7860 to check it.
Additionally, the port should be opened. If the port is closed, you should use the sudo ufw allow ${your port} in ubuntu.

@PeterL-1111
Copy link
Author

Thank you!!

I changed to that and it worked with a bit modification, instead of opening the 0.0.0.0:7860, I was able get to the gradio using http://localhost:7860/

The new issues is I get stuck on "Entering new AgentExecutor chain" after giving instruction such as "change background" or "Generate an image of a happy vicuna running in the grass"(in the demo example)

I was using the command line provided in the demo
python gpt4tools.py --base_model E:\vicuna\LLaMA --lora_model E:\vicuna\GPT4Tools\lora_weight --llm_device "cpu" --load "Text2Box_cuda:0,Segmenting_cuda:0,Inpainting_cuda:0,ImageCaptioning_cuda:0"

image

image

@Yangr116
Copy link
Collaborator

This may be your cpu memory is not enough. You can change the llama to 8bit during loading following here.

@PeterL-1111
Copy link
Author

Thank you for the reply!!

I tried to add the 8bit to True and device map to auto, but I encountered this error here. Could you please advise?
image
image

Also, my gradio interface is different from the demo, could you let me know how to get the options in the demo?(1st one is demo, 2nd one is my interface)
image
image

@Yangr116
Copy link
Collaborator

Yangr116 commented May 2, 2023

Can you remove the device_map='auto'?

The gradio interface used in the demo will be released.

@PeterL-1111
Copy link
Author

I see, and I tried the fix, but it returned this error instead, it looks like there is some compatibility with the 8bit format
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants