twewy-discord-chatbot icon indicating copy to clipboard operation
twewy-discord-chatbot copied to clipboard

Why inputs and labels are same while training?

Open vaishalishrivastava opened this issue 2 years ago • 1 comments

for step, batch in enumerate(epoch_iterator):

            # Skip past any already trained steps if resuming training
            if steps_trained_in_current_epoch > 0:
                steps_trained_in_current_epoch -= 1
                continue

            inputs, labels = (batch, batch)
            if inputs.shape[1] > 1024: continue
            inputs = inputs.to(args.device)
            labels = labels.to(args.device)
            model.train()
            outputs = model(inputs, labels=labels)

vaishalishrivastava avatar Apr 10 '22 21:04 vaishalishrivastava

Yeah, I spot that too. I also observe other repos of training chat bot based on gpt2 and they do the similar thing. I really doubt AI can learn the style of speech from a specific character using this method of training.

whiteeat avatar Oct 02 '22 12:10 whiteeat