chore: fix loar for moe model (#608)

This commit is contained in:
Anchen 2024-03-24 01:22:11 +11:00 committed by GitHub
parent b8a348c1b8
commit 494cdf8e96
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -189,7 +189,6 @@ def train(
state = [model.state, optimizer.state] state = [model.state, optimizer.state]
@partial(mx.compile, inputs=state, outputs=state)
def step(batch): def step(batch):
# Forward and backward pass # Forward and backward pass
(lvalue, toks), grad = loss_value_and_grad(model, *batch) (lvalue, toks), grad = loss_value_and_grad(model, *batch)