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

Not able to start the server using make server-dev #204

Closed
Codehackerone opened this issue Apr 19, 2023 · 1 comment
Closed

Not able to start the server using make server-dev #204

Codehackerone opened this issue Apr 19, 2023 · 1 comment

Comments

@Codehackerone
Copy link

I replaced the server Makefile to serve gpt2 without sharding like
SAFETENSORS_FAST_GPU=1 python -m torch.distributed.run --nproc_per_node=2 text_generation_server/cli.py serve gpt2
Yesterday, the server and router worked fine, but the next time when I restarted the server, it doesn't work.
The issue I'm facing
Screenshot 2023-04-19 at 8 33 48 PM

@OlivierDehaene
Copy link
Member

OlivierDehaene commented Apr 19, 2023

You don't need to launch using torch.distributed.run when you are not sharding your model.
You can directly use text-generation-server serve gpt2.
Since you are running with --nproc_per_node=2, the two process are competing for the same address.

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