-
Notifications
You must be signed in to change notification settings - Fork 358
Added Namespace parameter for InferenceEndpoints, added option for passing model config directly #147
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
Added Namespace parameter for InferenceEndpoints, added option for passing model config directly #147
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good ! Thanks for the PR, I tested it and it works.
Would be nice to have a bit of doc for the new namespace
arg though
Great!! |
Thanks for the comments! Added in the doc strings :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great ! lgtm, thanks for your contribution :)
…ssing model config directly (#147) 1] I added the `namespace` parameter to the endpoint model config, to allow deploying endpoints from an organization that isn't your private user. - Added the namespace property to the class - Added a static method `nullable_keys()` so that the check for a complete config when creating the endpoint can ignore those. 2] I added the option to specify the model config directly from python code, with a simple check to see if it was given. (Note: I unindented everything after the `yaml.safe_load`, since after the yaml was loaded there was no need to remain inside the scope of accessing the file). --------- Co-authored-by: Clémentine Fourrier <[email protected]>
…ssing model config directly (#147) 1] I added the `namespace` parameter to the endpoint model config, to allow deploying endpoints from an organization that isn't your private user. - Added the namespace property to the class - Added a static method `nullable_keys()` so that the check for a complete config when creating the endpoint can ignore those. 2] I added the option to specify the model config directly from python code, with a simple check to see if it was given. (Note: I unindented everything after the `yaml.safe_load`, since after the yaml was loaded there was no need to remain inside the scope of accessing the file). --------- Co-authored-by: Clémentine Fourrier <[email protected]>
1] I added the
namespace
parameter to the endpoint model config, to allow deploying endpoints from an organization that isn't your private user.nullable_keys()
so that the check for a complete config when creating the endpoint can ignore those.2] I added the option to specify the model config directly from python code, with a simple check to see if it was given. (Note: I unindented everything after the
yaml.safe_load
, since after the yaml was loaded there was no need to remain inside the scope of accessing the file).Sending you sample code to test on slack.