Spaces:
Running
on
Zero
Running
on
Zero
fixing
Browse files- SAE/sae.py +1 -0
SAE/sae.py
CHANGED
@@ -106,6 +106,7 @@ class SparseAutoencoder(nn.Module):
|
|
106 |
|
107 |
@spaces.GPU
|
108 |
def encode(self, x):
|
|
|
109 |
x = x - self.pre_bias
|
110 |
latents_pre_act = self.encoder(x) + self.latent_bias
|
111 |
|
|
|
106 |
|
107 |
@spaces.GPU
|
108 |
def encode(self, x):
|
109 |
+
self = self.to('cuda')
|
110 |
x = x - self.pre_bias
|
111 |
latents_pre_act = self.encoder(x) + self.latent_bias
|
112 |
|