Skip to content

Failed to build Transformer Engine #881

Description

@zirui

Hi, I am encountering an issue while attempting to install Transformer Engine from the source code.
However, the installation failed with the following error messages:

        /code/TransformerEngine/transformer_engine/pytorch/csrc/ts_fp8_op.cpp:498:8:   required from here
        /usr/local/lib/python3.10/dist-packages/torch/include/ATen/core/op_registration/infer_schema.h:42:7: error: static assertion failed: INVALID TYPE: Only int64_t and bool are supported as an integral argument type
           42 |    >::value, "INVALID TYPE: Only int64_t and bool are supported as an integral argument type");

        /code/TransformerEngine/transformer_engine/pytorch/csrc/ts_fp8_op.cpp:501:8:   required from here
        /usr/local/lib/python3.10/dist-packages/torch/include/ATen/core/op_registration/infer_schema.h:42:7: error: static assertion failed: INVALID TYPE: Only int64_t and bool are supported as an integral argument type

Steps to Reproduce:

  1. git clone https://github.com/NVIDIA/TransformerEngine.git
  2. cd TransformerEngine && git submodule update --init --recursive
  3. pip install -e .

Environment

Python Version: 3.10
torch Version: 2.1.0
CUDA Version: 12.1
Operating System: ubuntu 22.04

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