-
Notifications
You must be signed in to change notification settings - Fork 26
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
Update from_registry #224
Update from_registry #224
Conversation
I think ideally there are only 2 cases:
I think this should work out of the box except for the flag we currently set to indicate if it is a local component or not: Line 55 in 50a2796
This is used by the |
hmmm: I'm not attached to the current way (it has its downsides) so I'm fine with changing it but indeed we need to have a robust and transparent way of determining when to build what. Braindump:
|
How would we handle this in the Kubeflow compiler? I would think this breaks the non-development way of running the component.
I don't mind making this explicit. The Kubeflow compiler could just ignore this or also build the images if we know which registry to push to. Another option is that we expect a fixed directory structure for a component, where the |
I think we need to decide if we want to add build functionality to the kubeflow compiler aswel? |
Not sure if we want to do it right now, but it would be nice to have the option. I don't think this should be the deciding factor though, we can always ignore the mechanism for runners that don't support building. The more I think about it, the more I think working with a fixed directory structure and detecting the |
Ok let's do this then, we can make it very explicit in the logs. |
I summarized the discussion here in #251. Will close this for now. |
Currently the
from_registry
method accepts bothname
andcomponent_spec
arguments, and as seen here both are provided.However, the
name
is only being used in case the user doesn't specify acomponent_spec_path
as seen here.Hence - please correct me if I'm wrong - there are 3 ways to create a component:
now there's a third case, in which you want to use a reusable component (like
load_from_hf_hub
) but want to provide a custom component spec. I guess for this use case you can just useComponentOp
with your own spec that you overwrote from one of the existing ones, or do you need to usefrom_registry
?