-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Cannot create artifact when using func_to_container_op #2395
Comments
In the last version you have to define yourself the container op outputs artifacts:
In the pipeline add the code above and it should work with the correct path (fix path). If you're using func to container op you can also define a namedtuple with type: UI_metadata and Metrics such as explained here: |
This might not be a good idea.
|
Yes, that's the correct way. def test() -> NamedTuple('MyDivmodOutput', [('mlpipeline_ui_metadata', 'UI_metadata'), ('mlpipeline_metrics', 'Metrics')]):
...
return (json.dumps(metadata), json.dumps(metrics)) |
In addition to declaring the mlpipeline_metrics output, what other steps do i need to do in order to accomplish the original ask of this thread which is having artifacts appear under "Run Outputs" when working with func_to_container_op? I see the artifact is saved as an argo artifact with a .tgz extension in the minio storage server I have deployed, but KFP does not seem to display it from there. |
/kind bug
What steps did you take and what happened:
Trying to create a simple artifact and make it display in "Run output" for a pipeline
The following code is used to create the pipeline:
What did you expect to happen:
The pipeline job compltes as expected, but there is noehting in "Run output".
Environment:
Python module version:
kfp (0.1.31.2)
kfp-server-api (0.1.18.3)
The text was updated successfully, but these errors were encountered: