Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -120,7 +120,7 @@ model = TransformerWrapper(
|
|
| 120 |
)
|
| 121 |
)
|
| 122 |
|
| 123 |
-
model = AutoregressiveWrapper(model, ignore_index=PAD_IDX, pad_value=PAD_IDX)
|
| 124 |
|
| 125 |
print('=' * 70)
|
| 126 |
print('Loading model checkpoint...')
|
|
|
|
| 120 |
)
|
| 121 |
)
|
| 122 |
|
| 123 |
+
model = AutoregressiveWrapper(model, ignore_index=PAD_IDX, pad_value=PAD_IDX, return_cache=True)
|
| 124 |
|
| 125 |
print('=' * 70)
|
| 126 |
print('Loading model checkpoint...')
|