Spaces:
Running
Running
pro-grammer
commited on
Update model.py
Browse files
model.py
CHANGED
@@ -147,7 +147,7 @@ model.load_state_dict(torch.load("model_weights.pth", map_location=device))
|
|
147 |
model.eval()
|
148 |
|
149 |
# Prompt
|
150 |
-
context = torch.tensor([enc.encode("
|
151 |
|
152 |
# Test generation with a higher number of tokens and adjusted temperature
|
153 |
max_new_tokens = 150 # Increase the token limit for a longer generation
|
|
|
147 |
model.eval()
|
148 |
|
149 |
# Prompt
|
150 |
+
context = torch.tensor([enc.encode("In a faraway land, ")], dtype=torch.long, device=device)
|
151 |
|
152 |
# Test generation with a higher number of tokens and adjusted temperature
|
153 |
max_new_tokens = 150 # Increase the token limit for a longer generation
|