Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -16,6 +16,9 @@ if device.type == 'cuda':
|
|
16 |
print('Memory Usage:')
|
17 |
print('Allocated:', round(torch.cuda.memory_allocated(0)/1024**3,1), 'GB')
|
18 |
print('Cached: ', round(torch.cuda.memory_reserved(0)/1024**3,1), 'GB')
|
|
|
|
|
|
|
19 |
#Load dataset
|
20 |
import pandas as pd
|
21 |
from datasets import load_dataset
|
|
|
16 |
print('Memory Usage:')
|
17 |
print('Allocated:', round(torch.cuda.memory_allocated(0)/1024**3,1), 'GB')
|
18 |
print('Cached: ', round(torch.cuda.memory_reserved(0)/1024**3,1), 'GB')
|
19 |
+
|
20 |
+
ncf_model.to(device)
|
21 |
+
|
22 |
#Load dataset
|
23 |
import pandas as pd
|
24 |
from datasets import load_dataset
|