src/transformers/models/bit/modeling_bit.py/BitPreTrainedModel/_set_gradient_checkpointing
class BitPreTrainedModel:    def _set_gradient_checkpointing(self, module, value=False):
        if isinstance(module, BitModel):
            module.gradient_checkpointing = value