src/transformers/models/whisper/modeling_whisper.py/WhisperEncoder/_freeze_parameters
class WhisperEncoder:    def _freeze_parameters(self):
        for param in self.parameters():
            param.requires_grad = False
        self._requires_grad = False