Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -36,7 +36,8 @@ class LayerWrapper(torch.nn.Module):
|
|
36 |
return layer_outputs
|
37 |
|
38 |
moondream.text_model.transformer.h = torch.nn.ModuleList([
|
39 |
-
LayerWrapper(layer, vector, 4.2)
|
|
|
40 |
])
|
41 |
|
42 |
@spaces.GPU(duration=10)
|
|
|
36 |
return layer_outputs
|
37 |
|
38 |
moondream.text_model.transformer.h = torch.nn.ModuleList([
|
39 |
+
LayerWrapper(layer, vector, 4.2)
|
40 |
+
for layer, vector in zip(moondream.text_model.transformer.h, control_vectors)
|
41 |
])
|
42 |
|
43 |
@spaces.GPU(duration=10)
|