Hi all,
I am trying to use ensemble decoding using the OpenNMT-py REST server, but I am not sure how to pass the list of my models in config.json. My config file looks something like this:
"models_root": "./models/dev",
"models": [
{
"id": 1,
"models_root": "./models/dev",
"model": "model1.pt",
"load": true,
"opt": {
"batch_size": 1,
"replace_unk": true,
"verbose": true,
"n_best": 5,
"model": "model1.pt model2.pt"
}
}
]
}
How do I specify my list of models in config.json? When I pass a list to “model” I get an error as it expects a single model and when I pass a list to opt.model, nothing happens, and it just uses the single model passed to “model”.
Appreciate any help!