The path probably points to the state_dict, not the model, which is the usual workflow.
If that’s the case, you should create a model instance using its definition:
class MyModel(nn.Module):
    def __init__(self, ...
        ...

model = MyModel()
model.load_state_dict(torch.load('models/...'))