-
Notifications
You must be signed in to change notification settings - Fork 863
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
Improve kserve protocol version handling #2957
Improve kserve protocol version handling #2957
Commits on Feb 29, 2024
-
fix(kserve): ensure there's a default protocol configured
The current implementation retrieves the protocol to use from the "PROTOCOL_VERSION" environment variable however there's no default value which will trigger an error when served through Kserve as the base class does a protocol check in the predict method that will fail with None. The default protocol uses the same value as the base class.
Configuration menu - View commit details
-
Copy full SHA for af2f3c7 - Browse repository at this point
Copy the full SHA af2f3c7View commit details -
Configuration menu - View commit details
-
Copy full SHA for e25f6cd - Browse repository at this point
Copy the full SHA e25f6cdView commit details -
feat(kserve): make configuration file path configurable
This will allow to make the wrapper easier to test beside making it possible to to change where the file should be looked for.
Configuration menu - View commit details
-
Copy full SHA for c709369 - Browse repository at this point
Copy the full SHA c709369View commit details -
Configuration menu - View commit details
-
Copy full SHA for 675f0ea - Browse repository at this point
Copy the full SHA 675f0eaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0642144 - Browse repository at this point
Copy the full SHA 0642144View commit details -
fix(kserse): add None handling to the wrapper
In case None is passed, keep the default value set in the base __init__. This makes TorchserveModel behave in the same fashion as the base class.
Configuration menu - View commit details
-
Copy full SHA for 2cf85e3 - Browse repository at this point
Copy the full SHA 2cf85e3View commit details -
refactor(test): rewrite wrapper test to be more complete
It now validates that the protocol version is passed properly as well as failure if an invalid protocol is given.
Configuration menu - View commit details
-
Copy full SHA for 54f49eb - Browse repository at this point
Copy the full SHA 54f49ebView commit details -
test: remove kserve pytest tests
The overhead required to run the tests outweighs it benefits. The thing to keep in mind is that the fix allows to run models through kserve deployments prior to 0.11.1.
Configuration menu - View commit details
-
Copy full SHA for 15336a2 - Browse repository at this point
Copy the full SHA 15336a2View commit details