Skip to content

Commit 7576b9c

Browse files
committed
add week 2 tests
Signed-off-by: Alex Chi <[email protected]>
1 parent 84cd148 commit 7576b9c

File tree

7 files changed

+7
-1
lines changed

7 files changed

+7
-1
lines changed

tests/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def assert_allclose(
2828
atol = atol or 1.0e-8
2929
elif precision == np.float16:
3030
rtol = rtol or 1.0e-2
31-
atol = atol or 1.0e-6
31+
atol = atol or 1.0e-5
3232
assert a.shape == b.shape
3333
if not np.allclose(a, b, rtol=rtol, atol=atol):
3434
print("a=", a)
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../tests/test_attention.py

tests_ref_impl_week2/test_basics.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../tests/test_basics.py
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../tests/test_layer_norm.py

tests_ref_impl_week2/test_rope.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../tests/test_rope.py

tests_ref_impl_week2/tiny_llm_base.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from tiny_llm_week2_ref import *

tests_ref_impl_week2/utils.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../tests/utils.py

0 commit comments

Comments
 (0)