If this activation function is defined as a module, you could replace it directly, e.g. via:
model.act = nn.ReLU6()

assuming that all instances of self.act should be changed.
On the other hand, if the functional API was used via e.g. F.relu, then you could write a custom model and override the forward method.