I’m facing the exact same issue. However, I suspect mine is related to quantized model. I’m using PyTorch 1.7.1 to generate the model:

import torchvision, torch
model = torchvision.models.quantization.mobilenet_v2(pretrained=True, quantize=True)
torch.save(model.state_dict(), “model.pt”)

In Android app, I use:

dependencies {
implementation ‘androidx.appcompat:appcompat:1.1.0’
implementation ‘org.pytorch:pytorch_android:1.7.1’
implementation ‘org.pytorch:pytorch_android_torchvision:1.7.1’
}

I got:

Process: org.pytorch.helloworld, PID: 8644
java.lang.RuntimeException: Unable to start activity ComponentInfo{org.pytorch.helloworld/org.pytorch.helloworld.MainActivity}: com.facebook.jni.CppException: [enforce fail at inline_container.cc:222] . file not found: archive/constants.pkl
(no backtrace available)

Is there something to be done to run quantized model?
I also see the same error w/ Android benchmark binary and iOS benchmark app.
@IvanKobzarev any advice on this?