smaller tests are faster tests [pr] (#10704)

* remove del spam from CI

* more

* preconstruct default buffer spec

* ignore those errors

* check exception

* more exception check

* skip stuff

* smaller tests mean faster tests

* a few more
This commit is contained in:
George Hotz
2025-06-08 10:54:19 -07:00
committed by GitHub
parent 67a1c92fc0
commit 4e2c3560b4
6 changed files with 19 additions and 17 deletions

View File

@@ -1233,8 +1233,8 @@ class TestSchedule(unittest.TestCase):
def test_adam_step_fusion(self):
with Tensor.train():
x = Tensor.empty(4, 64, 768)
layer = nn.Linear(768, 768*4)
x = Tensor.empty(4, 64, 32)
layer = nn.Linear(32, 32*4)
_realize_weights(layer)
opt = nn.optim.Adam(nn.state.get_parameters(layer), lr=1e-4)
layer(x).relu().sum().backward()