How to change the batch size in a pipeline?

You can do it in the method call:

examples = ["I hate everyone" ] * 100
classifier(examples, batch_size=10)
1 Like