RedisAI / RedisAI-MLflow-Demo

A Demo showing RedisAI-MLflow integration
Apache License 2.0
3 stars 1 forks source link

Error loading model only version 3 supported by redis #2

Open jrots opened 3 years ago

jrots commented 3 years ago

Hi, I got the following error loading the model in redis: redis.exceptions.ResponseError: version_ <= kMaxSupportedFileFormatVersion INTERNAL ASSERT FAILED at ../caffe2/serialize/inline_container.cc:132, please report a bug to PyTorch. Attempted to read a PyTorch file with version 4, but the maximum supported version for reading is 3.

When looking to the run metadata file it indeed states:

% cat .../mlruns/0/1ce9dd68f14d42a4957097042da756bd/meta.yaml
artifact_uri: file://.../mlruns/0/1ce9dd68f14d42a4957097042da756bd/artifacts
end_time: 1604957653496
entry_point_name: ''
experiment_id: '0'
lifecycle_stage: active
name: ''
run_id: 1ce9dd68f14d42a4957097042da756bd
run_uuid: 1ce9dd68f14d42a4957097042da756bd
source_name: ''
source_type: 4

source_type: 4.. is there a way to force version 3 to be written, some extra param too mlflow.torchscript.log_model ? Thanks! (running latest redis version build from : https://github.com/RedisAI/RedisAI)