Repository navigation
Hold MLOps artifacts in Snowflake stages and score registry versions with run_batch - #115
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Change map
|
86d7e79 to
b9ba641
Compare
42acd3d to
28cdf93
Compare
28cdf93 to
0a24e45
Compare
0a24e45 to
348c337
Compare
348c337 to
ff5a9c6
Compare
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Victsm
left a comment
There was a problem hiding this comment.
Re-reviewed 01a2b87. Snowflake stage/registry checks pass (67 focused tests), and the dependent file/volume/tracking fixes are preserved. The native run_batch lifecycle limitation is documented separately from canonical Trainer prediction records. No new code blocker found; no fresh live Snowflake qualification was performed in this pass.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
… files Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The MLflow runs list shows a run's first input, so a fit logs its training table, then its graph snapshot, then its source tables by name. The snapshot input lists its id and each table's row count as its schema. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Stack: main (#53, #112, #114, #50, #60 merged) → #64 → #115. Merge bottom to top.
Summary
Teams whose data lives only in Snowflake have nowhere to keep Kumo artifacts and cannot score a registered Kumo model inside Snowflake. This PR adds both:
@DB.SCHEMA.STAGE/...path is a file destination ofSnowflakeConnector(Let any sink hold files: FileStoreSink protocol and a chunked filesystem #112'sFileStoreSink, as Hold MLOps artifacts on Unity Catalog volumes through the Files API #114 does for volumes): bundles, snapshot and prediction exports, and the MLOps artifact root. Writes usePUT; reads use presigned ranged URLs, falling back to oneGETper file. Files up to 4 GiB are plain objects; larger ones are parts only kumo reads.KumoModelthat scores entity ids against a stage snapshot in Snowpark Container Services (ModelVersion.run_batchon a GPU pool). kumo-snowflake finds the builder through thekumo_snowflake.registry_modelsentry point. Registering a bundle again reuses its version when the serving environment matches.In the container, the snapshot and the stage assets are read with the container's own Snowflake identity (
_snowflake_serving.py).Usage
Back-compat
SnowflakeConnector@DB.SCHEMA.STAGE/...pathpython_versionorcuda_versionother than the installed oneAPPEND;OVERWRITEempties it first, as on every file store.SNOWFLAKE_FULLstageOSErrornamingSNOWFLAKE_SSE.V<n>.ModelOutputConfig,SnowflakeTrackingserving_snapshot/serving_options; existing calls unchanged.run_batchoutputevaluateorscore_drift.Testing
kumo-snowflake/tests/test_stage_fs.py(in-memory stage): routing, bundles and Parquet through a stage path, listings, exact removes, ranged andGETreads, the occupied-directory rule, refusals, no signed URL in errors.kumo-snowflake/tests/test_registry.py: version reuse, builder arguments, environment refusal, carrier fallback, bundle-only fetch.kumo-engine/test/test_snowflake_model.pyandtest_model_agnostic_mlops.py: a version packaged by snowflake-ml scores likeTrainer.predict; serving options; staged assets load through the loading connector; a stage root registers versions serving its snapshot.run_batchbinary (300/300 rows, labels equal to localpredict) and regression on a GPU pool; all steps as a role with only the documented grants.Change map: see the
kumo-pr-change-mapcomment.🤖 Generated with Claude Code