wandb 0.19.11__py3-none-musllinux_1_2_aarch64.whl → 0.19.12rc1__py3-none-musllinux_1_2_aarch64.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.
wandb/__init__.py CHANGED
@@ -10,7 +10,7 @@ For reference documentation, see https://docs.wandb.com/ref/python.
10
10
  """
11
11
  from __future__ import annotations
12
12
 
13
- __version__ = "0.19.11"
13
+ __version__ = "0.19.12rc1"
14
14
 
15
15
 
16
16
  from wandb.errors import Error
wandb/__init__.pyi CHANGED
@@ -106,7 +106,7 @@ if TYPE_CHECKING:
106
106
  import wandb
107
107
  from wandb.plot import CustomChart
108
108
 
109
- __version__: str = "0.19.11"
109
+ __version__: str = "0.19.12rc1"
110
110
 
111
111
  run: Run | None
112
112
  config: wandb_config.Config
wandb/bin/gpu_stats CHANGED
Binary file
wandb/bin/wandb-core CHANGED
Binary file
@@ -18,10 +18,6 @@ from wandb.sdk.mailbox import HandleAbandonedError, Mailbox, MailboxClosedError
18
18
  from wandb.sdk.service import service
19
19
 
20
20
 
21
- class WandbServiceNotOwnedError(Exception):
22
- """Raised when the current process does not own the service process."""
23
-
24
-
25
21
  class WandbServiceConnectionError(Exception):
26
22
  """Raised on failure to connect to the service process."""
27
23
 
@@ -196,35 +192,35 @@ class ServiceConnection:
196
192
  request._info.stream_id = run_id
197
193
  self._client.send_server_request(spb.ServerRequest(inform_start=request))
198
194
 
199
- def teardown(self, exit_code: int) -> int:
200
- """Shuts down the service process and returns its exit code.
195
+ def teardown(self, exit_code: int) -> int | None:
196
+ """Close the connection.
197
+
198
+ Stop reading responses on the connection, and if this connection owns
199
+ the service process, send a teardown message and wait for it to shut
200
+ down.
201
201
 
202
202
  This may only be called once.
203
203
 
204
204
  Returns:
205
- The exit code of the service process.
206
-
207
- Raises:
208
- WandbServiceNotOwnedError: If the current process did not start
209
- the service process.
205
+ The exit code of the service process, or None if the process was
206
+ not owned by this connection.
210
207
  """
211
- if not self._proc:
212
- raise WandbServiceNotOwnedError(
213
- "Cannot tear down service started by different process",
214
- )
215
-
216
- assert not self._torn_down
208
+ if self._torn_down:
209
+ raise AssertionError("Already torn down.")
217
210
  self._torn_down = True
218
211
 
219
212
  if self._cleanup:
220
213
  self._cleanup()
221
214
 
222
- # Clear the service token to prevent new connections from being made.
223
- service_token.clear_service_token()
224
-
225
215
  # Stop reading responses on the socket.
226
216
  self._router.join()
227
217
 
218
+ if not self._proc:
219
+ return None
220
+
221
+ # Clear the service token to prevent new connections to the process.
222
+ service_token.clear_service_token()
223
+
228
224
  self._client.send_server_request(
229
225
  spb.ServerRequest(
230
226
  inform_teardown=spb.ServerInformTeardownRequest(
wandb/sdk/wandb_setup.py CHANGED
@@ -307,12 +307,12 @@ class _WandbSetup:
307
307
  if not self._connection:
308
308
  return
309
309
 
310
- internal_exit_code = self._connection.teardown(exit_code or 0)
311
-
312
310
  # Reset to None so that setup() creates a new connection.
311
+ connection = self._connection
313
312
  self._connection = None
314
313
 
315
- if internal_exit_code != 0:
314
+ internal_exit_code = connection.teardown(exit_code or 0)
315
+ if internal_exit_code not in (None, 0):
316
316
  sys.exit(internal_exit_code)
317
317
 
318
318
  def ensure_service(self) -> ServiceConnection:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: wandb
3
- Version: 0.19.11
3
+ Version: 0.19.12rc1
4
4
  Summary: A CLI and library for interacting with the Weights & Biases API.
5
5
  Project-URL: Source, https://github.com/wandb/wandb
6
6
  Project-URL: Bug Reports, https://github.com/wandb/wandb/issues
@@ -1,12 +1,12 @@
1
1
  package_readme.md,sha256=U9047nyMDICgctm1HLm4HfXwFnFKsEn2m77hsYPUZ1I,4298
2
- wandb-0.19.11.dist-info/RECORD,,
3
- wandb-0.19.11.dist-info/entry_points.txt,sha256=v4FCOZ9gW7Pc6KLsmgQqpCiKTrA1wh2XHmNf-NUP1-I,67
4
- wandb-0.19.11.dist-info/WHEEL,sha256=ZCaGMInsobf_X8ibOue5yAC0a46KTbFsnGjtmL2skyU,106
5
- wandb-0.19.11.dist-info/METADATA,sha256=gVmAK68XIW9ZWlg4--FcNF2qbJIq8fZzsQ_NjV2RWSU,10259
6
- wandb-0.19.11.dist-info/licenses/LICENSE,sha256=izOKRJpGOx1PrJiGOKR0HsNdlB5JdH2d0Z4P7a7ssTc,1081
2
+ wandb-0.19.12rc1.dist-info/RECORD,,
3
+ wandb-0.19.12rc1.dist-info/entry_points.txt,sha256=v4FCOZ9gW7Pc6KLsmgQqpCiKTrA1wh2XHmNf-NUP1-I,67
4
+ wandb-0.19.12rc1.dist-info/WHEEL,sha256=ZCaGMInsobf_X8ibOue5yAC0a46KTbFsnGjtmL2skyU,106
5
+ wandb-0.19.12rc1.dist-info/METADATA,sha256=vMgGUYCKJEfrEq3d_3Eo0rpiBIXYwdatPwvHavX4ot8,10262
6
+ wandb-0.19.12rc1.dist-info/licenses/LICENSE,sha256=izOKRJpGOx1PrJiGOKR0HsNdlB5JdH2d0Z4P7a7ssTc,1081
7
7
  wandb/jupyter.py,sha256=dMCV2TVomJeHhbhEZTHZbxsxuGHXYGkOveK_3IbXju8,17451
8
8
  wandb/__main__.py,sha256=gripuDgB7J8wMMeJt4CIBRjn1BMSFr5zvsrt585Pnj4,64
9
- wandb/__init__.py,sha256=F1oW4Oflh9R5-OZ5Xj2y-pxEjIrlC33lsCf-_zYhdEQ,7148
9
+ wandb/__init__.py,sha256=h-BqHsfabAKDyqLt8M3IOEPcElSA0IXpkhPfdRpM7nk,7151
10
10
  wandb/wandb_agent.py,sha256=0TKjcJ8jxEqaXMrs_dIflXfWFFOaulfSjzp_fpYiXD0,20985
11
11
  wandb/trigger.py,sha256=PaitU3sX6ekGkd2R8iD6d_VtI72ypF7LaPBXh3rXY7Q,615
12
12
  wandb/wandb_run.py,sha256=CNh9S6uubFk8FphQjzkbvedyyGCN9aBEsRBKjy8tqqs,155
@@ -17,7 +17,7 @@ wandb/_iterutils.py,sha256=bOhOrOENEDzOMtyQqHysivzHri9axcVlCfXt4Ai1ot8,1545
17
17
  wandb/wandb_controller.py,sha256=SksJdgwn14PpnUoIaBjJ9Ki4Nksl9BpQGGn42hT0xZg,24936
18
18
  wandb/data_types.py,sha256=M-wqAO0FtIqvj28556u3h4nzSwlRcbxhXoX0B9jlJSo,2283
19
19
  wandb/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
20
- wandb/__init__.pyi,sha256=3VFHLCEDLBaqfL6m8E67cewPBXc0pptuEGqBKj9doD4,48325
20
+ wandb/__init__.pyi,sha256=4ngOvMcsz4c6J-4lu7LOE1R6WfMPW15H1ywVc2UhQpI,48328
21
21
  wandb/_pydantic/__init__.py,sha256=t5BNtxBNOqVfNLVXghsj0UKZFc_8LFpgt1edRZwfp0o,628
22
22
  wandb/_pydantic/base.py,sha256=qOgf1LEMPO3o1kiYli9kOf2ZQLuP0GEMa8Qx2pDnJGY,4277
23
23
  wandb/_pydantic/utils.py,sha256=JPUIFYhIV3Pji4lF7Trkr04-_OxQgavOdBzz5JYgkmE,2510
@@ -32,7 +32,7 @@ wandb/sdk/wandb_summary.py,sha256=yQdOVIPrZaZanhBQ7yuSfPLX0x6dxwkN_KAn4SgjSZU,45
32
32
  wandb/sdk/wandb_watch.py,sha256=F7S9CLbw9PddUp1qBjPRKsOiVFU8LPaq6A9taV3TJKI,4840
33
33
  wandb/sdk/wandb_require_helpers.py,sha256=ZmKv5aXXHDTTU6nYHMLKW4_pt9X-PlaMtbRJl77kHX8,1331
34
34
  wandb/sdk/wandb_init.py,sha256=311pl5qHeAhfpBkGBV21NtUQ_iSDbxptzOwfRgOerjM,65201
35
- wandb/sdk/wandb_setup.py,sha256=3dvnkFlSuoa8BxzyKp_7qtj2tC2L26ge-rWolKQzfgY,15197
35
+ wandb/sdk/wandb_setup.py,sha256=Yk9GlIik9AAChofQUvtkivDnlCiqiHM9-K1eJ03OWtw,15240
36
36
  wandb/sdk/wandb_sync.py,sha256=GNC8xYqT56ws4aw6Vd_mV_Ck-InEbqnyioSqHIybDug,2106
37
37
  wandb/sdk/wandb_settings.py,sha256=y3T8UeSdNBqrKVOlmAXpwCREXhf1aZ-cWsFpQGooyuk,64830
38
38
  wandb/sdk/wandb_login.py,sha256=SwbajDUYM_wrKQuBUyyN0Jsyt24Pq0gApJYLfcTmb-g,11284
@@ -223,7 +223,7 @@ wandb/sdk/lib/retry.py,sha256=BAgPgJb1SxRguor2KTfOFnQpTlyNE4M_X8VcEc7YfMs,10173
223
223
  wandb/sdk/lib/exit_hooks.py,sha256=_4oozaRQCJi8NJfZvHsA8livvFb0trZKLOGB8_UcHGk,1540
224
224
  wandb/sdk/lib/__init__.py,sha256=53BA5lIOtUXciXZcPpNsFbp-iUPzI5gQFxplTykNmOE,183
225
225
  wandb/sdk/lib/handler_util.py,sha256=mT9CKsmboq4lPWElsi4uo9ORHhx6OYTr7KY2QtgbM6M,589
226
- wandb/sdk/lib/service_connection.py,sha256=pf1T0isbDwTkv9MvuIpuk1MHTVkCebK4N8n9pXF4SSg,7455
226
+ wandb/sdk/lib/service_connection.py,sha256=J6WHS95CdloYT-C_KgkuQa9pJBXkp23mobhAG1BC9JQ,7352
227
227
  wandb/sdk/lib/config_util.py,sha256=YdYvk-KbTdTa-84XegpvbqMuQfdlOREFiVR7m3q6e3Q,2917
228
228
  wandb/sdk/lib/server.py,sha256=dn0RXjAnpmigAULLyq75XHYyHxw17MLCJ9fhPq2v22I,1623
229
229
  wandb/sdk/lib/ipython.py,sha256=I2iT6vY90Aaws7tmjzW_CrUdQFmfV9-WhAPk8at9LQg,3782
@@ -740,8 +740,8 @@ wandb/errors/util.py,sha256=EtipkN-l12IT5OAyqhmZyTqYiqplS-Tz5SPp2bjfsJo,1712
740
740
  wandb/errors/links.py,sha256=sNwJ74e9qb0w4GRZfnbPXK5ZdpIqc5lkuaT4T2Snnqw,2520
741
741
  wandb/errors/warnings.py,sha256=kyLP3bfXSmlztp8nOepLtfTdM-03N-i7Ho1Y568BOtk,57
742
742
  wandb/errors/term.py,sha256=kH_noQvl9BDsGBXm7fQfH5u0ERmI6bOZa8Rp49DoAPk,12207
743
- wandb/bin/wandb-core,sha256=4A2Gyq9-6d0eVx_5cHAPu2YMbqcgnyGbnsSQo_Ijqto,46727352
744
- wandb/bin/gpu_stats,sha256=Ryb6jAEruHu4bAWxHQcRlm40Wf9ZFY6PuL1RYaMErio,10533408
743
+ wandb/bin/wandb-core,sha256=A4qzC4b_nu0Cq-DAjmACUDQ514zlRqFYuKjzYqwiPYs,46727352
744
+ wandb/bin/gpu_stats,sha256=-9FnT6AQKWdJNAIznSrC9dc5L5MYca017g5dIQrJLMg,10594440
745
745
  wandb/apis/__init__.py,sha256=uPZKqlX8Y9YcHoERJshWRGS3ukMOIVWi4sDnkO5_CYY,1338
746
746
  wandb/apis/internal.py,sha256=Whl1x29iH_DdIu47vUVvDSyOavEVaovdmlqXmu4-yOw,7622
747
747
  wandb/apis/normalize.py,sha256=mamR8PquPZU7YAVNP1k_Q941l7FRwEoQhJhTH3SgSJQ,2676