-
Notifications
You must be signed in to change notification settings - Fork 537
Allow loading of artifacts without needing to activate the artifact store (again) #2545
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
Allow loading of artifacts without needing to activate the artifact store (again) #2545
Conversation
Important Auto Review SkippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the To trigger a single review, invoke the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
Images automagically compressed by Calibre's image-actions ✨ Compression reduced images by 46.9%, saving 248.77 KB.
234 images did not require optimisation. Update required: Update image-actions configuration to the latest version before 1/1/21. See README for instructions. |
…ing-to-activate-the-artifact-store' of https://github.com/zenml-io/zenml into bugfix/OSSK-490-allow-loading-of-artifacts-without-needing-to-activate-the-artifact-store
LLM Finetuning template updates in |
…s-without-needing-to-activate-the-artifact-store
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.
Haven't looked at it in detail yet, just a more general question: What's the technical reason why this is not possible with fileio
anymore and we have to use the artifact store methods in the materializers?
There is one main reason behind it: |
I see, with that in mind the changes in this PR look good to me. |
This might be indeed the case, that usage of some I cannot think of a scenario, where a materializer has to work with some data from outside of the configured artifact store. My reasoning: materializer is used only in steps (using them directly is possible, but is not what is officially supported) and inside a step, we always have a stack set, so we never face multi-artifact store use-case, as of now. If going forward, we will support different artifact stores for different steps inside one pipeline, my assumption still stands, since in one step we only deal with one AS. Does it make any sense or I missed something important? @schustmi |
The scenario I was thinking of was actually copying local directories <-> artifact store. |
I see, so I will merge this one now and we can create a follow-up for that if you find this needed. What can be actually done for the use case you described is also achievable with the artifact store interface, but with a bit more sugar around: with self.artifact_store.open("s3://some_path/05b56688-931a-44f8-8777-035b046e191f.log","rb") as src:
with open("local-file.log","wb") as tgt:
tgt.write(src.read()) |
Describe changes
I fixed the logic of reading artifacts from ZenML to achieve the following snippet to work as usual, without the need to activate the stack before that:
Pre-requisites
Please ensure you have done the following:
develop
and the open PR is targetingdevelop
. If your branch wasn't based on develop read Contribution guide on rebasing branch to develop.Types of changes