Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
FlashMLA
Commits
261aa80c
Commit
261aa80c
authored
Apr 10, 2026
by
zhanghj2
Browse files
FLASH_MLA_BF16_TYPE=1
parent
fd342087
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
setup.py
setup.py
+1
-1
No files found.
setup.py
View file @
261aa80c
...
@@ -19,7 +19,7 @@ def is_flag_set(flag: str) -> bool:
...
@@ -19,7 +19,7 @@ def is_flag_set(flag: str) -> bool:
return
os
.
getenv
(
flag
,
"FALSE"
).
lower
()
in
[
"true"
,
"1"
,
"y"
,
"yes"
]
return
os
.
getenv
(
flag
,
"FALSE"
).
lower
()
in
[
"true"
,
"1"
,
"y"
,
"yes"
]
def
get_features_args
():
def
get_features_args
():
bf16_type
=
os
.
getenv
(
"FLASH_MLA_BF16_TYPE"
,
"
0
"
)
bf16_type
=
os
.
getenv
(
"FLASH_MLA_BF16_TYPE"
,
"
1
"
)
assert
bf16_type
==
"0"
or
bf16_type
==
"1"
,
"bf16_type must be 0 or 1"
assert
bf16_type
==
"0"
or
bf16_type
==
"1"
,
"bf16_type must be 0 or 1"
bf16_mode_names
=
{
"0"
:
"round_toward_zero"
,
"1"
:
"round_half_ulp_truncate"
}
bf16_mode_names
=
{
"0"
:
"round_toward_zero"
,
"1"
:
"round_half_ulp_truncate"
}
print
(
f
"Using BFloat16 rounding mode:
{
bf16_mode_names
.
get
(
bf16_type
,
'unknown'
)
}
"
)
print
(
f
"Using BFloat16 rounding mode:
{
bf16_mode_names
.
get
(
bf16_type
,
'unknown'
)
}
"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment