Model API QA: Errors met when testing model training and replacing loaded model
See original GitHub issueProblem description:
- Testing
/model/train
endpoint with the example in the docs leads to a YAML validation error (400 Bad Request error:
"The request body does not contain valid YAML. Error: Failed to validate YAML. Please make sure the file is correct and all mandatory parameters are specified. Here are the errors found during validation:\n in Line 1:\n Value 'b'- intent: greet\\\\n examples: |\\\\n - hey\\\\n - hello\\\\n - hi'' is not a list. Value path: '/nlu'"
- Testing PUT
/model
endpoint with this request body (existing file on disk) leads to 400 Bad Request:
{
"model_file": "/models/20211110-091805-impulsive-birth.tar.gz"
}
It seems not to be able to identify the path given, this is the response error message:
"Agent with name '/models/20211110-091805-impulsive-birth.tar.gz' could not be loaded."
The debug log shows this user warning:
UserWarning: No valid configuration given to load agent. Agent loaded with no model!
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
Types of Software Testing: Different Testing Types with Details
In this tutorial, I have covered almost all software testing types ... Load testing is testing of an application's stability and response ...
Read more >Training & Test Error: Validating Models in Machine Learning
Calculating any form of error rate for a predictive model is called model validation. As we discussed, you need to validate your models...
Read more >Performance Testing Tutorial – Types (Example) - Guru99
1. Know your physical test environment, production environment and what testing tools are available. 2. This includes goals and constraints for throughput, response...
Read more >11 Ways to Improve Software Testing through Planning, Work ...
One of the main reasons for such failures turned out to be poor quality assurance during the software development process. The chief purpose...
Read more >NVIDIA Deep Learning TensorRT Documentation
TensorRT provides API's via C++ and Python that help to express deep learning models via the Network Definition API or load a pre-defined...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@melindaloubser1 Oh that could have been the problem, not using absolute path, because indeed the models were not really at the root directory. But probably this could be made clearer in the docs (to use absolute paths) for those naive folks like myself copy-pasting examples 😅
@tayfun Could you get the model replacement to work? Since the docs change the path instructions only, seems the endpoint itself may not be behaving as it ought?