Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lehner committed Jan 16, 2025
1 parent 25be8c7 commit 275a28e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/gpt/ml/layer/parallel_transport.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ def __init__(
self.n_weights = 0
self.o_weights = []

self.access_cache = {}

t = g.timer("parallel_transport")

t("pre-compute")
Expand All @@ -50,7 +48,7 @@ def __init__(
m @= U_dim * g.cshift(m, dim, 1)
disp -= 1
while disp < 0:
m @= g.cshift(m * g.adj(U_dim), dim, -1)
m @= g.cshift(g.adj(U_dim) * m, dim, -1)
disp += 1
self.matrices.append(m)
t()
Expand Down Expand Up @@ -103,5 +101,5 @@ def projected_gradient_adj(self, weights, layer_input, left):

if g.default.is_verbose("parallel_transport_performance"):
g.message(t)

return [ileft]

0 comments on commit 275a28e

Please # to comment.