Luca0867 commited on
Commit
4a39675
·
verified ·
1 Parent(s): 70ce745

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -3
README.md CHANGED
@@ -19,9 +19,9 @@ It has been trained using [TRL](https://github.com/huggingface/trl).
19
  ```python
20
  from transformers import pipeline
21
 
22
- question = "If you had a time machine, but could only go to the past or the future once and never return, which would you choose and why?"
23
- generator = pipeline("text-generation", model="Luca0867/out_1", device="cuda")
24
- output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
25
  print(output["generated_text"])
26
  ```
27
 
 
19
  ```python
20
  from transformers import pipeline
21
 
22
+ question = "Write a Python function to implement insertion sort on a list of floating-point numbers and return the sorted list."
23
+ generator = pipeline("text-generation", model="Luca0867/selfinstruct")
24
+ output = generator([{"role": "user", "content": question}], max_new_tokens=1024, return_full_text=False)[0]
25
  print(output["generated_text"])
26
  ```
27