wandb 0.19.7__py3-none-macosx_11_0_arm64.whl → 0.19.8__py3-none-macosx_11_0_arm64.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 +1 -1
- wandb/__init__.pyi +32 -2
- wandb/bin/gpu_stats +0 -0
- wandb/bin/wandb-core +0 -0
- wandb/data_types.py +1 -1
- wandb/filesync/dir_watcher.py +2 -1
- wandb/proto/v3/wandb_settings_pb2.py +2 -2
- wandb/proto/v3/wandb_telemetry_pb2.py +10 -10
- wandb/proto/v4/wandb_settings_pb2.py +2 -2
- wandb/proto/v4/wandb_telemetry_pb2.py +10 -10
- wandb/proto/v5/wandb_settings_pb2.py +2 -2
- wandb/proto/v5/wandb_telemetry_pb2.py +10 -10
- wandb/sdk/artifacts/artifact.py +11 -10
- wandb/sdk/backend/backend.py +16 -5
- wandb/sdk/interface/interface.py +65 -43
- wandb/sdk/interface/interface_queue.py +0 -7
- wandb/sdk/interface/interface_relay.py +6 -16
- wandb/sdk/interface/interface_shared.py +47 -40
- wandb/sdk/interface/interface_sock.py +1 -8
- wandb/sdk/interface/router.py +22 -54
- wandb/sdk/interface/router_queue.py +11 -10
- wandb/sdk/interface/router_relay.py +24 -12
- wandb/sdk/interface/router_sock.py +6 -11
- wandb/sdk/internal/sender.py +3 -1
- wandb/sdk/lib/console_capture.py +172 -0
- wandb/sdk/lib/redirect.py +102 -76
- wandb/sdk/lib/service_connection.py +37 -17
- wandb/sdk/lib/sock_client.py +2 -52
- wandb/sdk/mailbox/__init__.py +3 -3
- wandb/sdk/mailbox/mailbox.py +31 -17
- wandb/sdk/mailbox/mailbox_handle.py +127 -0
- wandb/sdk/mailbox/{handles.py → response_handle.py} +34 -66
- wandb/sdk/mailbox/wait_with_progress.py +16 -15
- wandb/sdk/service/server_sock.py +4 -2
- wandb/sdk/service/streams.py +10 -5
- wandb/sdk/wandb_init.py +12 -15
- wandb/sdk/wandb_run.py +8 -10
- wandb/sdk/wandb_settings.py +7 -1
- wandb/sdk/wandb_sync.py +1 -7
- {wandb-0.19.7.dist-info → wandb-0.19.8.dist-info}/METADATA +1 -1
- {wandb-0.19.7.dist-info → wandb-0.19.8.dist-info}/RECORD +44 -44
- wandb/sdk/interface/message_future.py +0 -27
- wandb/sdk/interface/message_future_poll.py +0 -50
- {wandb-0.19.7.dist-info → wandb-0.19.8.dist-info}/WHEEL +0 -0
- {wandb-0.19.7.dist-info → wandb-0.19.8.dist-info}/entry_points.txt +0 -0
- {wandb-0.19.7.dist-info → wandb-0.19.8.dist-info}/licenses/LICENSE +0 -0
wandb/sdk/wandb_run.py
CHANGED
@@ -157,11 +157,11 @@ class RunStatusChecker:
|
|
157
157
|
"""
|
158
158
|
|
159
159
|
_stop_status_lock: threading.Lock
|
160
|
-
_stop_status_handle: MailboxHandle | None
|
160
|
+
_stop_status_handle: MailboxHandle[Result] | None
|
161
161
|
_network_status_lock: threading.Lock
|
162
|
-
_network_status_handle: MailboxHandle | None
|
162
|
+
_network_status_handle: MailboxHandle[Result] | None
|
163
163
|
_internal_messages_lock: threading.Lock
|
164
|
-
_internal_messages_handle: MailboxHandle | None
|
164
|
+
_internal_messages_handle: MailboxHandle[Result] | None
|
165
165
|
|
166
166
|
def __init__(
|
167
167
|
self,
|
@@ -209,7 +209,7 @@ class RunStatusChecker:
|
|
209
209
|
@staticmethod
|
210
210
|
def _abandon_status_check(
|
211
211
|
lock: threading.Lock,
|
212
|
-
handle: MailboxHandle | None,
|
212
|
+
handle: MailboxHandle[Result] | None,
|
213
213
|
):
|
214
214
|
with lock:
|
215
215
|
if handle:
|
@@ -224,7 +224,7 @@ class RunStatusChecker:
|
|
224
224
|
request: Any,
|
225
225
|
process: Any,
|
226
226
|
) -> None:
|
227
|
-
local_handle: MailboxHandle | None = None
|
227
|
+
local_handle: MailboxHandle[Result] | None = None
|
228
228
|
join_requested = False
|
229
229
|
while not join_requested:
|
230
230
|
time_probe = time.monotonic()
|
@@ -542,7 +542,7 @@ class Run:
|
|
542
542
|
|
543
543
|
_sampled_history: SampledHistoryResponse | None
|
544
544
|
_final_summary: GetSummaryResponse | None
|
545
|
-
_poll_exit_handle: MailboxHandle | None
|
545
|
+
_poll_exit_handle: MailboxHandle[Result] | None
|
546
546
|
_poll_exit_response: PollExitResponse | None
|
547
547
|
_internal_messages_response: InternalMessagesResponse | None
|
548
548
|
|
@@ -1332,7 +1332,7 @@ class Run:
|
|
1332
1332
|
def _datatypes_callback(self, fname: str) -> None:
|
1333
1333
|
if not self._backend or not self._backend.interface:
|
1334
1334
|
return
|
1335
|
-
files: FilesDict = dict(files=[(GlobStr(
|
1335
|
+
files: FilesDict = dict(files=[(GlobStr(fname), "now")])
|
1336
1336
|
self._backend.interface.publish_files(files)
|
1337
1337
|
|
1338
1338
|
def _pop_all_charts(
|
@@ -1645,7 +1645,7 @@ class Run:
|
|
1645
1645
|
[guides to logging](https://docs.wandb.ai/guides/track/log) for examples,
|
1646
1646
|
from 3D molecular structures and segmentation masks to PR curves and histograms.
|
1647
1647
|
You can use `wandb.Table` to log structured data. See our
|
1648
|
-
[guide to logging tables](https://docs.wandb.ai/guides/tables/tables-walkthrough)
|
1648
|
+
[guide to logging tables](https://docs.wandb.ai/guides/models/tables/tables-walkthrough)
|
1649
1649
|
for details.
|
1650
1650
|
|
1651
1651
|
The W&B UI organizes metrics with a forward slash (`/`) in their name
|
@@ -2308,8 +2308,6 @@ class Run:
|
|
2308
2308
|
raise ValueError("unhandled console")
|
2309
2309
|
try:
|
2310
2310
|
# save stdout and stderr before installing new write functions
|
2311
|
-
out_redir.save()
|
2312
|
-
err_redir.save()
|
2313
2311
|
out_redir.install()
|
2314
2312
|
err_redir.install()
|
2315
2313
|
self._out_redir = out_redir
|
wandb/sdk/wandb_settings.py
CHANGED
@@ -561,6 +561,12 @@ class Settings(BaseModel, validate_assignment=True):
|
|
561
561
|
x_save_requirements: bool = True
|
562
562
|
"""Flag to save the requirements file."""
|
563
563
|
|
564
|
+
x_server_side_derived_summary: bool = False
|
565
|
+
"""Flag to delegate automatic computation of summary from history to the server.
|
566
|
+
|
567
|
+
This does not disable user-provided summary updates.
|
568
|
+
"""
|
569
|
+
|
564
570
|
x_service_transport: str | None = None
|
565
571
|
"""Transport method for communication with the wandb service."""
|
566
572
|
|
@@ -573,7 +579,7 @@ class Settings(BaseModel, validate_assignment=True):
|
|
573
579
|
x_stats_pid: int = os.getpid()
|
574
580
|
"""PID of the process that started the wandb-core process to collect system stats for."""
|
575
581
|
|
576
|
-
x_stats_sampling_interval: float = Field(default=
|
582
|
+
x_stats_sampling_interval: float = Field(default=15.0)
|
577
583
|
"""Sampling interval for the system monitor in seconds."""
|
578
584
|
|
579
585
|
x_stats_neuron_monitor_config_path: str | None = None
|
wandb/sdk/wandb_sync.py
CHANGED
@@ -7,7 +7,6 @@ from wandb.errors.term import termerror, termlog
|
|
7
7
|
from . import wandb_setup
|
8
8
|
from .backend.backend import Backend
|
9
9
|
from .lib.runid import generate_id
|
10
|
-
from .mailbox import Mailbox
|
11
10
|
|
12
11
|
if TYPE_CHECKING:
|
13
12
|
from wandb.proto import wandb_internal_pb2
|
@@ -49,12 +48,7 @@ def _sync(
|
|
49
48
|
service = wl.ensure_service()
|
50
49
|
service.inform_init(settings=settings, run_id=stream_id)
|
51
50
|
|
52
|
-
|
53
|
-
backend = Backend(
|
54
|
-
settings=wl.settings,
|
55
|
-
service=service,
|
56
|
-
mailbox=mailbox,
|
57
|
-
)
|
51
|
+
backend = Backend(settings=wl.settings, service=service)
|
58
52
|
backend.ensure_launched()
|
59
53
|
|
60
54
|
assert backend.interface
|
@@ -1,17 +1,17 @@
|
|
1
1
|
package_readme.md,sha256=U9047nyMDICgctm1HLm4HfXwFnFKsEn2m77hsYPUZ1I,4298
|
2
|
-
wandb-0.19.
|
3
|
-
wandb-0.19.
|
4
|
-
wandb-0.19.
|
5
|
-
wandb-0.19.
|
6
|
-
wandb-0.19.
|
2
|
+
wandb-0.19.8.dist-info/RECORD,,
|
3
|
+
wandb-0.19.8.dist-info/WHEEL,sha256=B_HTF0nESsbkeA2UeB8YgKrtPrxyKFORYURx7Qxu8Xw,101
|
4
|
+
wandb-0.19.8.dist-info/entry_points.txt,sha256=v4FCOZ9gW7Pc6KLsmgQqpCiKTrA1wh2XHmNf-NUP1-I,67
|
5
|
+
wandb-0.19.8.dist-info/METADATA,sha256=qm19tpiMFdQkDIVM5-x0ERqDuSNC_pAOatXyuDVxJqE,10289
|
6
|
+
wandb-0.19.8.dist-info/licenses/LICENSE,sha256=izOKRJpGOx1PrJiGOKR0HsNdlB5JdH2d0Z4P7a7ssTc,1081
|
7
7
|
wandb/env.py,sha256=NtyTiZbU3xrpNiISvrTVO5SDBXVqHl58wmrhpB4MCSA,13736
|
8
|
-
wandb/__init__.pyi,sha256=
|
8
|
+
wandb/__init__.pyi,sha256=D74u5n7I6svyFW-yISHSee9DUiT_yK-73wbjtuqc1sY,48317
|
9
9
|
wandb/_globals.py,sha256=CccwOAls5bxJArYHg12b08ZeKR8Qu9u57GtYWjBH0o0,702
|
10
10
|
wandb/util.py,sha256=tlaNaz9W6r2T0bs0-KVDcuSPE1PiZ7642GjCjAx8Mvw,63525
|
11
11
|
wandb/wandb_run.py,sha256=CNh9S6uubFk8FphQjzkbvedyyGCN9aBEsRBKjy8tqqs,155
|
12
12
|
wandb/_iterutils.py,sha256=bOhOrOENEDzOMtyQqHysivzHri9axcVlCfXt4Ai1ot8,1545
|
13
|
-
wandb/__init__.py,sha256=
|
14
|
-
wandb/data_types.py,sha256=
|
13
|
+
wandb/__init__.py,sha256=_gHKjYc0NbTN_pwUJWnp4yA6uRDPpWfz93VliZmKZGw,6988
|
14
|
+
wandb/data_types.py,sha256=M-wqAO0FtIqvj28556u3h4nzSwlRcbxhXoX0B9jlJSo,2283
|
15
15
|
wandb/wandb_controller.py,sha256=SksJdgwn14PpnUoIaBjJ9Ki4Nksl9BpQGGn42hT0xZg,24936
|
16
16
|
wandb/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
17
17
|
wandb/wandb_agent.py,sha256=0TKjcJ8jxEqaXMrs_dIflXfWFFOaulfSjzp_fpYiXD0,20985
|
@@ -84,25 +84,25 @@ wandb/proto/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
84
84
|
wandb/proto/wandb_generate_proto.py,sha256=KO1hlAUBGHQRNKsddhcSXvh5a6rmFM3kshKTWftbWwY,1278
|
85
85
|
wandb/proto/wandb_deprecated.py,sha256=CGD8fZII6QOjVPJZ2zCGG8Cx95A5KZVYHYwFPz1Cz6k,1978
|
86
86
|
wandb/proto/wandb_telemetry_pb2.py,sha256=ReY9N2qSt46o7m1ou1khvYSYYImrzo5ro90g_9m8QsM,322
|
87
|
-
wandb/proto/v5/wandb_settings_pb2.py,sha256=
|
87
|
+
wandb/proto/v5/wandb_settings_pb2.py,sha256=qDaa79-Rm4A0-1BiDlCP4Tf69XhZyJA_Or5XpQa1keg,17976
|
88
88
|
wandb/proto/v5/wandb_server_pb2.py,sha256=f55mk3Z77xUnq_tAbTd_Q75CiOJz6ppPbZT7CoeF7-I,7535
|
89
89
|
wandb/proto/v5/wandb_base_pb2.py,sha256=u7VVWdExJ4WDkYNMV-xvWvyQ-NTIbAqToTKtgEqt_Lg,1572
|
90
90
|
wandb/proto/v5/wandb_internal_pb2.py,sha256=FGXDcOhWMVRkFTBF0uRSOi6YG6rJciJi0HuMlxbxmBI,57498
|
91
|
-
wandb/proto/v5/wandb_telemetry_pb2.py,sha256=
|
92
|
-
wandb/proto/v4/wandb_settings_pb2.py,sha256=
|
91
|
+
wandb/proto/v5/wandb_telemetry_pb2.py,sha256=PCTcpV-BmgR-5qb2vA30rRhLv_V4A-8Rt3cEgczgjs8,11578
|
92
|
+
wandb/proto/v4/wandb_settings_pb2.py,sha256=hRf0tgWk8NSpeM1677mXaZOahjaG8W78qTJrct_j3r8,17620
|
93
93
|
wandb/proto/v4/wandb_server_pb2.py,sha256=NiG6Xv9CDvxc8v8NmnM237jyYqMuRyE_nqmLAMZVdI8,6977
|
94
94
|
wandb/proto/v4/wandb_base_pb2.py,sha256=El5lnZMRpkc1W4SlZgeKoDPqWiJau0BG8QfigMMt6bM,1422
|
95
95
|
wandb/proto/v4/wandb_internal_pb2.py,sha256=LV8iKL7ufkIFyNjfG4PjDbg_u2EoGbYuMG7Qn5XaABw,53151
|
96
96
|
wandb/proto/v4/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
97
|
-
wandb/proto/v4/wandb_telemetry_pb2.py,sha256=
|
98
|
-
wandb/proto/v3/wandb_settings_pb2.py,sha256=
|
97
|
+
wandb/proto/v4/wandb_telemetry_pb2.py,sha256=9ALCD8ZYH_Sr4Sw5uJ_gsPDOxwquxjkMMXZQD124Dq4,11308
|
98
|
+
wandb/proto/v3/wandb_settings_pb2.py,sha256=Iiq2lnpfLiqk1su_dpD6SHH3zmlvOaU9kRxtyzMGMAo,21245
|
99
99
|
wandb/proto/v3/wandb_server_pb2.py,sha256=LQCUmuy0NFDo20N9uCUiE5VPyhP5r929WKtniae4CdQ,15514
|
100
100
|
wandb/proto/v3/wandb_base_pb2.py,sha256=_nsr_HW4Fdz62-KiXGo6Dw0_9bwdXz07auZkkH2QfSI,2355
|
101
101
|
wandb/proto/v3/wandb_internal_pb2.py,sha256=X5m7_mikGKgCRpD84q311n64q6-HMMFMhVop6XeGgHM,116112
|
102
102
|
wandb/proto/v3/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
103
|
-
wandb/proto/v3/wandb_telemetry_pb2.py,sha256=
|
104
|
-
wandb/bin/wandb-core,sha256=
|
105
|
-
wandb/bin/gpu_stats,sha256=
|
103
|
+
wandb/proto/v3/wandb_telemetry_pb2.py,sha256=c3y5sNd6dc-POBGJRmqNych_7L7nd0Cdt7ILXuW7RPM,13861
|
104
|
+
wandb/bin/wandb-core,sha256=bIPb-K45R0ogMa-lVxiANAruRCrXvnnngvZ4IHOzOnE,47308498
|
105
|
+
wandb/bin/gpu_stats,sha256=TaQw4YTbAxSPTAPOtEE2ZXCKY5y1I_a8aXEd3PSjSRI,9461072
|
106
106
|
wandb/integration/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
107
107
|
wandb/integration/yolov8/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
108
108
|
wandb/integration/yolov8/yolov8.py,sha256=srryantZqO65pj1x52MiKD5m2SzdQc4nIsj4o1GPK8o,11371
|
@@ -202,12 +202,12 @@ wandb/mpmain/__main__.py,sha256=bLhspPeHQvNMyRNR7xi9v-02XfW1mhJY2yBWI3bYtbg,57
|
|
202
202
|
wandb/sdk/wandb_metadata.py,sha256=NLMhT6pp16JqzKatmqeo9utEcZfil33mC7vBOxM1Ato,20218
|
203
203
|
wandb/sdk/wandb_config.py,sha256=b7kxQVnIh5HCBZXb2pOGZ4c02xCVlW4IQiAu3N-8Opg,10856
|
204
204
|
wandb/sdk/wandb_alerts.py,sha256=SwBPBiXRxknMTMGbsVoMMWqWK65UWMcKAdTWZtdwAeo,193
|
205
|
-
wandb/sdk/wandb_run.py,sha256=
|
206
|
-
wandb/sdk/wandb_sync.py,sha256=
|
205
|
+
wandb/sdk/wandb_run.py,sha256=4MLT0N5MYvdL9xETEKhM7nKnJQNZqaPzZpAK45-wEnU,153621
|
206
|
+
wandb/sdk/wandb_sync.py,sha256=GNC8xYqT56ws4aw6Vd_mV_Ck-InEbqnyioSqHIybDug,2106
|
207
207
|
wandb/sdk/__init__.py,sha256=N-GTAC0AzbZF2J8RzB33DTmYk9u-jubllCwvhWrPgsE,813
|
208
|
-
wandb/sdk/wandb_init.py,sha256=
|
208
|
+
wandb/sdk/wandb_init.py,sha256=bRO4JbxWZ1DXW2-43OyQQRjYMm62vFOXzB46MmmK_W8,59497
|
209
209
|
wandb/sdk/wandb_helper.py,sha256=IbJ7opO8UkfwCDekSjRYIrGBblUxnTPBfp1EdesfF4U,1824
|
210
|
-
wandb/sdk/wandb_settings.py,sha256=
|
210
|
+
wandb/sdk/wandb_settings.py,sha256=Zbns21r4MCgMq0HjPp-qrFcYxUhrLUFEbpbAiyc9K-E,55657
|
211
211
|
wandb/sdk/wandb_summary.py,sha256=yQdOVIPrZaZanhBQ7yuSfPLX0x6dxwkN_KAn4SgjSZU,4536
|
212
212
|
wandb/sdk/wandb_watch.py,sha256=F7S9CLbw9PddUp1qBjPRKsOiVFU8LPaq6A9taV3TJKI,4840
|
213
213
|
wandb/sdk/wandb_login.py,sha256=-2EvouBgBOQgOnh_8Hlb5LCGg6Lz2OR44ieWRRgqdZ8,10952
|
@@ -219,25 +219,23 @@ wandb/sdk/wandb_require_helpers.py,sha256=ZmKv5aXXHDTTU6nYHMLKW4_pt9X-PlaMtbRJl7
|
|
219
219
|
wandb/sdk/integration_utils/data_logging.py,sha256=DDFtDaUu50aeTTgxCHHYd2f85guqqf2xfEOburRlwwQ,19533
|
220
220
|
wandb/sdk/integration_utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
221
221
|
wandb/sdk/integration_utils/auto_logging.py,sha256=sblNn9BIG7memxTj23UfrGXyA06t39FEt5igMwS0-zU,8233
|
222
|
-
wandb/sdk/interface/interface_relay.py,sha256=
|
223
|
-
wandb/sdk/interface/router_queue.py,sha256=
|
224
|
-
wandb/sdk/interface/message_future_poll.py,sha256=drjrcBKswYPYJJQLFlj7UDXq7_zg7KNcObFVetsbvhQ,1410
|
222
|
+
wandb/sdk/interface/interface_relay.py,sha256=lM5ZgJc6m8BS-nWOuzMCwAK0ve9UBGgOD2rgJ9flIhI,867
|
223
|
+
wandb/sdk/interface/router_queue.py,sha256=wnApY1iXa_3L0-HO6t42Nbsh68zyEw3FWN3oI6PmoXM,1049
|
225
224
|
wandb/sdk/interface/summary_record.py,sha256=-wDv_zLYueeUY8IzyF9NPYnYwF3iBpUWbrsGcHAd2YM,1677
|
226
225
|
wandb/sdk/interface/constants.py,sha256=NJNBFr7LkshLI837D3LU3JuEURLzBwza9H-kxcy4ihw,60
|
227
|
-
wandb/sdk/interface/interface.py,sha256=
|
226
|
+
wandb/sdk/interface/interface.py,sha256=oRyy1hs78rZyjf3jn7pHKAqZUA7Swz25I90yDmuJ4vA,37716
|
228
227
|
wandb/sdk/interface/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
229
|
-
wandb/sdk/interface/router_sock.py,sha256=
|
230
|
-
wandb/sdk/interface/interface_shared.py,sha256=
|
231
|
-
wandb/sdk/interface/interface_queue.py,sha256=
|
232
|
-
wandb/sdk/interface/router_relay.py,sha256=
|
233
|
-
wandb/sdk/interface/
|
234
|
-
wandb/sdk/interface/
|
235
|
-
wandb/sdk/interface/interface_sock.py,sha256=K958Geq33GVUJvpzTruLO1KJp6Qb_3MjYcCahkOCwEY,1321
|
228
|
+
wandb/sdk/interface/router_sock.py,sha256=S15CRwMoDFYKnEzwqAjvPQC6BlKtJpxE_rZHeaxM2V4,1002
|
229
|
+
wandb/sdk/interface/interface_shared.py,sha256=XmEg78CyUHI4XPNtgyx59aQIlzJzQjZYEIeQVECHXSE,18645
|
230
|
+
wandb/sdk/interface/interface_queue.py,sha256=zOjUB2nf_wNMoEeXGWP5di-u4-UL2_jvsVZw53EbEsk,1257
|
231
|
+
wandb/sdk/interface/router_relay.py,sha256=tOBQYEX7PGw9-qE91CdNhLEQb9KbJiQnlHg7XBOsijA,1390
|
232
|
+
wandb/sdk/interface/router.py,sha256=hlYzz7DjDt3sYDJQYLE1NHkxGFDezHgmfznnPRHPcHU,2630
|
233
|
+
wandb/sdk/interface/interface_sock.py,sha256=rz6uwKNzLpGDCCVGSlC6ABspmkYD5LnGX_cd9dvaAwU,1043
|
236
234
|
wandb/sdk/artifacts/storage_policy.py,sha256=BGIC8QRfryCNzF-72uk53MvQQbZVoKwQGhn2zX3NaRE,2090
|
237
235
|
wandb/sdk/artifacts/artifact_state.py,sha256=6fxISSPsK62VeMau_5CI4a9lQXTaUJXcruzk74WUIBE,236
|
238
236
|
wandb/sdk/artifacts/artifact_ttl.py,sha256=kNRr9JZ5P2iuo0ofoNKlSddGJkIQXRUjwgO8YUdyN4g,86
|
239
237
|
wandb/sdk/artifacts/storage_layout.py,sha256=No2cLJEuU3Dr8rJ5Pq-e-36S6p-WKoYcCG24DKAKzro,73
|
240
|
-
wandb/sdk/artifacts/artifact.py,sha256=
|
238
|
+
wandb/sdk/artifacts/artifact.py,sha256=Fpo7my8k83DzCXDDxyardKG1CJkl2dPupyEvcuprybI,90432
|
241
239
|
wandb/sdk/artifacts/_validators.py,sha256=QlN8yn7muPn1NZMSslHVYM-mcGEEd_4XLfRdv3Wf91Y,4171
|
242
240
|
wandb/sdk/artifacts/artifact_file_cache.py,sha256=503z2x4CoTLXk_IfC9jRKBU9fr-X9PMiyG66h0INzQg,9744
|
243
241
|
wandb/sdk/artifacts/artifact_saver.py,sha256=2x_n6KKSdntz7XBIDzQt3BqTXQgxfpyHe4U0GHe0nI8,9329
|
@@ -292,10 +290,11 @@ wandb/sdk/data_types/helper_types/classes.py,sha256=cg-AwUgULbb3T_-ptOdliXGvYjXZ
|
|
292
290
|
wandb/sdk/data_types/helper_types/image_mask.py,sha256=kx77gxfNnhNIk-Nvaw2SC-NjnDlD5x7RXEB0DBuZCis,8727
|
293
291
|
wandb/sdk/verify/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
294
292
|
wandb/sdk/verify/verify.py,sha256=Bz7DKW7zmhNAPJQNAAQszAmjBilxs2WJJ9rVHRml6LM,18299
|
295
|
-
wandb/sdk/mailbox/
|
296
|
-
wandb/sdk/mailbox/__init__.py,sha256=
|
297
|
-
wandb/sdk/mailbox/
|
298
|
-
wandb/sdk/mailbox/
|
293
|
+
wandb/sdk/mailbox/mailbox_handle.py,sha256=YLKNMkytIAoIpMuV5Nu_g04JdTGzm8P9d9iw2EPJhV4,3743
|
294
|
+
wandb/sdk/mailbox/__init__.py,sha256=C4x3ym_hymymKFZiI1Q0HPlGx5x5CzeKPVF229Z2V8w,856
|
295
|
+
wandb/sdk/mailbox/response_handle.py,sha256=kZWVvVbpc92u3u23FTwAod-QCPFENUYREpjXm-wkh6Q,5031
|
296
|
+
wandb/sdk/mailbox/wait_with_progress.py,sha256=O3yGgUC3ztpfmdLk_CyirJVeXiCzF8nuDI2CqNiak90,4126
|
297
|
+
wandb/sdk/mailbox/mailbox.py,sha256=jUEP2Ltgi9rCZmiDtfb5ZESaqwB2wH-sy72OLRvATZk,4314
|
299
298
|
wandb/sdk/launch/wandb_reference.py,sha256=t4REjZz5lwB9fjDW2eo8uRgw9KeLsPeZ1Uu8tiFDBfA,4253
|
300
299
|
wandb/sdk/launch/_launch.py,sha256=FZ2JjZc1rzAIW3biWpVKHzxTwWmRx1ZK3n5S-YUQMKE,11829
|
301
300
|
wandb/sdk/launch/__init__.py,sha256=moXY557JibPbvE1GSSh3nGFiyelTVaJZMdFSv61Dn2k,399
|
@@ -347,7 +346,7 @@ wandb/sdk/launch/inputs/internal.py,sha256=xtEZ7znfUCL2ME7xZv5bD8I5C6hNpN2EqjgNd
|
|
347
346
|
wandb/sdk/launch/inputs/files.py,sha256=BWGDmAfDPLja7zz0bUzYLaF3wH4cTPesD9LqDuJRUoU,4685
|
348
347
|
wandb/sdk/launch/inputs/manage.py,sha256=O0IsTWhjUftihohRfK7DkT186LjHMMcE2NSMeG8IFBY,5003
|
349
348
|
wandb/sdk/launch/inputs/schema.py,sha256=Fs4CcxI0ifFagazbNp47uJP15JL3v43PAvVNO93f9XY,1418
|
350
|
-
wandb/sdk/internal/sender.py,sha256=
|
349
|
+
wandb/sdk/internal/sender.py,sha256=Bwit4q53suRX37KKTiONT65V1f6fm87o1RjnkLIYgi8,64514
|
351
350
|
wandb/sdk/internal/internal.py,sha256=o9_-6C99LMOx_YB5xuZ1I1KgpeHk3jUgll63sEe9gCY,12182
|
352
351
|
wandb/sdk/internal/run.py,sha256=8OhVy2vfgPC8pNFq0tJ4CkQHETOBfQsFDghw50ccSXc,682
|
353
352
|
wandb/sdk/internal/job_builder.py,sha256=_L-DfGFEzDl0JLXPo535KPK3Bk0vqXsTQVF7buXeaiY,22962
|
@@ -386,16 +385,16 @@ wandb/sdk/internal/system/assets/tpu.py,sha256=nwv3C9a6dgD1hc0461Rh28NQkWbNQ5fJO
|
|
386
385
|
wandb/sdk/internal/system/assets/network.py,sha256=n3buH2-InLGT35PVlvhY5eHv_Hm5Kl_N8jH576OiVi8,3392
|
387
386
|
wandb/sdk/internal/system/assets/open_metrics.py,sha256=VqOncOSnPztqSyQ0g-zeJWcjc_lircRk6F76rwoBWR4,9631
|
388
387
|
wandb/sdk/internal/system/assets/gpu.py,sha256=DnnfH9fvvfiRXzMAXjCgHZZZt_Kkn2br74T3Y_oyyhw,13722
|
389
|
-
wandb/sdk/backend/backend.py,sha256=
|
388
|
+
wandb/sdk/backend/backend.py,sha256=w9aV2IEEjUFjjAzAe8UX7Pfz49hp3dcI-fXRhpQWq9A,7791
|
390
389
|
wandb/sdk/backend/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
391
390
|
wandb/sdk/lib/deprecate.py,sha256=r8kT4UY2DSG7V5N78MG46kQOzycBp3_8lH49KnDXxXM,1462
|
392
391
|
wandb/sdk/lib/exit_hooks.py,sha256=_4oozaRQCJi8NJfZvHsA8livvFb0trZKLOGB8_UcHGk,1540
|
393
392
|
wandb/sdk/lib/server.py,sha256=dn0RXjAnpmigAULLyq75XHYyHxw17MLCJ9fhPq2v22I,1623
|
394
393
|
wandb/sdk/lib/paths.py,sha256=YiEE5mkYB5ahMuI4C27IsNvejC3z6MI5JPW1iISi864,4529
|
395
|
-
wandb/sdk/lib/sock_client.py,sha256=
|
394
|
+
wandb/sdk/lib/sock_client.py,sha256=YzR4uFMgFBA95ySl9h2QwIqXKMEAyb36Y09vpf70IPU,8383
|
396
395
|
wandb/sdk/lib/credentials.py,sha256=WmVdzL1rFy7S0WIHf1ZYd98_eaHTxPKUobReRSPQgBM,4737
|
397
396
|
wandb/sdk/lib/runid.py,sha256=Qa-5ft4B85YUazkV_18OYwf9JhMaAVp0JAInZzxzX5o,392
|
398
|
-
wandb/sdk/lib/redirect.py,sha256
|
397
|
+
wandb/sdk/lib/redirect.py,sha256=-7iM7Bg12LzsLivkkVL3wO1pT4ofKeShz1L6NTHoSVc,27249
|
399
398
|
wandb/sdk/lib/preinit.py,sha256=11QkGmBpoGazNaUGvyDIzBJA4QTggj7fGQdugpCvOiw,1450
|
400
399
|
wandb/sdk/lib/file_stream_utils.py,sha256=NN4qaSyNufvlkg96a1YUjQ8-pYtCVU7xagJaW8mqAyI,4018
|
401
400
|
wandb/sdk/lib/interrupt.py,sha256=Ea7aSVHcY0wLYnyMfm4jZbQcwGPgRcuPuoBSe0Swuds,1353
|
@@ -413,13 +412,14 @@ wandb/sdk/lib/retry.py,sha256=BAgPgJb1SxRguor2KTfOFnQpTlyNE4M_X8VcEc7YfMs,10173
|
|
413
412
|
wandb/sdk/lib/json_util.py,sha256=fAsYfaw8iMmx3KJ0wSthUSj_XpF1iAysad4XZY1kQdo,2584
|
414
413
|
wandb/sdk/lib/gitlib.py,sha256=RjlbRyZpIRqc0toVJQSpNxVgPpwx1LSjeF9LSuf4bAY,7836
|
415
414
|
wandb/sdk/lib/proto_util.py,sha256=JxDldi8j6dfF_Lx9zOwqYL6LQZhYYGgKt_AfZtYHAW0,2894
|
415
|
+
wandb/sdk/lib/console_capture.py,sha256=eC1bThCHa9DiQTk21ALdK8w1ETeydBpiTOYKN31EjVs,4923
|
416
416
|
wandb/sdk/lib/ipython.py,sha256=I2iT6vY90Aaws7tmjzW_CrUdQFmfV9-WhAPk8at9LQg,3782
|
417
417
|
wandb/sdk/lib/service_token.py,sha256=c4olk_g4Suo0zTTDaoR78oHLwpt3NgDzQeF94raigME,2471
|
418
418
|
wandb/sdk/lib/run_moment.py,sha256=HMx8jYIaWwmSPNViP54ZYMbxLKBn2m_ezYCa67UC6H8,2464
|
419
419
|
wandb/sdk/lib/hashutil.py,sha256=aU8YsAgkTcYDlqshfcDjItiO2s9lqq2YdKt7RoA2adQ,2763
|
420
420
|
wandb/sdk/lib/module.py,sha256=PWxpFqOYmLyKPF-VgfINZXzkFxDcoQVunVDVNWNnbxQ,2098
|
421
421
|
wandb/sdk/lib/handler_util.py,sha256=mT9CKsmboq4lPWElsi4uo9ORHhx6OYTr7KY2QtgbM6M,589
|
422
|
-
wandb/sdk/lib/service_connection.py,sha256=
|
422
|
+
wandb/sdk/lib/service_connection.py,sha256=pf1T0isbDwTkv9MvuIpuk1MHTVkCebK4N8n9pXF4SSg,7455
|
423
423
|
wandb/sdk/lib/progress.py,sha256=GakG9R_mJxVx8zG8atVHKydDZt0uRFEPwls7b3hUpsc,10652
|
424
424
|
wandb/sdk/lib/gql_request.py,sha256=-KRTtT2zqn7pTOBcl41IBdbvQ25YCrxVurROpRqrWqw,2399
|
425
425
|
wandb/sdk/lib/asyncio_compat.py,sha256=AokSd8OXVYF1ALggThRr4RrgD4UiUtDjP3LRE4HLEm4,6584
|
@@ -430,13 +430,13 @@ wandb/sdk/lib/fsm.py,sha256=RLr_wp6_9vSRQbnoP6aqOXYghi53FV93eUyAMMEjcTg,5175
|
|
430
430
|
wandb/sdk/lib/lazyloader.py,sha256=4Seis4C8Ph6a2-3scfYqeHh7KjKG6PO0WJ2ZPW30O0o,1891
|
431
431
|
wandb/sdk/service/service.py,sha256=tfw6zDHLv9q7E_W25g5eddC6nuyvFPLZvpsTZv1SBM0,8614
|
432
432
|
wandb/sdk/service/server.py,sha256=_0MAn4Y1hs2AnapyQb5heYiixKQNxFENfkxIGoiiIB8,3460
|
433
|
-
wandb/sdk/service/streams.py,sha256=
|
433
|
+
wandb/sdk/service/streams.py,sha256=lNtn6aujS5GlhzsG1Uw3JpF7GL5tWewN1dW39uP5hFo,14801
|
434
434
|
wandb/sdk/service/_startup_debug.py,sha256=A6P5iCYRoNGcVulziUc7Mw_Y2MCG8PAIAUVjzzMUTPs,602
|
435
|
-
wandb/sdk/service/server_sock.py,sha256=
|
435
|
+
wandb/sdk/service/server_sock.py,sha256=HiuncxAaNHUpii7CCIvYr1XVirBHNE7d3WBK2tVVsxY,9695
|
436
436
|
wandb/sdk/service/port_file.py,sha256=_VeftD2LjNBeQH6nfzd9Dyq2u4fT2YRLE7D1ikIhYmU,1546
|
437
437
|
wandb/sdk/service/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
438
438
|
wandb/filesync/step_checksum.py,sha256=AIz9ALGk59OiR3NtxGj3CJKnsKSQ_1f9PmrbIzxuarE,4690
|
439
|
-
wandb/filesync/dir_watcher.py,sha256=
|
439
|
+
wandb/filesync/dir_watcher.py,sha256=9Y57-5-hWZFzCuBL6HQVtm-MIE9p8kCRU_g_YZUVHvo,16345
|
440
440
|
wandb/filesync/upload_job.py,sha256=t-QgMheUcxFE8C9TIJ5Wp9Cl_4jlpCzCKfsRoPzrHbs,5493
|
441
441
|
wandb/filesync/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
442
442
|
wandb/filesync/stats.py,sha256=bjVBoCU9I9ke_XbEqtUgmKJVSmFxxAs2JciBzGWPhDg,3050
|
@@ -1,27 +0,0 @@
|
|
1
|
-
"""MessageFuture - represents a message result of an asynchronous operation.
|
2
|
-
|
3
|
-
Base class MessageFuture for MessageFutureObject and MessageFuturePoll
|
4
|
-
|
5
|
-
"""
|
6
|
-
|
7
|
-
import threading
|
8
|
-
from abc import abstractmethod
|
9
|
-
from typing import Optional
|
10
|
-
|
11
|
-
from wandb.proto import wandb_internal_pb2 as pb
|
12
|
-
|
13
|
-
|
14
|
-
class MessageFuture:
|
15
|
-
_object: Optional[pb.Result]
|
16
|
-
|
17
|
-
def __init__(self) -> None:
|
18
|
-
self._object = None
|
19
|
-
self._object_ready = threading.Event()
|
20
|
-
|
21
|
-
def _set_object(self, obj: pb.Result) -> None:
|
22
|
-
self._object = obj
|
23
|
-
self._object_ready.set()
|
24
|
-
|
25
|
-
@abstractmethod
|
26
|
-
def get(self, timeout: Optional[int] = None) -> Optional[pb.Result]:
|
27
|
-
raise NotImplementedError
|
@@ -1,50 +0,0 @@
|
|
1
|
-
"""MessageFuturePoll - Derived from MessageFuture but implementing polling loop.
|
2
|
-
|
3
|
-
MessageFuture represents a message result of an asynchronous operation.
|
4
|
-
|
5
|
-
MessageFuturePoll implements a polling loop to periodically query for a
|
6
|
-
completed async operation.
|
7
|
-
|
8
|
-
"""
|
9
|
-
|
10
|
-
import time
|
11
|
-
from typing import Any, Optional
|
12
|
-
|
13
|
-
from wandb.proto import wandb_internal_pb2 as pb
|
14
|
-
|
15
|
-
from .message_future import MessageFuture
|
16
|
-
|
17
|
-
|
18
|
-
class MessageFuturePoll(MessageFuture):
|
19
|
-
_fn: Any
|
20
|
-
_xid: str
|
21
|
-
|
22
|
-
def __init__(self, fn: Any, xid: str) -> None:
|
23
|
-
super().__init__()
|
24
|
-
self._fn = fn
|
25
|
-
self._xid = xid
|
26
|
-
|
27
|
-
def get(self, timeout: Optional[int] = None) -> Optional[pb.Result]:
|
28
|
-
self._poll(timeout=timeout)
|
29
|
-
if self._object_ready.is_set():
|
30
|
-
return self._object
|
31
|
-
return None
|
32
|
-
|
33
|
-
def _poll(self, timeout: Optional[int] = None) -> None:
|
34
|
-
if self._object_ready.is_set():
|
35
|
-
return
|
36
|
-
done = False
|
37
|
-
start_time = time.time()
|
38
|
-
sleep_time = 0.5
|
39
|
-
while not done:
|
40
|
-
result = self._fn(xid=self._xid)
|
41
|
-
if result:
|
42
|
-
self._set_object(result)
|
43
|
-
done = True
|
44
|
-
continue
|
45
|
-
now_time = time.time()
|
46
|
-
if timeout and start_time - now_time > timeout:
|
47
|
-
done = True
|
48
|
-
continue
|
49
|
-
time.sleep(sleep_time)
|
50
|
-
sleep_time = min(sleep_time * 2, 5)
|
File without changes
|
File without changes
|
File without changes
|