DrDrek commited on
Commit
1808797
1 Parent(s): 1c1d227

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +9 -1
README.md CHANGED
@@ -1 +1,9 @@
1
- prompt generation using gpt neo
 
 
 
 
 
 
 
 
 
1
+ prompt generation using gpt neo
2
+ Use it in transformers :-
3
+
4
+ from transformers import AutoTokenizer, AutoModelForCausalLM
5
+ from transformers import pipeline
6
+ tokenizer = AutoTokenizer.from_pretrained("DrDrek/prompt_generation")
7
+ model = AutoModelForCausalLM.from_pretrained("DrDrek/prompt_generation")
8
+ generator = pipeline('text-generation', model=model,tokenizer=tokenizer)
9
+ generator("white horse in clouds,", do_sample=True, min_length=20)