Generally 1/8th or 1/10th of the commercial batch size is used for process optimisation. However it also differs from country to country because you may have to follow the local drug authority guidelines apart from the ICH. However, the best to go is 1/10th of the commercial batch size.
For Solid Dosage:Two Pilot Scale batches of 100,000 units or at least 10% of proposed production whichever is greater, Third batch can be smaller than 10% of proposed production but NLT 25% of the pilot scale
For Parenteral: Two batches at least 10% of proposed commercial size (i.e. pilot scale size) or 50 L whichever is larger. Third batch can be smaller than 10% of proposed production but NLT 25% of the pilot scale
All submission batches manufactured under CGMP with same formulation, same specifications, and at the commercial site