Spaces:
Paused
Paused
Tao Wu commited on
Commit ·
06e7b29
1
Parent(s): f5b101a
fix bugs
Browse files- app/embedding_setup.py +1 -0
app/embedding_setup.py
CHANGED
|
@@ -106,6 +106,7 @@ def evaluate(
|
|
| 106 |
**kwargs,
|
| 107 |
)
|
| 108 |
with torch.no_grad():
|
|
|
|
| 109 |
generation_output = rec_adapter.generate(
|
| 110 |
**inputs,
|
| 111 |
generation_config=generation_config,
|
|
|
|
| 106 |
**kwargs,
|
| 107 |
)
|
| 108 |
with torch.no_grad():
|
| 109 |
+
rec_adapter.to(device)
|
| 110 |
generation_output = rec_adapter.generate(
|
| 111 |
**inputs,
|
| 112 |
generation_config=generation_config,
|