-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Model API QA: Errors met when testing model training and replacing loaded model #10148
Comments
Found the same - @tayfun I see you're assigned so maybe you already saw this, but it expects literal
|
@ancalita I think the model replacement 400s because of the absolute path - was the model really at the root of the machine? If I follow the doc and use the full path to an existing model, instead of a 400 I get a 204, but the loaded model's name doesn't change:
status remains the same as before:
there's only a log about
|
Also: After unloading the model with a |
@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 😅 |
Yes, yes you are both right @melindaloubser1 @ancalita . I need to update the documentation (and remove obsolete code which was handling JSON since only YAML is supported now). I'm struggling with redocly, specifically only using yaml in documentation has not been easy. |
^^ I've had a fight with the API spec and YAML example snippets too, really cannot figure out what the magic is there besides that specifying the ref to the snippet separately for both schema & example sort-of works |
@melindaloubser1 You're right. I had too much confidence in OpenAPI and redocly I think. It seems XML and YAML are not supported directly, see Redocly/redoc#492 (comment) |
@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? |
Problem description:
/model/train
endpoint with the example in the docs leads to a YAML validation error (400 Bad Request error:/model
endpoint with this request body (existing file on disk) leads to 400 Bad Request: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!
The text was updated successfully, but these errors were encountered: