[Bugfix][CPU] Fix DeepSeek V4.1 import without Triton (#57654)
Signed-off-by: Jiang Wu <245355730+JiangLLM@users.noreply.github.com> Co-authored-by: Jiang Wu <245355730+JiangLLM@users.noreply.github.com>
This commit is contained in:
@@ -97,7 +97,8 @@ def test_triton_placeholder_language():
|
||||
lang = TritonLanguagePlaceholder()
|
||||
assert isinstance(lang, types.ModuleType)
|
||||
assert lang.__name__ == "triton.language"
|
||||
assert lang.constexpr is None
|
||||
assert lang.constexpr(2**31 - 1) == 2**31 - 1
|
||||
assert lang.constexpr(1.5) == 1.5
|
||||
assert lang.dtype is None
|
||||
assert lang.int64 is None
|
||||
assert lang.int32 is None
|
||||
@@ -143,3 +144,4 @@ def test_no_triton_fallback():
|
||||
assert triton.__class__.__name__ == "TritonPlaceholder"
|
||||
assert triton.language.__class__.__name__ == "TritonLanguagePlaceholder"
|
||||
assert tl.__class__.__name__ == "TritonLanguagePlaceholder"
|
||||
assert tl.constexpr(2**31 - 1) == 2**31 - 1
|
||||
|
||||
Reference in New Issue
Block a user