By default, Trainer.train() will train the entire model (i.e. all layers).
To freeze certain layers before training, you can do that as follows:
for name, param in model.named_parameters():
     if name == "...":
        param.requires_grad = False