wandb 0.19.2__py3-none-win_amd64.whl → 0.19.4rc1__py3-none-win_amd64.whl
Sign up to get free protection for your applications and to get access to all the features.
- wandb/__init__.py +1 -1
- wandb/__init__.pyi +13 -3
- wandb/bin/gpu_stats.exe +0 -0
- wandb/bin/wandb-core +0 -0
- wandb/integration/metaflow/metaflow.py +7 -9
- wandb/sdk/interface/interface.py +2 -8
- wandb/sdk/internal/tb_watcher.py +3 -1
- wandb/sdk/wandb_init.py +395 -238
- wandb/sdk/wandb_run.py +11 -19
- wandb/sdk/wandb_settings.py +2 -27
- {wandb-0.19.2.dist-info → wandb-0.19.4rc1.dist-info}/METADATA +1 -1
- {wandb-0.19.2.dist-info → wandb-0.19.4rc1.dist-info}/RECORD +15 -15
- {wandb-0.19.2.dist-info → wandb-0.19.4rc1.dist-info}/WHEEL +0 -0
- {wandb-0.19.2.dist-info → wandb-0.19.4rc1.dist-info}/entry_points.txt +0 -0
- {wandb-0.19.2.dist-info → wandb-0.19.4rc1.dist-info}/licenses/LICENSE +0 -0
wandb/sdk/wandb_run.py
CHANGED
@@ -29,7 +29,6 @@ import wandb.util
|
|
29
29
|
from wandb import trigger
|
30
30
|
from wandb._globals import _datatypes_set_callback
|
31
31
|
from wandb.apis import internal, public
|
32
|
-
from wandb.apis.internal import Api
|
33
32
|
from wandb.apis.public import Api as PublicApi
|
34
33
|
from wandb.errors import CommError, UnsupportedError, UsageError
|
35
34
|
from wandb.errors.links import url_registry
|
@@ -548,8 +547,6 @@ class Run:
|
|
548
547
|
|
549
548
|
_init_pid: int
|
550
549
|
_attach_pid: int
|
551
|
-
_iface_pid: int | None
|
552
|
-
_iface_port: int | None
|
553
550
|
|
554
551
|
_attach_id: str | None
|
555
552
|
_is_attached: bool
|
@@ -708,10 +705,6 @@ class Run:
|
|
708
705
|
if launch_trace_id:
|
709
706
|
self._config[wandb_key]["launch_trace_id"] = launch_trace_id
|
710
707
|
|
711
|
-
# interface pid and port configured when backend is configured (See _hack_set_run)
|
712
|
-
# TODO: using pid isn't the best for windows as pid reuse can happen more often than unix
|
713
|
-
self._iface_pid = None
|
714
|
-
self._iface_port = None
|
715
708
|
self._attach_id = None
|
716
709
|
self._is_attached = False
|
717
710
|
self._is_finished = False
|
@@ -722,12 +715,6 @@ class Run:
|
|
722
715
|
if not self._settings.x_disable_service:
|
723
716
|
self._attach_id = self._settings.run_id
|
724
717
|
|
725
|
-
def _set_iface_pid(self, iface_pid: int) -> None:
|
726
|
-
self._iface_pid = iface_pid
|
727
|
-
|
728
|
-
def _set_iface_port(self, iface_port: int) -> None:
|
729
|
-
self._iface_port = iface_port
|
730
|
-
|
731
718
|
def _handle_launch_artifact_overrides(self) -> None:
|
732
719
|
if self._settings.launch and (os.environ.get("WANDB_ARTIFACTS") is not None):
|
733
720
|
try:
|
@@ -1443,6 +1430,7 @@ class Run:
|
|
1443
1430
|
|
1444
1431
|
not_using_tensorboard = len(wandb.patched["tensorboard"]) == 0
|
1445
1432
|
self._backend.interface.publish_partial_history(
|
1433
|
+
self,
|
1446
1434
|
data,
|
1447
1435
|
user_step=self._step,
|
1448
1436
|
step=step,
|
@@ -1814,7 +1802,10 @@ class Run:
|
|
1814
1802
|
examples = []
|
1815
1803
|
for i in range(3):
|
1816
1804
|
pixels = np.random.randint(
|
1817
|
-
low=0,
|
1805
|
+
low=0,
|
1806
|
+
high=256,
|
1807
|
+
size=(100, 100, 3),
|
1808
|
+
dtype=np.uint8,
|
1818
1809
|
)
|
1819
1810
|
pil_image = PILImage.fromarray(pixels, mode="RGB")
|
1820
1811
|
image = wandb.Image(pil_image, caption=f"random field {i}")
|
@@ -1831,7 +1822,10 @@ class Run:
|
|
1831
1822
|
run = wandb.init()
|
1832
1823
|
# axes are (time, channel, height, width)
|
1833
1824
|
frames = np.random.randint(
|
1834
|
-
low=0,
|
1825
|
+
low=0,
|
1826
|
+
high=256,
|
1827
|
+
size=(10, 3, 100, 100),
|
1828
|
+
dtype=np.uint8,
|
1835
1829
|
)
|
1836
1830
|
run.log({"video": wandb.Video(frames, fps=4)})
|
1837
1831
|
```
|
@@ -3266,8 +3260,7 @@ class Run:
|
|
3266
3260
|
is_user_created: bool = False,
|
3267
3261
|
use_after_commit: bool = False,
|
3268
3262
|
) -> Artifact:
|
3269
|
-
|
3270
|
-
if api.settings().get("anonymous") in ["allow", "must"]:
|
3263
|
+
if self._settings.anonymous in ["allow", "must"]:
|
3271
3264
|
wandb.termwarn(
|
3272
3265
|
"Artifacts logged anonymously cannot be claimed and expire after 7 days."
|
3273
3266
|
)
|
@@ -3864,8 +3857,7 @@ class Run:
|
|
3864
3857
|
f'{printer.emoji("rocket")} View run at {printer.link(run_url)}',
|
3865
3858
|
)
|
3866
3859
|
|
3867
|
-
|
3868
|
-
if run_name and Api().api.settings().get("anonymous") in ["allow", "must"]:
|
3860
|
+
if run_name and settings.anonymous in ["allow", "must"]:
|
3869
3861
|
printer.display(
|
3870
3862
|
(
|
3871
3863
|
"Do NOT share these links with anyone."
|
wandb/sdk/wandb_settings.py
CHANGED
@@ -34,14 +34,12 @@ from pydantic_core import SchemaValidator, core_schema
|
|
34
34
|
|
35
35
|
import wandb
|
36
36
|
from wandb import env, termwarn, util
|
37
|
-
from wandb.apis.internal import Api
|
38
37
|
from wandb.errors import UsageError
|
39
38
|
from wandb.proto import wandb_settings_pb2
|
40
39
|
|
41
|
-
from .lib import apikey, credentials,
|
40
|
+
from .lib import apikey, credentials, ipython
|
42
41
|
from .lib.gitlib import GitRepo
|
43
42
|
from .lib.run_moment import RunMoment
|
44
|
-
from .lib.runid import generate_id
|
45
43
|
|
46
44
|
|
47
45
|
def _path_convert(*args: str) -> str:
|
@@ -1154,29 +1152,6 @@ class Settings(BaseModel, validate_assignment=True):
|
|
1154
1152
|
|
1155
1153
|
return settings_proto
|
1156
1154
|
|
1157
|
-
def handle_resume_logic(self):
|
1158
|
-
"""Handle logic for resuming runs."""
|
1159
|
-
# handle auto resume logic
|
1160
|
-
if self.resume == "auto":
|
1161
|
-
if os.path.exists(self.resume_fname):
|
1162
|
-
with open(self.resume_fname) as f:
|
1163
|
-
resume_run_id = json.load(f)["run_id"]
|
1164
|
-
if self.run_id is None:
|
1165
|
-
self.run_id = resume_run_id
|
1166
|
-
elif self.run_id != resume_run_id:
|
1167
|
-
wandb.termwarn(
|
1168
|
-
"Tried to auto resume run with "
|
1169
|
-
f"id {resume_run_id} but id {self.run_id} is set.",
|
1170
|
-
)
|
1171
|
-
if self.run_id is None:
|
1172
|
-
self.run_id = generate_id()
|
1173
|
-
|
1174
|
-
# persist run_id in case of failure
|
1175
|
-
if self.resume == "auto" and self.resume_fname is not None:
|
1176
|
-
filesystem.mkdir_exists_ok(self.wandb_dir)
|
1177
|
-
with open(self.resume_fname, "w") as f:
|
1178
|
-
f.write(json.dumps({"run_id": self.run_id}))
|
1179
|
-
|
1180
1155
|
@staticmethod
|
1181
1156
|
def validate_url(url: str) -> None:
|
1182
1157
|
"""Validate a URL string."""
|
@@ -1262,7 +1237,7 @@ class Settings(BaseModel, validate_assignment=True):
|
|
1262
1237
|
def _get_url_query_string(self) -> str:
|
1263
1238
|
"""Construct the query string for project, run, and sweep URLs."""
|
1264
1239
|
# TODO: remove dependency on Api()
|
1265
|
-
if
|
1240
|
+
if self.anonymous not in ["allow", "must"]:
|
1266
1241
|
return ""
|
1267
1242
|
|
1268
1243
|
api_key = apikey.api_key(settings=self)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: wandb
|
3
|
-
Version: 0.19.
|
3
|
+
Version: 0.19.4rc1
|
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,6 +1,6 @@
|
|
1
1
|
package_readme.md,sha256=XGlaq8rMFcoBb21rCr2d5qeSM79ZI4WslLmXqRimTGQ,4395
|
2
|
-
wandb/__init__.py,sha256=
|
3
|
-
wandb/__init__.pyi,sha256=
|
2
|
+
wandb/__init__.py,sha256=qsquw6I2HK2IwAEscWHFxbCGu11BpUBdCBG0U2CEhWg,7237
|
3
|
+
wandb/__init__.pyi,sha256=6uU9MgzzsRUyMvNzJclDzgLOoV8k4a3A7rFl9XSh9l4,48232
|
4
4
|
wandb/__main__.py,sha256=uHY6OxHT6RtTH34zC8_UC1GsCTkndgbdsHXv-t7dOMI,67
|
5
5
|
wandb/_globals.py,sha256=NwgYSB2tl2Z5t1Tn1xpLtfkcmPy_dF01u-xxgnCbzoc,721
|
6
6
|
wandb/data_types.py,sha256=4zXwzPgwHuMjyxzNbVQZANnHM0FoqEOn1jlLvnkdPAc,2342
|
@@ -49,8 +49,8 @@ wandb/apis/reports/v1/__init__.py,sha256=nxs3gJlbvVc0b_pV5DUypk1amMkRSq_M-xUw7qP
|
|
49
49
|
wandb/apis/reports/v2/__init__.py,sha256=vlF0ZRVHS-Qd7mBllcZri-gWE0TtjhiDSA6h5XPRVLU,271
|
50
50
|
wandb/apis/workspaces/__init__.py,sha256=XsF4ccNRUCTmI9ANjlrj_dYU1OcOi5N354Wg2Qkkaqo,273
|
51
51
|
wandb/beta/workflows.py,sha256=ENy_lmIyn3k_FHdD2ZO8HBaXdeoLrsPVbEfL_KYW8Ps,10527
|
52
|
-
wandb/bin/gpu_stats.exe,sha256=
|
53
|
-
wandb/bin/wandb-core,sha256=
|
52
|
+
wandb/bin/gpu_stats.exe,sha256=yDniRlUXftdUm854QGLm1CGM_5adC_2I9RInybhtPig,8364032
|
53
|
+
wandb/bin/wandb-core,sha256=Bb1SzRUIyqGh-ABczCxV11XBcJljwNE9IcvHOC1MYNY,47138304
|
54
54
|
wandb/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
55
55
|
wandb/cli/beta.py,sha256=_wbqhk6J2yjnNuVQAGlYbYZ9-j0sFE73zMIXVkQYlXA,5619
|
56
56
|
wandb/cli/cli.py,sha256=a3aXT1tAMH5v0_BW1r4Bo6AT2YZ7e1hTz6K4ZnEcz9k,95536
|
@@ -105,7 +105,7 @@ wandb/integration/lightning/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMp
|
|
105
105
|
wandb/integration/lightning/fabric/__init__.py,sha256=_KF_WmU4ynBy9WT8EVXZw0cwDtF2t1TQ_GzUDQLXeAg,97
|
106
106
|
wandb/integration/lightning/fabric/logger.py,sha256=d-vODZybasjWRWfxgea2zt8M8fX54sx1jWu3FuxB0iQ,28015
|
107
107
|
wandb/integration/metaflow/__init__.py,sha256=yoTkbO85zdlJwL5f8HmXXVVNDTcIPyYwuHNhysTzkv4,112
|
108
|
-
wandb/integration/metaflow/metaflow.py,sha256=
|
108
|
+
wandb/integration/metaflow/metaflow.py,sha256=PQ_k9IFiq86jWxcmU2Bnbbjp8cSgPiFYd_-MF5ZtL-M,12185
|
109
109
|
wandb/integration/openai/__init__.py,sha256=negbYxbmhe4hA7Zl41FA5FnZ1JP6G6IYUTK4lS4YSqs,69
|
110
110
|
wandb/integration/openai/fine_tuning.py,sha256=k58OEjNRrHuiwCzmXRhNIb18Jz8QDjorv9_hZZC0r7s,19035
|
111
111
|
wandb/integration/openai/openai.py,sha256=43Lm8sk_VksyRf8g6TJqbNlTlwA3ujaZxF5wfhqtjQk,518
|
@@ -204,14 +204,14 @@ wandb/sdk/__init__.py,sha256=6lzqckLZUs7GpFZIwpgxGJwJDvhuyo-XCQnSrtZqE1c,850
|
|
204
204
|
wandb/sdk/wandb_alerts.py,sha256=f6ygzuXTDT0IvMLcKlgatmXKx5HMPsm8sYwvPocl0Js,205
|
205
205
|
wandb/sdk/wandb_config.py,sha256=TxH6SD8DCfFU3yhmy03yewXQ4Gvgn3avZ0qbwpZJKt8,11178
|
206
206
|
wandb/sdk/wandb_helper.py,sha256=kc5Ib648to7cEGEwAuJus07rsHudL1Ux7FWPPSRnKy8,1878
|
207
|
-
wandb/sdk/wandb_init.py,sha256=
|
207
|
+
wandb/sdk/wandb_init.py,sha256=9j2pDYPBKYdBlI9k8S6yUXe70FnyG60gIcoml3tuGfo,59904
|
208
208
|
wandb/sdk/wandb_login.py,sha256=OupHHFIAg-EwP-3jp67rR_dlcFoVd8Qu_J1gtC26p18,11305
|
209
209
|
wandb/sdk/wandb_metadata.py,sha256=kcF7MhTM4Cnlw8d5rSp-WzKNDfy2NtUhd8FFuB2i3pY,20658
|
210
210
|
wandb/sdk/wandb_metric.py,sha256=oI6NQJJ_tyZ3YcnO0Xg5avDVr3Dh6tpTvHuPEMda30A,3378
|
211
211
|
wandb/sdk/wandb_require.py,sha256=06Mgqdd5r5u4UUpIU3T2JIAn0elkFfaWRtNwyaLu8jc,3044
|
212
212
|
wandb/sdk/wandb_require_helpers.py,sha256=4PUXmVw86_XaKj3rn20s5DAjBMO8L0m26KqnTLaQJNc,1375
|
213
|
-
wandb/sdk/wandb_run.py,sha256=
|
214
|
-
wandb/sdk/wandb_settings.py,sha256=
|
213
|
+
wandb/sdk/wandb_run.py,sha256=GhunOgu-T35PJt8VTLYPv9JFResUPq8m-4q14z-6LOc,159343
|
214
|
+
wandb/sdk/wandb_settings.py,sha256=vSRyZPLORsM7Gca-pgQEUNNyo5uNXbm07wkbiNZHGoU,48543
|
215
215
|
wandb/sdk/wandb_setup.py,sha256=44YSZ2o_uFGN9cRQOcbwq25EFI5VC8EJOyOLOXGxubs,13417
|
216
216
|
wandb/sdk/wandb_summary.py,sha256=eEV3hvHhbc1XQus0MUqFmvhXCzd3SPjvVVVg_fVZ1QM,4686
|
217
217
|
wandb/sdk/wandb_sweep.py,sha256=FhjfRmWS_Ffn7CwT9kjVAnvTJFnaB50mUwaGOLb2WrU,4147
|
@@ -280,7 +280,7 @@ wandb/sdk/integration_utils/auto_logging.py,sha256=143120qDwFrh7qsojhMvT4CddgHes
|
|
280
280
|
wandb/sdk/integration_utils/data_logging.py,sha256=DtSEZB-TzxQKhjm9IXNxDeOAUZyDXGYrfRvVh2Cju54,20008
|
281
281
|
wandb/sdk/interface/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
282
282
|
wandb/sdk/interface/constants.py,sha256=GKZ2hATTBCt7yU8kloafZR34yLChiI36O_VtxZZbQyg,64
|
283
|
-
wandb/sdk/interface/interface.py,sha256=
|
283
|
+
wandb/sdk/interface/interface.py,sha256=A-WwyV6qfBYa1v5ik3fGMgKk8Re95NniuCngMqksNAE,37443
|
284
284
|
wandb/sdk/interface/interface_queue.py,sha256=RG_FfjVt3arcNSRFXCiwjkleUkpUYJZfUdp5oV-68Is,1753
|
285
285
|
wandb/sdk/interface/interface_relay.py,sha256=R28bIhebZux7PwFeJmO8wOOkm_uCjmQ2T5lKKy3sL-Y,1567
|
286
286
|
wandb/sdk/interface/interface_shared.py,sha256=f3UH-u_5bI2t_J8EJw1JN8RuTQadLtg8rQafpZlWhq0,21838
|
@@ -310,7 +310,7 @@ wandb/sdk/internal/sample.py,sha256=tVNzrLatHr8P1kbVzw8bWhLpqZxx7zdm4fgv7rv2hO0,
|
|
310
310
|
wandb/sdk/internal/sender.py,sha256=0ZJ6iGjU1UYwCyQVNzdHU-wyNWbRYvSAZdzfF3RLl74,67023
|
311
311
|
wandb/sdk/internal/sender_config.py,sha256=LZaQY4_bzb9003D2j6aynGqv-Mr2GwUGcNmnQrhJOJw,6964
|
312
312
|
wandb/sdk/internal/settings_static.py,sha256=jGEP14enXA2A9YiA_EyFzn7OhVGavyuTbr-eVEl8tBk,3767
|
313
|
-
wandb/sdk/internal/tb_watcher.py,sha256=
|
313
|
+
wandb/sdk/internal/tb_watcher.py,sha256=KRIGZA8gF3guuZm1ioUo8Uy4iOX2OZ3I_MkDW_znh-k,19259
|
314
314
|
wandb/sdk/internal/thread_local_settings.py,sha256=f6uzjTa0d6twZ9aFHzdUlUqv3gy6AnbOZoWYm95DxKA,545
|
315
315
|
wandb/sdk/internal/writer.py,sha256=D2vQe-2yEfUuGwqYxMvu7iZgo3rpsjUxCgrH8YwNSeA,7471
|
316
316
|
wandb/sdk/internal/system/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -817,8 +817,8 @@ wandb/vendor/watchdog_0_9_0/wandb_watchdog/utils/importlib2.py,sha256=kX0rdVmTDL
|
|
817
817
|
wandb/vendor/watchdog_0_9_0/wandb_watchdog/utils/platform.py,sha256=7fpTDfxSYvSRtHvyog-plRdLR5A6k1QVY_AL0gVhhPM,1563
|
818
818
|
wandb/vendor/watchdog_0_9_0/wandb_watchdog/utils/unicode_paths.py,sha256=xzyQmuba2gns1s3Qemu9SXaKV5zeTL3TP9--xOi541g,2254
|
819
819
|
wandb/vendor/watchdog_0_9_0/wandb_watchdog/utils/win32stat.py,sha256=R48kuuEIi7XzCJBJ6Xo7v6DJIbOP5EwcsWaPf5Axn_g,3951
|
820
|
-
wandb-0.19.
|
821
|
-
wandb-0.19.
|
822
|
-
wandb-0.19.
|
823
|
-
wandb-0.19.
|
824
|
-
wandb-0.19.
|
820
|
+
wandb-0.19.4rc1.dist-info/METADATA,sha256=65fpP8edcTSem5od14zJT5b6hP6kjhd5gId96p23QXk,10285
|
821
|
+
wandb-0.19.4rc1.dist-info/WHEEL,sha256=vGlXFq5Cg2SEc12yCQt0M53oxbuIdJrfMMMiwCzLXhI,93
|
822
|
+
wandb-0.19.4rc1.dist-info/entry_points.txt,sha256=v4FCOZ9gW7Pc6KLsmgQqpCiKTrA1wh2XHmNf-NUP1-I,67
|
823
|
+
wandb-0.19.4rc1.dist-info/licenses/LICENSE,sha256=rJ7p1acqNi17WFOAJ9WqsImXZtKZDA3i_gzdDVGRuFQ,1102
|
824
|
+
wandb-0.19.4rc1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|