Can't load two versions of same model from config file
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"
}
]
}
Note that specifying two .mar files containing models with different names (irrespective of version) works just fine - both endpoints come up.
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
My bad. It now seems to be working as advertised.