Skip to content

不支持多卡运行问题 #48

Description

@opsvr

--divice改成auto后,启动服务报错

Activity

  1. qubo commented on Nov 6, 2023

    @qubo

    --device改成auto后,启动web_demo.py服务成功,但是运行任务报错
    File "/root/.cache/huggingface/modules/transformers_modules/CodeShell-7B/modeling_codeshell.py", line 401, in forward
    hidden_states = residual + feed_forward_hidden_states
    RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cuda:1!
    ^CKeyboard interruption in main thread... closing server.
    似乎不支持多卡?

  2. ruixie commented on Nov 7, 2023

    @ruixie
    Collaborator

    可以直接指定具体的device,例如:--device cuda:0

  3. whyPeanutbutter commented on Nov 17, 2023

    @whyPeanutbutter

    可以直接指定具体的device,例如:--device cuda:0

    麻烦问下如何指定多张Gpu?

  4. kztyes commented on Mar 8, 2024

    @kztyes

    可以直接指定具体的device,例如:--device cuda:0

    不行的,它这个device必须指定多卡,不然就报错

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions