Artifact Management System Implementation #862
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Why
Adds artifact management capabilities to the Clarifai Python SDK for storing/retrieving model weights, datasets, and other binary files with version control.
How
SDK Client Classes:
Artifact(clarifai/client/artifact.py): CRUD operations, listing, existence checksArtifactVersion(clarifai/client/artifact_version.py): Streaming upload/download with 14MB chunks, retry logic, progress trackingBuilder Pattern:
ArtifactBuilder(clarifai/runners/artifacts/artifact_builder.py): Orchestrates workflows, parses artifact pathsCLI Commands:
clarifai artifact list users/user123/apps/app456 clarifai artifact cp ./model.pt users/user123/apps/app456/artifacts/my-model clarifai artifact get users/user123/apps/app456/artifacts/my-model clarifai af ls users/user123/apps/app456 # alias supportPath format:
users/{user_id}/apps/{app_id}/artifacts/{artifact_id}[/versions/{version_id}]Tests
Notes
clarifai-grpc>=11.10.10for Artifacts stub supportpipeline/pipeline_stepclient separation pattern💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.