No it has no default value because it is supposed to be passed at init either because:

the user is loading a pretrained model and its config has some num_labels

the user is passes num_labels=n when using a generic pretrained model and it udpates the config.