question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Model API QA: Errors met when testing model training and replacing loaded model

See original GitHub issue

Problem description:

  1. 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'"
  1. 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:closed
  • Created 2 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
ancalitacommented, Nov 16, 2021

@ancalita I think the model replacement 400s because of the absolute path - was the model really at the root of the machine?

@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 😅

1reaction
melindaloubser1commented, Nov 22, 2021

@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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found