How do i make a discord bot?

#3
by userman - opened

How do i make a discord bot from this module

stellaathena changed discussion status to closed
EleutherAI org

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?

userman changed discussion status to open
EleutherAI org

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.

stellaathena changed discussion status to closed

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?

userman changed discussion status to open
stellaathena changed discussion status to closed

How do i give prompt for the text generation?

userman changed discussion status to open
EleutherAI org

Please just read the documentation

stellaathena changed discussion status to closed

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?

Sign up or log in to comment