The string comprising the list of values for each partition can be up to 4K bytes. The total number of values for all partitions cannot exceed 64K-1.
So there is no specific limit on the number of values in a single partition, as long as they fit into the 4K restriction - which you'd obviously hit before the overall 64K-1 limit.
(If you're grouping the IDs arbitrarily - which isn't quite what you said - then hash partitioning might be simpler that maintaining the value lists. Depends what you're actually doing though, and why.)