Spaces:
Runtime error
Runtime error
rynmurdock
commited on
Commit
•
e461572
1
Parent(s):
8d3c278
app.py
CHANGED
@@ -174,7 +174,7 @@ block_size = min(block_size, tokenizer_decoder.max_len_single_sentence)
|
|
174 |
|
175 |
# Load full model
|
176 |
output_full_dir = '/home/ryn_mote/Misc/generative_recommender/text_space/'
|
177 |
-
checkpoint = torch.load(os.path.join(model_path, 'training.bin'))
|
178 |
|
179 |
# Chunyuan: Add Padding token to GPT2
|
180 |
special_tokens_dict = {'pad_token': '<PAD>', 'bos_token': '<BOS>', 'eos_token': '<EOS>'}
|
|
|
174 |
|
175 |
# Load full model
|
176 |
output_full_dir = '/home/ryn_mote/Misc/generative_recommender/text_space/'
|
177 |
+
checkpoint = torch.load(os.path.join(model_path, 'training.bin'), map_location=torch.device(DEVICE))
|
178 |
|
179 |
# Chunyuan: Add Padding token to GPT2
|
180 |
special_tokens_dict = {'pad_token': '<PAD>', 'bos_token': '<BOS>', 'eos_token': '<EOS>'}
|