Last active
March 17, 2023 07:00
-
-
Save EricFillion/e0205f9cb9f501191384cf917a9df0f3 to your computer and use it in GitHub Desktop.
GPT-Neo For Answering Questions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# pip install happytransformer | |
from happytransformer import HappyGeneration | |
happy_gen = HappyGeneration("GPT-NEO", "EleutherAI/gpt-neo-125M") | |
result = happy_gen.generate_text("What is natural language processing?") | |
print(result.text) | |
# ---------------------------- | |
# Result: | |
# Natural language processing (NLP) is a branch of computer science that uses computer language to describe the way in which a language is processed. NLP is a branch of computer science that uses computer language to describe the way in which a language |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What is the length of the answers it produces?