Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jerrrrry
infinicore
Commits
7e7528cd
Commit
7e7528cd
authored
Apr 25, 2025
by
Zimin Li
Browse files
issue/200: updata fp16 and fp32 tolerance for add and swiglu in python tests
parent
11e7df93
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
test/infiniop/add.py
test/infiniop/add.py
+2
-1
test/infiniop/swiglu.py
test/infiniop/swiglu.py
+2
-1
No files found.
test/infiniop/add.py
View file @
7e7528cd
...
@@ -62,7 +62,8 @@ _TENSOR_DTYPES = [torch.float16, torch.float32]
...
@@ -62,7 +62,8 @@ _TENSOR_DTYPES = [torch.float16, torch.float32]
# Tolerance map for different data types
# Tolerance map for different data types
_TOLERANCE_MAP
=
{
_TOLERANCE_MAP
=
{
torch
.
float16
:
{
"atol"
:
1e-4
,
"rtol"
:
1e-2
},
torch
.
float16
:
{
"atol"
:
1e-3
,
"rtol"
:
1e-3
},
torch
.
float32
:
{
"atol"
:
1e-7
,
"rtol"
:
1e-7
},
}
}
DEBUG
=
False
DEBUG
=
False
...
...
test/infiniop/swiglu.py
View file @
7e7528cd
...
@@ -61,7 +61,8 @@ _TENSOR_DTYPES = [torch.float16, torch.float32]
...
@@ -61,7 +61,8 @@ _TENSOR_DTYPES = [torch.float16, torch.float32]
# Tolerance map for different data types
# Tolerance map for different data types
_TOLERANCE_MAP
=
{
_TOLERANCE_MAP
=
{
torch
.
float16
:
{
"atol"
:
1e-4
,
"rtol"
:
1e-2
},
torch
.
float16
:
{
"atol"
:
1e-3
,
"rtol"
:
1e-3
},
torch
.
float32
:
{
"atol"
:
2e-7
,
"rtol"
:
1e-7
},
}
}
DEBUG
=
False
DEBUG
=
False
...
...
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