Skip to content

DeepSpeed-FastGen support ascend npu? #960

Open

Description

@RyanOvO

DeepSpeed-FastGen support ascend npu, deepseek-r1-distilled-qwen2.5-32b?

Activity

  1. loadams commented on Mar 13, 2025

    @loadams
    Contributor

    @RyanOvO - DeepSpeed supports the Ascend NPU, but I don't believe FastGen has been tested there. @hipudding or @xuedinge233, do you know?

  2. hipudding commented on Mar 14, 2025

    @hipudding

    We have not tested it before. Will test it now.

  3. xuedinge233 commented on Mar 24, 2025

    @xuedinge233
    [2025-03-24 06:12:22,548] [INFO] [real_accelerator.py:222:get_accelerator] Setting ds_accelerator to npu (auto detect)
    torch npu:  True
    [2025-03-24 06:12:25,338] [INFO] [comm.py:658:init_distributed] cdb=None
    [2025-03-24 06:12:25,338] [INFO] [comm.py:689:init_distributed] Initializing TorchBackend in DeepSpeed with backend hccl
    [2025-03-24 06:12:35,567] [INFO] [engine_v2.py:82:__init__] Building model...
    ...
    Config max_tokens=768 type='rms_norm' channels=4096 residual_dtype=torch.bfloat16 input_dtype=torch.bfloat16 output_dtype=torch.bfloat16 eps=1e-05 is not supported by <class 'deepspeed.inference.v2.modules.implementations.pre_norm.cuda_pre_rms.DSPreRMSCUDAModule'>
    

    Currently, Deepspeed-mii only supports CPU and CUDA, NPU does not support it.

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