Skip to content

Conversation

shaltielshmid
Copy link
Contributor

@shaltielshmid shaltielshmid commented Apr 7, 2024

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).

Sending you sample code to test on slack.

Copy link
Member

@NathanHB NathanHB left a 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

@shaltielshmid
Copy link
Contributor Author

Great!!
I'll add in the docs later tonight or tomorrow.

@shaltielshmid
Copy link
Contributor Author

Thanks for the comments! Added in the doc strings :)

Copy link
Member

@NathanHB NathanHB left a 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 :)

@NathanHB NathanHB merged commit 23987aa into huggingface:main Apr 10, 2024
hynky1999 pushed a commit that referenced this pull request May 22, 2025
…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]>
NathanHB pushed a commit that referenced this pull request Sep 19, 2025
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants