You could treat each occurrence of a class as the positive sample and could calculate the pos_weight for each class.
I.e. if your complete dataset contains 100 samples in total, 90 class0 samples, and 80 class1 samples, your pos_weight could be calculated as negative/positive = [10/90, 20/80].