Tijmen2 commited on
Commit
ba71829
1 Parent(s): 991a2f2

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -44,7 +44,7 @@ def ask_cosmosage(question):
44
  torch.tensor([[28705]]),
45
  tokenizer.encode("ASSISTANT:", add_special_tokens=False, return_tensors="pt")
46
  ], dim=-1).to(device)
47
- generated_ids = model.generate(input_ids, max_length=input_ids.shape[1] + 1000, do_sample=True)
48
  return tokenizer.decode(generated_ids[0], skip_special_tokens=True)
49
  ```
50
 
 
44
  torch.tensor([[28705]]),
45
  tokenizer.encode("ASSISTANT:", add_special_tokens=False, return_tensors="pt")
46
  ], dim=-1).to(device)
47
+ generated_ids = model.generate(input_ids, max_length=input_ids.shape[1] + 1000, do_sample=True, temperature=0.4)
48
  return tokenizer.decode(generated_ids[0], skip_special_tokens=True)
49
  ```
50