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

fix crash in torch2.6 if TP=1 #2885

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sywangyi
Copy link
Contributor

@sywangyi sywangyi commented Jan 7, 2025

error like "ValueError: Expecting a ProcessGroup, but got a <class 'text_generation_server.utils.dist.FakeGroup'>. rank=0"

@OlivierDehaene OR @Narsil

│ ╭───────────────────────────────── locals ─────────────────────────────────╮ │
│ │ async_op = False │ │
│ │ device_ids = None │ │
│ │ group = <text_generation_server.utils.dist.FakeGroup object at │ │
│ │ 0x7f20935d8d90> │ │
│ │ opts = <torch.distributed.distributed_c10d.BarrierOptions object │ │
│ │ at 0x7f2093631130> │ │
│ ╰──────────────────────────────────────────────────────────────────────────╯ │
│ │
│ /opt/conda/lib/python3.11/site-packages/torch/distributed/distributed_c10d.p │
│ y:810 in _get_object_coll_device │
│ │
│ 807 │ │ │ # RPC uses Gloo for object collectives │
│ 808 │ │ │ return "cpu" │
│ 809 │ │ else: │
│ ❱ 810 │ │ │ raise ValueError(f"Expecting a ProcessGroup, but got a {t │
│ 811 │ │
│ 812 │ """ │
│ 813 │ group._device_types is a property pybind that returns the dev │
│ │
│ ╭───────────────────────────────── locals ─────────────────────────────────╮ │
│ │ group = <text_generation_server.utils.dist.FakeGroup object at │ │
│ │ 0x7f20935d8d90> │ │
│ ╰──────────────────────────────────────────────────────────────────────────╯ │
╰──────────────────────────────────────────────────────────────────────────────╯
ValueError: Expecting a ProcessGroup, but got a <class
'text_generation_server.utils.dist.FakeGroup'>. rank=0

error like "ValueError: Expecting a ProcessGroup, but got a <class
'text_generation_server.utils.dist.FakeGroup'>. rank=0"

Signed-off-by: Wang, Yi A <[email protected]>
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

Successfully merging this pull request may close these issues.

1 participant