Repository navigation
|
Hi guys: I tried and failed to load a trained model using TensorFlow in VIRTUAL MACHINE with Linux OS , but it works well in physical machine with the same Linux OS. The specific details are as follows: the dupmed err : ================== |
Replies: 1 comment 1 reply
|
Not a DJL problem. Your VM's CPU is missing an instruction set TensorFlow needs. SIGILL is illegal instruction, the CPU got an opcode it doesn't implement. TensorFlow's official x86_64 Linux builds have required AVX since 1.6 and
Check on both machines: grep -o -m1 'avx[0-9a-z_]*' /proc/cpuinfo | sort -uPhysical will show Fix depends on hypervisor, all of them mean stop hiding host CPU features: KVM/libvirt: Needs a guest reboot, flags are fixed at boot. If you can't change the CPU model there's no official non-AVX TF build. PyTorch and ONNX Runtime have lower baselines and would run. |
Not a DJL problem. Your VM's CPU is missing an instruction set TensorFlow needs.
SIGILL is illegal instruction, the CPU got an opcode it doesn't implement. TensorFlow's official x86_64 Linux builds have required AVX since 1.6 and
tensorflow-native-cpu-2.16.1-linux-x86_64is one of them. Your physical box has AVX, the VM is presenting a generic CPU model that masks it.OnShutdownRunis protobuf static init, so it dies during library load before your code runs. Matches your log, platform detected then gone.Check on both machines: