You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Newer versions of torch (>= 2.4.0) requires installation of Triton version (>=3.0.0), this will cause an error in the JIT compile
of triton kernels that currently access global variables inside new checks here
Example:
NameError("Cannot access global variable ROPE_GROUP_SIZE from within @jit'ed function. Triton kernels can only access global variables that are annotated as constexpr (x: triton.language.constexpr = 42 or x = triton.language.constexpr(42)). Alternatively, set the envvar TRITON_ALLOW_NON_CONSTEXPR_GLOBALS=1, but we do not promise to support this forever.")
This is currently mitigated using a TRITON_ALLOW_NON_CONSTEXPR_GLOBALS variable that temporarily allows for access to globals.
A fix to the triton kernels to access global variables by annotating as constexpr (x: triton.language.constexpr = 42 or x = triton.language.constexpr(42)) would be more permanent.
The text was updated successfully, but these errors were encountered:
Description:
Newer versions of torch (
>= 2.4.0
) requires installation of Triton version (>=3.0.0
), this will cause an error in the JIT compileof triton kernels that currently access global variables inside new checks here
Example:
TRITON_ALLOW_NON_CONSTEXPR_GLOBALS
variable that temporarily allows for access to globals.x: triton.language.constexpr = 42
orx = triton.language.constexpr(42)
) would be more permanent.The text was updated successfully, but these errors were encountered: