Update README.md
Browse files
README.md
CHANGED
@@ -49,7 +49,8 @@ prompt = f"### Human: Please summarize the following article.\n\n{article}.\n###
|
|
49 |
|
50 |
inputs = tokenizer(header + prompt, return_tensors="pt")
|
51 |
sample = model.generate(**inputs, do_sample=True, max_new_tokens=2048, top_k=100, eos_token_id=50256)
|
52 |
-
|
|
|
53 |
```
|
54 |
|
55 |
## Citation
|
|
|
49 |
|
50 |
inputs = tokenizer(header + prompt, return_tensors="pt")
|
51 |
sample = model.generate(**inputs, do_sample=True, max_new_tokens=2048, top_k=100, eos_token_id=50256)
|
52 |
+
output = tokenizer.decode(sample[0])
|
53 |
+
print(output.strip().replace("Assistant:", ""))
|
54 |
```
|
55 |
|
56 |
## Citation
|