In this case you won’t be able to use the requires_grad attribute, as it’s defined for the whole parameter.
However, you could zero out the gradients of the specific values which shouldn’t be updated using a hook via param.register_hook.
Note that even with a zero gradient your parameters might still be updated, e.g. if you are using weight decay for all parameters.