Closed NonStatic2014 closed 2 years ago
Note that for "config", the value should be a string as described here, can you double quote the actual configuration (may need to escape "
within the config as well), i.e. "config" : "{...}"
Another note is that the feature to provide config via load API is available since 22.03, and it is optional. So the above load invocation in 21.08 is actually loading the model with pre-existing model config (the request body is ignored), the equivalent in 22.05 is simply invoking the API with empty request body
Would you mind update below documents to mention which triton version or triton image version we should use?
I'm also looking for a real sample like what I mentioned the issue in the second link above. That will be very helpful for the first time user. Thanks!
Note that you are looking at the main
branch where the documentation is reflecting the latest development, you can switch to the corresponding release branch to checkout the available feature in the release that you are using.
I agree that the documentation can be improved with example usage of the API, as for now, you may look at the test coverage for the usage
The test coverage
is using triton sdk. Do we have any sample using REST API directly?
Not yet, but the comment I mentioned earlier should help with the issue that you are facing. Can you verify it?
Thank you @GuanLuo ! Update the config can make it through in the latest image.
Moving forward, can we add something like "new from 22.01" in the first line of the doc? Here is a sample from Python document.
I still come across the same error message on triton 2.39.0. I use postman to launch the post requst,
/reopen
Note that for "config", the value should be a string as described here, can you double quote the actual configuration (may need to escape
"
within the config as well), i.e."config" : "{...}"
Another note is that the feature to provide config via load API is available since 22.03, and it is optional. So the above load invocation in 21.08 is actually loading the model with pre-existing model config (the request body is ignored), the equivalent in 22.05 is simply invoking the API with empty request body
I tried to double quote the actual configuration but still failed with another error:
Hi @zengqingfu1442 Try with Escaping double quotes of config json similar to this
Hi @zengqingfu1442 Try with Escaping double quotes of config json similar to this
Thanks a lot.
Description I used triton to create a service locally with command below:
Both 22.05 and 21.08 can load the model.
Then i try to unload the model "fashion" with
Both 22.05 and 21.08 can unload the model. Using
curl -X POST http://127.0.0.1:8000/v2/repository/index -v
verified.Then try to load the fashion mode back with below json. It works fine on 21.08 but failed on 22.05.
The error message is
I also tried if load the model without the json payload, since the file name is default name, it can be loaded and scoring can work.
Triton Information triton image: 22.05 triton version: 2.22.0
Are you using the Triton container or did you build it yourself? -> container
To Reproduce See above
Describe the models (framework, inputs, outputs), ideally include the model configuration file (if using an ensemble include the model configuration file for that as well).
Expected behavior 22.05 can load the model as what we see on 21.08.