Set a maximum input length to batch longer inputs without truncating them.