DrDrek commited on
Commit
5c6158f
1 Parent(s): 1808797

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -9
README.md CHANGED
@@ -1,9 +1 @@
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)
 
1
+ prompt generation using gpt neo