run_classifier.py:TypeError: forward() missing 1 required positional argument: 'input_ids'
when I use my dataset， forward() missing 1 required positional argument: 'input_ids' ,but I can get "input_ids, input_mask, segment_ids, label_ids" in batch.
I ran into the same error and fixed it by using this instead:

[Pull Request](https://github.com/huggingface/pytorch-pretrained-BERT/pull/604)

Haven't tried my full dataset yet but on a slice, it worked well!

Edit: On the full dataset I still get the error.

Edit2: 
Change the train data loader to drop the last "incomplete" batch as a workaround:

> train_dataloader = DataLoader(train_data, sampler=train_sampler, batch_size=args.train_batch_size, drop_last=True)<|||||>Same error. I solved this problem by add "CUDA_VISIBLE_DEVICES=0" in command line.
I guess this problem caused by "DataParallel" which splits and sends batch to GPUs. In some case, batch_size is less than the number of GPU. In consequence, model on extra gpu just get an empty input.
BTW，you should use  @AlanHassen 's solution in training stage.<|||||>same error when use my dataset.   File "run_classifier.py",   TypeError: forward() missing 1 required positional argument: 'input_ids'.

Add:
i  change the default eval_batch_size from 8 to 12, it can avoid this error.
you can change the eval_batch_size to some other number.

of course, this bug should finally be solved by code. 

<|||||>This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
