Sharathhebbar24 commited on
Commit
63f8af3
1 Parent(s): 3ccfebf

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +15 -1
README.md CHANGED
@@ -8,4 +8,18 @@ tags:
8
  - gpt2-medium
9
  ---
10
 
11
- This model is a finetuned version of ```gpt2-medium``` using ```databricks/databricks-dolly-15k dataset```
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
  - gpt2-medium
9
  ---
10
 
11
+ This model is a finetuned version of ```gpt2-medium``` using ```databricks/databricks-dolly-15k dataset```
12
+
13
+
14
+ ```python
15
+ >>> from transformers import pipeline, set_seed
16
+ >>> generator = pipeline('text-generation', model='Sharathhebbar24/Instruct_GPT')
17
+ >>> set_seed(42)
18
+ >>> generator("Hello, I'm a language model,", max_length=30, num_return_sequences=5)
19
+
20
+ [{'generated_text': "Hello, I'm a language model, a language for thinking, a language for expressing thoughts."},
21
+ {'generated_text': "Hello, I'm a language model, a compiler, a compiler library, I just want to know how I build this kind of stuff. I don"},
22
+ {'generated_text': "Hello, I'm a language model, and also have more than a few of your own, but I understand that they're going to need some help"},
23
+ {'generated_text': "Hello, I'm a language model, a system model. I want to know my language so that it might be more interesting, more user-friendly"},
24
+ {'generated_text': 'Hello, I\'m a language model, not a language model"\n\nThe concept of "no-tricks" comes in handy later with new'}]
25
+ ```