serve icon indicating copy to clipboard operation
serve copied to clipboard

Can't load two versions of same model from config file

Open fbbradheintz opened this issue 6 years ago • 3 comments

I attempted to start a model server with two versions of the same model specified in the config options. Both model archives had a model name of "d161", with one of them having version number 1.0 and the other version 1.1. The two files were named d161_1_0.mar and d161_1_1.mar and they were both in the model store directory. My config.properties contained the line:

load_models=d161_1_0.mar,d161_1_1.mar

The expected outcome is that I should have both model versions available.

The actual outcome is that only the later one is loaded, according to the output of curl http://127.0.0.1:8081/models:

{
  "models": [
    {
      "modelName": "d161",
      "modelUrl": "d161_1_1.mar"
    }
  ]
}

fbbradheintz avatar Feb 21 '20 01:02 fbbradheintz

Note that specifying two .mar files containing models with different names (irrespective of version) works just fine - both endpoints come up.

fbbradheintz avatar Feb 21 '20 01:02 fbbradheintz

As indicated earlier in #48, http://127.0.0.1:8081/models returns only the default version of the registered models. If you are looking for all the versions of a model use following api - http://127.0.0.1:8081/models/d161/all

codinnvrends avatar Feb 21 '20 05:02 codinnvrends

My bad. It now seems to be working as advertised.

fbbradheintz avatar Feb 29 '20 00:02 fbbradheintz