mlrun 1.9.2rc1__py3-none-any.whl → 1.9.2rc2__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.

Potentially problematic release.


This version of mlrun might be problematic. Click here for more details.

@@ -107,14 +107,10 @@ class TFKerasMLRunInterface(MLRunInterface, ABC):
107
107
  )
108
108
 
109
109
  # Call the pre compile method:
110
- (optimizer, experimental_run_tf_function) = self._pre_compile(
111
- optimizer=kwargs["optimizer"]
112
- )
110
+ optimizer = self._pre_compile(optimizer=kwargs["optimizer"])
113
111
 
114
112
  # Assign parameters:
115
113
  kwargs["optimizer"] = optimizer
116
- if experimental_run_tf_function is not None:
117
- kwargs["experimental_run_tf_function"] = experimental_run_tf_function
118
114
 
119
115
  # Call the original compile method:
120
116
  return self.original_compile(*args, **kwargs)
@@ -235,23 +231,20 @@ class TFKerasMLRunInterface(MLRunInterface, ABC):
235
231
  """
236
232
  self._RANK_0_ONLY_CALLBACKS.add(callback_name)
237
233
 
238
- def _pre_compile(self, optimizer: Optimizer) -> tuple[Optimizer, Union[bool, None]]:
234
+ def _pre_compile(self, optimizer: Optimizer) -> Optimizer:
239
235
  """
240
236
  Method to call before calling 'compile' to setup the run and inputs for using horovod.
241
237
 
242
238
  :param optimizer: The optimzier to compile. It will be wrapped in horovod's distributed optimizer:
243
239
  'hvd.DistributedOptimizer'.
244
240
 
245
- :return: The updated parameters:
246
- [0] = Wrapped optimizer.
247
- [1] = The 'experimental_run_tf_function' parameter for 'compile' kwargs or 'None' if horovod should not
248
- be used.
241
+ :return: The updated Wrapped optimizer.
249
242
 
250
243
  :raise MLRunInvalidArgumentError: In case the optimizer was passed as a string.
251
244
  """
252
245
  # Check if needed to run with horovod:
253
246
  if self._hvd is None:
254
- return optimizer, None
247
+ return optimizer
255
248
 
256
249
  # Validate the optimizer input:
257
250
  if isinstance(optimizer, str):
@@ -288,11 +281,7 @@ class TFKerasMLRunInterface(MLRunInterface, ABC):
288
281
  # Wrap the optimizer in horovod's distributed optimizer: 'hvd.DistributedOptimizer'.
289
282
  optimizer = self._hvd.DistributedOptimizer(optimizer)
290
283
 
291
- # Compile the model with `experimental_run_tf_function=False` to ensure Tensorflow uses the distributed
292
- # optimizer to compute the gradients:
293
- experimental_run_tf_function = False
294
-
295
- return optimizer, experimental_run_tf_function
284
+ return optimizer
296
285
 
297
286
  def _pre_fit(
298
287
  self,
@@ -1,4 +1,4 @@
1
1
  {
2
- "git_commit": "8c4abef3f59c6e019d0584b32d1c12341b81c4c8",
3
- "version": "1.9.2-rc1"
2
+ "git_commit": "96b5c672c395084970c71c8ea780f3fd00d7547f",
3
+ "version": "1.9.2-rc2"
4
4
  }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mlrun
3
- Version: 1.9.2rc1
3
+ Version: 1.9.2rc2
4
4
  Summary: Tracking and config of machine learning runs
5
5
  Home-page: https://github.com/mlrun/mlrun
6
6
  Author: Yaron Haviv
@@ -32,7 +32,7 @@ Requires-Dist: ipython~=8.10
32
32
  Requires-Dist: nuclio-jupyter~=0.11.1
33
33
  Requires-Dist: numpy<1.27.0,>=1.26.4
34
34
  Requires-Dist: pandas<2.2,>=1.2
35
- Requires-Dist: pyarrow<17,>=10.0
35
+ Requires-Dist: pyarrow<18,>=10.0
36
36
  Requires-Dist: pyyaml<7,>=6.0.2
37
37
  Requires-Dist: requests~=2.32
38
38
  Requires-Dist: tabulate~=0.8.6
@@ -199,7 +199,7 @@ mlrun/frameworks/sklearn/mlrun_interface.py,sha256=JzHMBQM4sPBJqzb8P-rsG_2RQ_QrX
199
199
  mlrun/frameworks/sklearn/model_handler.py,sha256=n0vpsQznva_WVloz7GTnfMGcMDQU_f1bHhUAJ_qxjfE,4753
200
200
  mlrun/frameworks/sklearn/utils.py,sha256=Cg_pSxUMvKe8vBSLQor6JM8u9_ccKJg4Rk5EPDzTsVo,1209
201
201
  mlrun/frameworks/tf_keras/__init__.py,sha256=M2sMbYHLrlF-KFR5kvA9mevRo3Nf8U0B5a_DM9rzwCY,10484
202
- mlrun/frameworks/tf_keras/mlrun_interface.py,sha256=_LVPKsPYopG8osoWfuxeKOkPcchb_oiL_IufWbnpIBI,16753
202
+ mlrun/frameworks/tf_keras/mlrun_interface.py,sha256=ZKBqlkPY9Kk0Mhd1TLEamWCAOGTaiCyYytSCOlbYxXQ,16110
203
203
  mlrun/frameworks/tf_keras/model_handler.py,sha256=2PZgxgB0XLIM6V2pLTWpU6UVKrjgGdSgcQNPz2kwFnU,32170
204
204
  mlrun/frameworks/tf_keras/model_server.py,sha256=PZW6OBGTJ6bSfHedAhhW8HATbJyp2VaAzSDC02zjyKk,9653
205
205
  mlrun/frameworks/tf_keras/utils.py,sha256=Z8hA1CgpSJWLC_T6Ay7xZKVyWlX9B85MSmQr2biXRag,4582
@@ -341,11 +341,11 @@ mlrun/utils/notifications/notification/mail.py,sha256=ZyJ3eqd8simxffQmXzqd3bgbAq
341
341
  mlrun/utils/notifications/notification/slack.py,sha256=kfhogR5keR7Zjh0VCjJNK3NR5_yXT7Cv-x9GdOUW4Z8,7294
342
342
  mlrun/utils/notifications/notification/webhook.py,sha256=zxh8CAlbPnTazsk6r05X5TKwqUZVOH5KBU2fJbzQlG4,5330
343
343
  mlrun/utils/version/__init__.py,sha256=7kkrB7hEZ3cLXoWj1kPoDwo4MaswsI2JVOBpbKgPAgc,614
344
- mlrun/utils/version/version.json,sha256=klaCU-7EeZjL6BRB4x4M20KH9-JhfypJswvqxMbaTls,88
344
+ mlrun/utils/version/version.json,sha256=h2GhQN_dPdcVCBljnGSQyo8yO7qQRFJpm2Y-AyD8pvQ,88
345
345
  mlrun/utils/version/version.py,sha256=eEW0tqIAkU9Xifxv8Z9_qsYnNhn3YH7NRAfM-pPLt1g,1878
346
- mlrun-1.9.2rc1.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
347
- mlrun-1.9.2rc1.dist-info/METADATA,sha256=saGsXYF-iRbyTmoCPaRvAjGsoC7lWyStRm3L0upzA-E,25759
348
- mlrun-1.9.2rc1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
349
- mlrun-1.9.2rc1.dist-info/entry_points.txt,sha256=1Owd16eAclD5pfRCoJpYC2ZJSyGNTtUr0nCELMioMmU,46
350
- mlrun-1.9.2rc1.dist-info/top_level.txt,sha256=NObLzw3maSF9wVrgSeYBv-fgnHkAJ1kEkh12DLdd5KM,6
351
- mlrun-1.9.2rc1.dist-info/RECORD,,
346
+ mlrun-1.9.2rc2.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
347
+ mlrun-1.9.2rc2.dist-info/METADATA,sha256=R_67NXEjUDMY7b-VF9FkZD_q6Ms7MHd2IyKxCZnWS-g,25759
348
+ mlrun-1.9.2rc2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
349
+ mlrun-1.9.2rc2.dist-info/entry_points.txt,sha256=1Owd16eAclD5pfRCoJpYC2ZJSyGNTtUr0nCELMioMmU,46
350
+ mlrun-1.9.2rc2.dist-info/top_level.txt,sha256=NObLzw3maSF9wVrgSeYBv-fgnHkAJ1kEkh12DLdd5KM,6
351
+ mlrun-1.9.2rc2.dist-info/RECORD,,