项目文件夹

文件
wehub-resource-sync e9a2f726c9
CI / test (3.11) (push) Has been cancelled
CI / test (3.12) (push) Has been cancelled
CI / test (3.13) (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:29:51 +08:00

13 行
482 B
Python

# SPDX-License-Identifier: Apache-2.0
"""Shared NAX (M5 tensor unit) detection for custom-kernel dispatch.
The implementation lives in qwen35_prefill.fast, which prefers the native
extension's mirror of mlx metal::is_nax_available() and falls back to parsing
mx.device_info() when the extension predates the NAX split. Import from here
in patches that are not Qwen-specific.
"""
from omlx.custom_kernels.qwen35_prefill.fast import is_nax_available
__all__ = ["is_nax_available"]