Update README.md
Browse files
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|