mlrun 1.6.3rc13__py3-none-any.whl → 1.6.4rc1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,7 +11,7 @@
11
11
  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
- #
14
+
15
15
  import abc
16
16
  import collections
17
17
  import dataclasses
@@ -20,13 +20,17 @@ import json
20
20
  import os
21
21
  import re
22
22
  from typing import Any, ClassVar, Dict, List, Optional, Tuple, Type, Union
23
+ from urllib.parse import urlparse
23
24
 
25
+ import fsspec
24
26
  import numpy as np
25
27
  import pandas as pd
28
+ import pyarrow
26
29
  import requests
27
30
  import v3io
28
31
  import v3io.dataplane
29
32
  import v3io_frames
33
+ import v3iofs # noqa: F401, required for V3IO file system with fsspec
30
34
  from v3io_frames.frames_pb2 import IGNORE
31
35
 
32
36
  import mlrun.common.helpers
@@ -720,6 +724,21 @@ class BatchProcessor:
720
724
  )
721
725
  return
722
726
 
727
+ except pyarrow.ArrowInvalid:
728
+ target_path = m_fs.status.targets[0].path
729
+ fs = fsspec.filesystem(urlparse(target_path).scheme)
730
+ paths = fs.glob(target_path + "/**")
731
+ logger.warn(
732
+ "Parquet found, but could not be read. Listing the files "
733
+ "and folders in the model endpoint's parquet folder",
734
+ target_path=target_path,
735
+ paths=paths,
736
+ )
737
+ for path in paths:
738
+ details = fs.listdir(path)
739
+ logger.info("Path details", path=path, details=details)
740
+ raise
741
+
723
742
  # Get feature names from monitoring feature set
724
743
  feature_names = [
725
744
  feature_name["name"] for feature_name in m_fs.spec.features.to_dict()
@@ -1078,6 +1078,9 @@ class UpdateEndpoint(mlrun.feature_store.steps.MapClass):
1078
1078
  self.model_endpoint_store_target = model_endpoint_store_target
1079
1079
 
1080
1080
  def do(self, event: dict):
1081
+ # Remove labels from the event
1082
+ event.pop(EventFieldType.LABELS)
1083
+
1081
1084
  update_endpoint_record(
1082
1085
  project=self.project,
1083
1086
  endpoint_id=event.pop(EventFieldType.ENDPOINT_ID),
@@ -485,7 +485,11 @@ def _init_endpoint_record(
485
485
  return None
486
486
 
487
487
  # Generating version model value based on the model name and model version
488
- if model.version:
488
+ if model.model_path and model.model_path.startswith("store://"):
489
+ # Enrich the model server with the model artifact metadata
490
+ model.get_model()
491
+ model.version = model.model_spec.tag
492
+ model.labels = model.model_spec.labels
489
493
  versioned_model_name = f"{model.name}:{model.version}"
490
494
  else:
491
495
  versioned_model_name = f"{model.name}:latest"
@@ -1,4 +1,4 @@
1
1
  {
2
- "git_commit": "8c5fd1e416df596cde129c656ecb61ea988a0587",
3
- "version": "1.6.3-rc13"
2
+ "git_commit": "d4ac13d8ffd2423e6c46360355a9d49b9f062648",
3
+ "version": "1.6.4-rc1"
4
4
  }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mlrun
3
- Version: 1.6.3rc13
3
+ Version: 1.6.4rc1
4
4
  Summary: Tracking and config of machine learning runs
5
5
  Home-page: https://github.com/mlrun/mlrun
6
6
  Author: Yaron Haviv
@@ -198,7 +198,7 @@ mlrun/launcher/remote.py,sha256=lcVV9nH_SMDsdb2XNg01EVnzZSxAMqxFGZJWxaezXeU,7487
198
198
  mlrun/model_monitoring/__init__.py,sha256=XaYyvWsIXpjJQ2gCPj8tFvfSbRSEEqgDtNz4tCE5H4g,915
199
199
  mlrun/model_monitoring/api.py,sha256=uKT733p3vUsIgX-vdvhbroeN15bmdkZT5S3gsfwbNhk,36829
200
200
  mlrun/model_monitoring/application.py,sha256=ilslJNkq3CCivPqvsDOPmu0UClWXwH9IWr58gdxM9iU,12292
201
- mlrun/model_monitoring/batch.py,sha256=l0FTSTt9frLgqeSS9jY8IU_0OwlvSevuZBWBgnBGH9A,43566
201
+ mlrun/model_monitoring/batch.py,sha256=UDtcafDFOqWtARY6lbSdXgMFIO-VYWdKbGUwY_fqfRo,44379
202
202
  mlrun/model_monitoring/controller.py,sha256=Zh7XnGevQyJCU8uMT8MC6kD7cP55vUJaIjqbBvSyuvA,27608
203
203
  mlrun/model_monitoring/controller_handler.py,sha256=kG3sTjhKdsd9QcHkUlYcvw08yPsVQs9FyFdcKP9iaCo,977
204
204
  mlrun/model_monitoring/evidently_application.py,sha256=o9PsDsjyRfcbuC1X1gb2ww5nzWCsR_KheabtpxKZ5yY,4824
@@ -206,7 +206,7 @@ mlrun/model_monitoring/features_drift_table.py,sha256=OEDb_YZm3cyzszzC4SDqi7ufwO
206
206
  mlrun/model_monitoring/helpers.py,sha256=l8RCxOGBoScZSL4M-x4fIfpsfH7wjSQpqA_t-HVk0BI,7087
207
207
  mlrun/model_monitoring/model_endpoint.py,sha256=BBtxdY5ciormI_al4zshmIp0GN7hGhOCn-hLgpCXek0,3938
208
208
  mlrun/model_monitoring/prometheus.py,sha256=Z0UWmhQ-dpGGH31gCiGdfmhfj-RFRf1Tu1bYVe-k4jk,7605
209
- mlrun/model_monitoring/stream_processing.py,sha256=mUmF12byO8h5CPszEqrI0xFbOWiyCYr493r58EElWyQ,49150
209
+ mlrun/model_monitoring/stream_processing.py,sha256=n1UpOsxOW8bUQnEAHgRm2wOOihx8VWrFYiE1FWz_zgs,49231
210
210
  mlrun/model_monitoring/tracking_policy.py,sha256=Q6_p4y1ZcRHqs24c_1_4m9E1gYnaOm6pLCNGT22dWKM,5221
211
211
  mlrun/model_monitoring/writer.py,sha256=IWPzPenoAkfIxlvn0IdcdB19Nxqmg4mjbo3-RnYWw9A,8669
212
212
  mlrun/model_monitoring/stores/__init__.py,sha256=adU_G07jkD3JUT8__d0jAxs9nNomL7igKmd6uVM9L50,4525
@@ -275,7 +275,7 @@ mlrun/serving/serving_wrapper.py,sha256=R670-S6PX_d5ER6jiHtRvacuPyFzQH0mEf2K0sBI
275
275
  mlrun/serving/states.py,sha256=LORqEyNR6Rxq-rH0VfVvJ_aff3ws_KoT83UqXNccjyY,54821
276
276
  mlrun/serving/utils.py,sha256=PbXvmkqUAAE0jAfnsUwTOHEQsnhMpmuREv_yB21hvv4,3784
277
277
  mlrun/serving/v1_serving.py,sha256=5BVvsvjG4zsq3LMnYp0ZE8qFs-qcfQSD3SOSziEYQqQ,11813
278
- mlrun/serving/v2_serving.py,sha256=fAMA52lBvpLFpUa8LKHjRAwBZp_sR0wUmmtrN1ChJC4,21823
278
+ mlrun/serving/v2_serving.py,sha256=kZO5b-3MXD-ejwH47Kq0klvWn0INqC4vUsHgZyUBqbU,22055
279
279
  mlrun/track/__init__.py,sha256=LWRUHJt8JyFW17FyNPOVyWd-NXTf1iptzsK9KFj5fuY,765
280
280
  mlrun/track/tracker.py,sha256=y-UdhC2nzM6r-yHCwvrfiHRr93xsr4JRsZTxDrTTRJo,3541
281
281
  mlrun/track/tracker_manager.py,sha256=ZZzXtgQ-t4ah64XeAHNCbZ2VMOK_0E0RHv0pIowynjA,5732
@@ -304,11 +304,11 @@ mlrun/utils/notifications/notification/ipython.py,sha256=qrBmtECiRG6sZpCIVMg7RZc
304
304
  mlrun/utils/notifications/notification/slack.py,sha256=5JysqIpUYUZKXPSeeZtbl7qb2L9dj7p2NvnEBcEsZkA,3898
305
305
  mlrun/utils/notifications/notification/webhook.py,sha256=QHezCuN5uXkLcroAGxGrhGHaxAdUvkDLIsp27_Yrfd4,2390
306
306
  mlrun/utils/version/__init__.py,sha256=7kkrB7hEZ3cLXoWj1kPoDwo4MaswsI2JVOBpbKgPAgc,614
307
- mlrun/utils/version/version.json,sha256=LW1T_kxxvZ3G90xD_fGRkMHc_kboRrW7-F9l2ZcEj1A,89
307
+ mlrun/utils/version/version.json,sha256=rrYscIrwZh0eAnNK_L9Y7nGxnABkbj9VLbKj2eMstyQ,88
308
308
  mlrun/utils/version/version.py,sha256=HMwseV8xjTQ__6T6yUWojx_z6yUj7Io7O4NcCCH_sz8,1970
309
- mlrun-1.6.3rc13.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
310
- mlrun-1.6.3rc13.dist-info/METADATA,sha256=pCpqxUqbfNwduW8cMJVCRw9rc_HirXVczRagBddRlXc,18404
311
- mlrun-1.6.3rc13.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
312
- mlrun-1.6.3rc13.dist-info/entry_points.txt,sha256=1Owd16eAclD5pfRCoJpYC2ZJSyGNTtUr0nCELMioMmU,46
313
- mlrun-1.6.3rc13.dist-info/top_level.txt,sha256=NObLzw3maSF9wVrgSeYBv-fgnHkAJ1kEkh12DLdd5KM,6
314
- mlrun-1.6.3rc13.dist-info/RECORD,,
309
+ mlrun-1.6.4rc1.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
310
+ mlrun-1.6.4rc1.dist-info/METADATA,sha256=roaK7X4wrleuMOoErCMZfVRxSksVlOO2HOI_NJIBGPA,18403
311
+ mlrun-1.6.4rc1.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
312
+ mlrun-1.6.4rc1.dist-info/entry_points.txt,sha256=1Owd16eAclD5pfRCoJpYC2ZJSyGNTtUr0nCELMioMmU,46
313
+ mlrun-1.6.4rc1.dist-info/top_level.txt,sha256=NObLzw3maSF9wVrgSeYBv-fgnHkAJ1kEkh12DLdd5KM,6
314
+ mlrun-1.6.4rc1.dist-info/RECORD,,