There is an issue about it and it’s not fixed yet: https://github.com/pytorch/pytorch/issues/14573 73. Currently the easiest way is to compile libtorch with the protobuf library that grpc uses, or compile grpc with the protobuf library that libtorch uses.