Tijmen2 commited on
Commit
8ac347d
1 Parent(s): 75691ae

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -1
README.md CHANGED
@@ -45,7 +45,8 @@ def ask_cosmosage(question):
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
  ## Comparison to cosmosage_v1
51
 
 
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
 
51
  ## Comparison to cosmosage_v1
52