pro-grammer commited on
Commit
d82bf4b
·
verified ·
1 Parent(s): 0027a44

Update model.py

Browse files
Files changed (1) hide show
  1. model.py +1 -1
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("Once upon a time there was a knight called Bob and he rode into his greatest battle yet")], 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
 
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