How do i make a discord bot?
How do i make a discord bot from this module
That’s a discord question, not an AI question.
i already have a discord bot. what i meant is how do i apply the module to my discord bot?
That’s still not an AI question. I have no idea how discord bots work, but the HF documentation details quite clearly how to generate from the model. Everything else is a Discord question.
How do i make the GPT-J send message?
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("EleutherAI/gpt-j-6B")
model = AutoModelForCausalLM.from_pretrained("EleutherAI/gpt-j-6B")
model.whattotypehere?
How do i give prompt for the text generation?
Please just read the documentation
Any bot for that matter. This API endpoint that is available only gives very short prompts. Is there a way to either elongate the responses or maybe use previous responses as an input for the next?