Skip to content

Triton now replaces triton.language.libdevice with triton.language.mathlib #909

Open
@LemurPwned

Description

@LemurPwned

It seems that triton has recently switched to mathlib in lieu of libdevice which causes following errors in nn.triton_based_modules:

AttributeError: module 'triton.language' has no attribute 'libdevice'

Ref PRs from triton:

For example, triton.language.libdevice.llrint used here is now triton.language.math.llrint:
https://github.com/openai/triton/blob/720d12c1433e5b13eb3a18d1e065c1d3d25a32f1/python/triton/language/math.py#L1096

Is this a simple update or bumping triton might break more stuff?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Low Priority(will be worked on after all priority issues)

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions