wandb 0.19.7__py3-none-any.whl → 0.19.8__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.
- wandb/__init__.py +1 -1
- wandb/__init__.pyi +32 -2
- wandb/bin/gpu_stats +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 +43 -43
- 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,10 +1,10 @@
|
|
1
1
|
package_readme.md,sha256=U9047nyMDICgctm1HLm4HfXwFnFKsEn2m77hsYPUZ1I,4298
|
2
|
-
wandb/__init__.py,sha256=
|
3
|
-
wandb/__init__.pyi,sha256=
|
2
|
+
wandb/__init__.py,sha256=_gHKjYc0NbTN_pwUJWnp4yA6uRDPpWfz93VliZmKZGw,6988
|
3
|
+
wandb/__init__.pyi,sha256=D74u5n7I6svyFW-yISHSee9DUiT_yK-73wbjtuqc1sY,48317
|
4
4
|
wandb/__main__.py,sha256=gripuDgB7J8wMMeJt4CIBRjn1BMSFr5zvsrt585Pnj4,64
|
5
5
|
wandb/_globals.py,sha256=CccwOAls5bxJArYHg12b08ZeKR8Qu9u57GtYWjBH0o0,702
|
6
6
|
wandb/_iterutils.py,sha256=bOhOrOENEDzOMtyQqHysivzHri9axcVlCfXt4Ai1ot8,1545
|
7
|
-
wandb/data_types.py,sha256=
|
7
|
+
wandb/data_types.py,sha256=M-wqAO0FtIqvj28556u3h4nzSwlRcbxhXoX0B9jlJSo,2283
|
8
8
|
wandb/env.py,sha256=NtyTiZbU3xrpNiISvrTVO5SDBXVqHl58wmrhpB4MCSA,13736
|
9
9
|
wandb/jupyter.py,sha256=ip6ukYdoFzvPiHO-IUNnbMMxRnYl3ebEoC0X143_VEw,17274
|
10
10
|
wandb/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -58,7 +58,7 @@ wandb/apis/reports/v1/__init__.py,sha256=L5l1BqMaap-w5wXCzn8pC8RXB7_72MsjTx8HeLu
|
|
58
58
|
wandb/apis/reports/v2/__init__.py,sha256=jdLiTqf5QIRxnWH8drWV9Y06bZEhI5N6uGGSKAT7tv0,263
|
59
59
|
wandb/apis/workspaces/__init__.py,sha256=buvqtqELpCFWC7sHzEuslJgx24ZWDj-5lo2mdV6aHdg,265
|
60
60
|
wandb/beta/workflows.py,sha256=bk12HDWnxI4uuP0KyUbfclrTSoRVXrJibAuO_QBB5tI,10239
|
61
|
-
wandb/bin/gpu_stats,sha256=
|
61
|
+
wandb/bin/gpu_stats,sha256=T9AzcaeByDSLWt3B5Ea8fWllmv-y0eTA1KH7sWrWFZc,10766216
|
62
62
|
wandb/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
63
63
|
wandb/cli/beta.py,sha256=Um35Q9CeoQPS80g0wryo2WtSaD7VA0XqF_YCQNDNiSY,5438
|
64
64
|
wandb/cli/cli.py,sha256=eggnDh2vtLOP44F4VGEJEvoGFZZFzhUaOHtPp804NEw,92622
|
@@ -73,7 +73,7 @@ wandb/errors/term.py,sha256=kH_noQvl9BDsGBXm7fQfH5u0ERmI6bOZa8Rp49DoAPk,12207
|
|
73
73
|
wandb/errors/util.py,sha256=EtipkN-l12IT5OAyqhmZyTqYiqplS-Tz5SPp2bjfsJo,1712
|
74
74
|
wandb/errors/warnings.py,sha256=kyLP3bfXSmlztp8nOepLtfTdM-03N-i7Ho1Y568BOtk,57
|
75
75
|
wandb/filesync/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
76
|
-
wandb/filesync/dir_watcher.py,sha256=
|
76
|
+
wandb/filesync/dir_watcher.py,sha256=9Y57-5-hWZFzCuBL6HQVtm-MIE9p8kCRU_g_YZUVHvo,16345
|
77
77
|
wandb/filesync/stats.py,sha256=bjVBoCU9I9ke_XbEqtUgmKJVSmFxxAs2JciBzGWPhDg,3050
|
78
78
|
wandb/filesync/step_checksum.py,sha256=AIz9ALGk59OiR3NtxGj3CJKnsKSQ_1f9PmrbIzxuarE,4690
|
79
79
|
wandb/filesync/step_prepare.py,sha256=CmGgLMbDtwgqC-ooDrLIfWP1NZWAf0Icl3sx3KNXnCc,5495
|
@@ -195,40 +195,40 @@ wandb/proto/v3/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
195
195
|
wandb/proto/v3/wandb_base_pb2.py,sha256=_nsr_HW4Fdz62-KiXGo6Dw0_9bwdXz07auZkkH2QfSI,2355
|
196
196
|
wandb/proto/v3/wandb_internal_pb2.py,sha256=X5m7_mikGKgCRpD84q311n64q6-HMMFMhVop6XeGgHM,116112
|
197
197
|
wandb/proto/v3/wandb_server_pb2.py,sha256=LQCUmuy0NFDo20N9uCUiE5VPyhP5r929WKtniae4CdQ,15514
|
198
|
-
wandb/proto/v3/wandb_settings_pb2.py,sha256=
|
199
|
-
wandb/proto/v3/wandb_telemetry_pb2.py,sha256=
|
198
|
+
wandb/proto/v3/wandb_settings_pb2.py,sha256=Iiq2lnpfLiqk1su_dpD6SHH3zmlvOaU9kRxtyzMGMAo,21245
|
199
|
+
wandb/proto/v3/wandb_telemetry_pb2.py,sha256=c3y5sNd6dc-POBGJRmqNych_7L7nd0Cdt7ILXuW7RPM,13861
|
200
200
|
wandb/proto/v4/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
201
201
|
wandb/proto/v4/wandb_base_pb2.py,sha256=El5lnZMRpkc1W4SlZgeKoDPqWiJau0BG8QfigMMt6bM,1422
|
202
202
|
wandb/proto/v4/wandb_internal_pb2.py,sha256=LV8iKL7ufkIFyNjfG4PjDbg_u2EoGbYuMG7Qn5XaABw,53151
|
203
203
|
wandb/proto/v4/wandb_server_pb2.py,sha256=NiG6Xv9CDvxc8v8NmnM237jyYqMuRyE_nqmLAMZVdI8,6977
|
204
|
-
wandb/proto/v4/wandb_settings_pb2.py,sha256=
|
205
|
-
wandb/proto/v4/wandb_telemetry_pb2.py,sha256=
|
204
|
+
wandb/proto/v4/wandb_settings_pb2.py,sha256=hRf0tgWk8NSpeM1677mXaZOahjaG8W78qTJrct_j3r8,17620
|
205
|
+
wandb/proto/v4/wandb_telemetry_pb2.py,sha256=9ALCD8ZYH_Sr4Sw5uJ_gsPDOxwquxjkMMXZQD124Dq4,11308
|
206
206
|
wandb/proto/v5/wandb_base_pb2.py,sha256=u7VVWdExJ4WDkYNMV-xvWvyQ-NTIbAqToTKtgEqt_Lg,1572
|
207
207
|
wandb/proto/v5/wandb_internal_pb2.py,sha256=FGXDcOhWMVRkFTBF0uRSOi6YG6rJciJi0HuMlxbxmBI,57498
|
208
208
|
wandb/proto/v5/wandb_server_pb2.py,sha256=f55mk3Z77xUnq_tAbTd_Q75CiOJz6ppPbZT7CoeF7-I,7535
|
209
|
-
wandb/proto/v5/wandb_settings_pb2.py,sha256=
|
210
|
-
wandb/proto/v5/wandb_telemetry_pb2.py,sha256=
|
209
|
+
wandb/proto/v5/wandb_settings_pb2.py,sha256=qDaa79-Rm4A0-1BiDlCP4Tf69XhZyJA_Or5XpQa1keg,17976
|
210
|
+
wandb/proto/v5/wandb_telemetry_pb2.py,sha256=PCTcpV-BmgR-5qb2vA30rRhLv_V4A-8Rt3cEgczgjs8,11578
|
211
211
|
wandb/sdk/__init__.py,sha256=N-GTAC0AzbZF2J8RzB33DTmYk9u-jubllCwvhWrPgsE,813
|
212
212
|
wandb/sdk/wandb_alerts.py,sha256=SwBPBiXRxknMTMGbsVoMMWqWK65UWMcKAdTWZtdwAeo,193
|
213
213
|
wandb/sdk/wandb_config.py,sha256=b7kxQVnIh5HCBZXb2pOGZ4c02xCVlW4IQiAu3N-8Opg,10856
|
214
214
|
wandb/sdk/wandb_helper.py,sha256=IbJ7opO8UkfwCDekSjRYIrGBblUxnTPBfp1EdesfF4U,1824
|
215
|
-
wandb/sdk/wandb_init.py,sha256=
|
215
|
+
wandb/sdk/wandb_init.py,sha256=bRO4JbxWZ1DXW2-43OyQQRjYMm62vFOXzB46MmmK_W8,59497
|
216
216
|
wandb/sdk/wandb_login.py,sha256=-2EvouBgBOQgOnh_8Hlb5LCGg6Lz2OR44ieWRRgqdZ8,10952
|
217
217
|
wandb/sdk/wandb_metadata.py,sha256=NLMhT6pp16JqzKatmqeo9utEcZfil33mC7vBOxM1Ato,20218
|
218
218
|
wandb/sdk/wandb_metric.py,sha256=a3GiQXr6H18m81uobYjlJaC8CL8iANzI42qxkxfZsDs,3268
|
219
219
|
wandb/sdk/wandb_require.py,sha256=eYDG4oH1pwik2tHJVEdvivo4R2RypoITFomgr7umMhc,3104
|
220
220
|
wandb/sdk/wandb_require_helpers.py,sha256=ZmKv5aXXHDTTU6nYHMLKW4_pt9X-PlaMtbRJl77kHX8,1331
|
221
|
-
wandb/sdk/wandb_run.py,sha256=
|
222
|
-
wandb/sdk/wandb_settings.py,sha256=
|
221
|
+
wandb/sdk/wandb_run.py,sha256=4MLT0N5MYvdL9xETEKhM7nKnJQNZqaPzZpAK45-wEnU,153621
|
222
|
+
wandb/sdk/wandb_settings.py,sha256=Zbns21r4MCgMq0HjPp-qrFcYxUhrLUFEbpbAiyc9K-E,55657
|
223
223
|
wandb/sdk/wandb_setup.py,sha256=L6xoj3DWS_F_jfQ-i8kISd443AiqO8OSaOx8yCXSWzE,12938
|
224
224
|
wandb/sdk/wandb_summary.py,sha256=yQdOVIPrZaZanhBQ7yuSfPLX0x6dxwkN_KAn4SgjSZU,4536
|
225
225
|
wandb/sdk/wandb_sweep.py,sha256=Sg_JqxVzmjUBvii41azpdr-c6RPwHOBnSha8k7jrRhk,4028
|
226
|
-
wandb/sdk/wandb_sync.py,sha256=
|
226
|
+
wandb/sdk/wandb_sync.py,sha256=GNC8xYqT56ws4aw6Vd_mV_Ck-InEbqnyioSqHIybDug,2106
|
227
227
|
wandb/sdk/wandb_watch.py,sha256=F7S9CLbw9PddUp1qBjPRKsOiVFU8LPaq6A9taV3TJKI,4840
|
228
228
|
wandb/sdk/artifacts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
229
229
|
wandb/sdk/artifacts/_graphql_fragments.py,sha256=fHvyiABSU5RDa0--FN9D9Dfra_t9vnNzb2MD-S4JYzs,3080
|
230
230
|
wandb/sdk/artifacts/_validators.py,sha256=QlN8yn7muPn1NZMSslHVYM-mcGEEd_4XLfRdv3Wf91Y,4171
|
231
|
-
wandb/sdk/artifacts/artifact.py,sha256=
|
231
|
+
wandb/sdk/artifacts/artifact.py,sha256=Fpo7my8k83DzCXDDxyardKG1CJkl2dPupyEvcuprybI,90432
|
232
232
|
wandb/sdk/artifacts/artifact_download_logger.py,sha256=XEVxmktMInrd1p2z86CKt3QyTA9vscxJL5-8_eupknI,1501
|
233
233
|
wandb/sdk/artifacts/artifact_file_cache.py,sha256=503z2x4CoTLXk_IfC9jRKBU9fr-X9PMiyG66h0INzQg,9744
|
234
234
|
wandb/sdk/artifacts/artifact_instance_cache.py,sha256=atSUDvKjkp6by6QY0w2FLMrFUg9UKc8TIrMVWGauV64,501
|
@@ -258,7 +258,7 @@ wandb/sdk/artifacts/storage_policies/__init__.py,sha256=bgpWKElL-3iHcLO8pF-L8oez
|
|
258
258
|
wandb/sdk/artifacts/storage_policies/register.py,sha256=xT7kUxubtLqyE-9S6U9E4mCo1PtXl0ZEJ6gVQiS-kGQ,49
|
259
259
|
wandb/sdk/artifacts/storage_policies/wandb_storage_policy.py,sha256=m2s67vmRySPw0bkI69HoIUTO2hyYAo-Nl22jv32Rl90,14002
|
260
260
|
wandb/sdk/backend/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
261
|
-
wandb/sdk/backend/backend.py,sha256=
|
261
|
+
wandb/sdk/backend/backend.py,sha256=w9aV2IEEjUFjjAzAe8UX7Pfz49hp3dcI-fXRhpQWq9A,7791
|
262
262
|
wandb/sdk/data_types/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
263
263
|
wandb/sdk/data_types/_dtypes.py,sha256=NdRfTto95YxLMMK89PONQvAz_Jaey8D7caTsZ_OlvW8,30092
|
264
264
|
wandb/sdk/data_types/_private.py,sha256=zp2NRarTlIq4Hk3R2xp7j_qPGNzBMnaGHrZUN82shaY,299
|
@@ -289,17 +289,15 @@ wandb/sdk/integration_utils/auto_logging.py,sha256=sblNn9BIG7memxTj23UfrGXyA06t3
|
|
289
289
|
wandb/sdk/integration_utils/data_logging.py,sha256=DDFtDaUu50aeTTgxCHHYd2f85guqqf2xfEOburRlwwQ,19533
|
290
290
|
wandb/sdk/interface/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
291
291
|
wandb/sdk/interface/constants.py,sha256=NJNBFr7LkshLI837D3LU3JuEURLzBwza9H-kxcy4ihw,60
|
292
|
-
wandb/sdk/interface/interface.py,sha256=
|
293
|
-
wandb/sdk/interface/interface_queue.py,sha256=
|
294
|
-
wandb/sdk/interface/interface_relay.py,sha256=
|
295
|
-
wandb/sdk/interface/interface_shared.py,sha256=
|
296
|
-
wandb/sdk/interface/interface_sock.py,sha256=
|
297
|
-
wandb/sdk/interface/
|
298
|
-
wandb/sdk/interface/
|
299
|
-
wandb/sdk/interface/
|
300
|
-
wandb/sdk/interface/
|
301
|
-
wandb/sdk/interface/router_relay.py,sha256=imeQIhQinZ5FN_yUvN_OUXhR7Z0mSYCNhaB8voMoaqk,958
|
302
|
-
wandb/sdk/interface/router_sock.py,sha256=BOnSoKu0Di8lIjdL0Z-F1RiSRRpZMSHwuInF-sI0wP4,1085
|
292
|
+
wandb/sdk/interface/interface.py,sha256=oRyy1hs78rZyjf3jn7pHKAqZUA7Swz25I90yDmuJ4vA,37716
|
293
|
+
wandb/sdk/interface/interface_queue.py,sha256=zOjUB2nf_wNMoEeXGWP5di-u4-UL2_jvsVZw53EbEsk,1257
|
294
|
+
wandb/sdk/interface/interface_relay.py,sha256=lM5ZgJc6m8BS-nWOuzMCwAK0ve9UBGgOD2rgJ9flIhI,867
|
295
|
+
wandb/sdk/interface/interface_shared.py,sha256=XmEg78CyUHI4XPNtgyx59aQIlzJzQjZYEIeQVECHXSE,18645
|
296
|
+
wandb/sdk/interface/interface_sock.py,sha256=rz6uwKNzLpGDCCVGSlC6ABspmkYD5LnGX_cd9dvaAwU,1043
|
297
|
+
wandb/sdk/interface/router.py,sha256=hlYzz7DjDt3sYDJQYLE1NHkxGFDezHgmfznnPRHPcHU,2630
|
298
|
+
wandb/sdk/interface/router_queue.py,sha256=wnApY1iXa_3L0-HO6t42Nbsh68zyEw3FWN3oI6PmoXM,1049
|
299
|
+
wandb/sdk/interface/router_relay.py,sha256=tOBQYEX7PGw9-qE91CdNhLEQb9KbJiQnlHg7XBOsijA,1390
|
300
|
+
wandb/sdk/interface/router_sock.py,sha256=S15CRwMoDFYKnEzwqAjvPQC6BlKtJpxE_rZHeaxM2V4,1002
|
303
301
|
wandb/sdk/interface/summary_record.py,sha256=-wDv_zLYueeUY8IzyF9NPYnYwF3iBpUWbrsGcHAd2YM,1677
|
304
302
|
wandb/sdk/internal/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
305
303
|
wandb/sdk/internal/context.py,sha256=dnmsKEoQ2xOtmXM5OBVHdyGO3XdTQrqjxfb1lRADSTc,2518
|
@@ -316,7 +314,7 @@ wandb/sdk/internal/profiler.py,sha256=C8-mPrAhPS6_l-Fj_zCOwmXaEqhjI9Wd0EAPXS9GAE
|
|
316
314
|
wandb/sdk/internal/progress.py,sha256=9nNAErIXzJoapctsfqWYhESNPzFkXAu5TVAnaKsIa4k,2339
|
317
315
|
wandb/sdk/internal/run.py,sha256=8OhVy2vfgPC8pNFq0tJ4CkQHETOBfQsFDghw50ccSXc,682
|
318
316
|
wandb/sdk/internal/sample.py,sha256=USAWLhEeP83J13BVOSIy1Rb3kDDKTK9kzR88SlhO7dw,2470
|
319
|
-
wandb/sdk/internal/sender.py,sha256=
|
317
|
+
wandb/sdk/internal/sender.py,sha256=Bwit4q53suRX37KKTiONT65V1f6fm87o1RjnkLIYgi8,64514
|
320
318
|
wandb/sdk/internal/sender_config.py,sha256=qEuXwOskca3sYyDIRsswlXmj9StCCS0WKQ1qrBXbIjw,6767
|
321
319
|
wandb/sdk/internal/settings_static.py,sha256=1Dc2MoVCIskHo7rKafjtrVxY9sQWZMNeee39LYBe9t0,3668
|
322
320
|
wandb/sdk/internal/tb_watcher.py,sha256=3AvQGlZLGkr8POhaSGzbeyIcX0YWkLkblJ0bksAB8U8,18738
|
@@ -396,6 +394,7 @@ wandb/sdk/lib/apikey.py,sha256=a3m7IaNyx7_yP-rB_PI-DiVJgtv27gqapvYYHgogx_A,10508
|
|
396
394
|
wandb/sdk/lib/asyncio_compat.py,sha256=AokSd8OXVYF1ALggThRr4RrgD4UiUtDjP3LRE4HLEm4,6584
|
397
395
|
wandb/sdk/lib/capped_dict.py,sha256=T2CNkmzfWeFgXOsFmx5IDPzgYmP1jxaVAb-nn3-qBBE,820
|
398
396
|
wandb/sdk/lib/config_util.py,sha256=YdYvk-KbTdTa-84XegpvbqMuQfdlOREFiVR7m3q6e3Q,2917
|
397
|
+
wandb/sdk/lib/console_capture.py,sha256=eC1bThCHa9DiQTk21ALdK8w1ETeydBpiTOYKN31EjVs,4923
|
399
398
|
wandb/sdk/lib/credentials.py,sha256=WmVdzL1rFy7S0WIHf1ZYd98_eaHTxPKUobReRSPQgBM,4737
|
400
399
|
wandb/sdk/lib/deprecate.py,sha256=r8kT4UY2DSG7V5N78MG46kQOzycBp3_8lH49KnDXxXM,1462
|
401
400
|
wandb/sdk/lib/disabled.py,sha256=zIuxC4uddcjAGCU-PEQGgoe7FzxJTHho3llW0R1uBX4,884
|
@@ -419,29 +418,30 @@ wandb/sdk/lib/preinit.py,sha256=11QkGmBpoGazNaUGvyDIzBJA4QTggj7fGQdugpCvOiw,1450
|
|
419
418
|
wandb/sdk/lib/printer.py,sha256=v3T2wqere8HQIVba9LYd8xCIUtV8e8l21Fw4XUEPbXM,15289
|
420
419
|
wandb/sdk/lib/progress.py,sha256=GakG9R_mJxVx8zG8atVHKydDZt0uRFEPwls7b3hUpsc,10652
|
421
420
|
wandb/sdk/lib/proto_util.py,sha256=JxDldi8j6dfF_Lx9zOwqYL6LQZhYYGgKt_AfZtYHAW0,2894
|
422
|
-
wandb/sdk/lib/redirect.py,sha256
|
421
|
+
wandb/sdk/lib/redirect.py,sha256=-7iM7Bg12LzsLivkkVL3wO1pT4ofKeShz1L6NTHoSVc,27249
|
423
422
|
wandb/sdk/lib/retry.py,sha256=BAgPgJb1SxRguor2KTfOFnQpTlyNE4M_X8VcEc7YfMs,10173
|
424
423
|
wandb/sdk/lib/run_moment.py,sha256=HMx8jYIaWwmSPNViP54ZYMbxLKBn2m_ezYCa67UC6H8,2464
|
425
424
|
wandb/sdk/lib/runid.py,sha256=Qa-5ft4B85YUazkV_18OYwf9JhMaAVp0JAInZzxzX5o,392
|
426
425
|
wandb/sdk/lib/server.py,sha256=dn0RXjAnpmigAULLyq75XHYyHxw17MLCJ9fhPq2v22I,1623
|
427
|
-
wandb/sdk/lib/service_connection.py,sha256=
|
426
|
+
wandb/sdk/lib/service_connection.py,sha256=pf1T0isbDwTkv9MvuIpuk1MHTVkCebK4N8n9pXF4SSg,7455
|
428
427
|
wandb/sdk/lib/service_token.py,sha256=c4olk_g4Suo0zTTDaoR78oHLwpt3NgDzQeF94raigME,2471
|
429
|
-
wandb/sdk/lib/sock_client.py,sha256=
|
428
|
+
wandb/sdk/lib/sock_client.py,sha256=YzR4uFMgFBA95ySl9h2QwIqXKMEAyb36Y09vpf70IPU,8383
|
430
429
|
wandb/sdk/lib/sparkline.py,sha256=9xQkuZ0z1DM7rHE2jFNDy5vBdPirnurd__A_bC6-Bgc,1363
|
431
430
|
wandb/sdk/lib/telemetry.py,sha256=Q7rh7qyeicy9KdgQffVK6ZI8vHUdOtwFvxEeeJtOWcI,2754
|
432
431
|
wandb/sdk/lib/timed_input.py,sha256=D7vx3N3m4LlxwkQpzS7lDi7IOnccqZ3WfLlDYRs8Oes,3229
|
433
432
|
wandb/sdk/lib/timer.py,sha256=VZUyl7fmQAB75l9QXw9Nkz9SxyYj-CvLPawAk866YKM,440
|
434
|
-
wandb/sdk/mailbox/__init__.py,sha256=
|
435
|
-
wandb/sdk/mailbox/
|
436
|
-
wandb/sdk/mailbox/
|
437
|
-
wandb/sdk/mailbox/
|
433
|
+
wandb/sdk/mailbox/__init__.py,sha256=C4x3ym_hymymKFZiI1Q0HPlGx5x5CzeKPVF229Z2V8w,856
|
434
|
+
wandb/sdk/mailbox/mailbox.py,sha256=jUEP2Ltgi9rCZmiDtfb5ZESaqwB2wH-sy72OLRvATZk,4314
|
435
|
+
wandb/sdk/mailbox/mailbox_handle.py,sha256=YLKNMkytIAoIpMuV5Nu_g04JdTGzm8P9d9iw2EPJhV4,3743
|
436
|
+
wandb/sdk/mailbox/response_handle.py,sha256=kZWVvVbpc92u3u23FTwAod-QCPFENUYREpjXm-wkh6Q,5031
|
437
|
+
wandb/sdk/mailbox/wait_with_progress.py,sha256=O3yGgUC3ztpfmdLk_CyirJVeXiCzF8nuDI2CqNiak90,4126
|
438
438
|
wandb/sdk/service/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
439
439
|
wandb/sdk/service/_startup_debug.py,sha256=A6P5iCYRoNGcVulziUc7Mw_Y2MCG8PAIAUVjzzMUTPs,602
|
440
440
|
wandb/sdk/service/port_file.py,sha256=_VeftD2LjNBeQH6nfzd9Dyq2u4fT2YRLE7D1ikIhYmU,1546
|
441
441
|
wandb/sdk/service/server.py,sha256=_0MAn4Y1hs2AnapyQb5heYiixKQNxFENfkxIGoiiIB8,3460
|
442
|
-
wandb/sdk/service/server_sock.py,sha256=
|
442
|
+
wandb/sdk/service/server_sock.py,sha256=HiuncxAaNHUpii7CCIvYr1XVirBHNE7d3WBK2tVVsxY,9695
|
443
443
|
wandb/sdk/service/service.py,sha256=tfw6zDHLv9q7E_W25g5eddC6nuyvFPLZvpsTZv1SBM0,8614
|
444
|
-
wandb/sdk/service/streams.py,sha256=
|
444
|
+
wandb/sdk/service/streams.py,sha256=lNtn6aujS5GlhzsG1Uw3JpF7GL5tWewN1dW39uP5hFo,14801
|
445
445
|
wandb/sdk/verify/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
446
446
|
wandb/sdk/verify/verify.py,sha256=Bz7DKW7zmhNAPJQNAAQszAmjBilxs2WJJ9rVHRml6LM,18299
|
447
447
|
wandb/sync/__init__.py,sha256=BzzKmWKjsrCTBAj24d-lJOEPkFUmTfvaK2MeXplSwcc,93
|
@@ -830,8 +830,8 @@ wandb/vendor/watchdog_0_9_0/wandb_watchdog/utils/importlib2.py,sha256=cJIaJ2EQso
|
|
830
830
|
wandb/vendor/watchdog_0_9_0/wandb_watchdog/utils/platform.py,sha256=UORYTNVcUSE2NpFcq9UVLIS-tsS0TS_Qw8akhKxn2eY,1506
|
831
831
|
wandb/vendor/watchdog_0_9_0/wandb_watchdog/utils/unicode_paths.py,sha256=UWX8DB97ygkEeSxWQUYCHR4MahNilux7vl5TCTQtPPk,2190
|
832
832
|
wandb/vendor/watchdog_0_9_0/wandb_watchdog/utils/win32stat.py,sha256=ZOevOTbSo8NRiIxkuBVGaG4yigWnPoO0goxAi-jsBkM,3828
|
833
|
-
wandb-0.19.
|
834
|
-
wandb-0.19.
|
835
|
-
wandb-0.19.
|
836
|
-
wandb-0.19.
|
837
|
-
wandb-0.19.
|
833
|
+
wandb-0.19.8.dist-info/METADATA,sha256=ziJ-NKmG12cZwapJt1l4pxn9CDnWqa2i7AKn8Ba1B20,10289
|
834
|
+
wandb-0.19.8.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
835
|
+
wandb-0.19.8.dist-info/entry_points.txt,sha256=v4FCOZ9gW7Pc6KLsmgQqpCiKTrA1wh2XHmNf-NUP1-I,67
|
836
|
+
wandb-0.19.8.dist-info/licenses/LICENSE,sha256=izOKRJpGOx1PrJiGOKR0HsNdlB5JdH2d0Z4P7a7ssTc,1081
|
837
|
+
wandb-0.19.8.dist-info/RECORD,,
|
@@ -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
|