In that case something like this should work:
modelA.roi_head.load_state_dict(modelB.roi_head.state_dict())

Alternatively, remove the roi_heads strings from the checkpoint keys and try:
checkpoint = chpt['model']
# Remove 'roi_heads'
checkpoint_cleaned = ...
model.roi_head.load_state_dict(checkpoint_cleaned)