wandb 0.19.2__py3-none-musllinux_1_2_aarch64.whl → 0.19.4rc1__py3-none-musllinux_1_2_aarch64.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 +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.4
|
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,17 +1,12 @@
|
|
1
1
|
package_readme.md,sha256=U9047nyMDICgctm1HLm4HfXwFnFKsEn2m77hsYPUZ1I,4298
|
2
|
-
wandb-0.19.2.dist-info/WHEEL,sha256=ZCaGMInsobf_X8ibOue5yAC0a46KTbFsnGjtmL2skyU,106
|
3
|
-
wandb-0.19.2.dist-info/METADATA,sha256=IpB8Qg0TddJcHZwNDfVMZPAOLEDw10Lx1KyDY944YDM,10282
|
4
|
-
wandb-0.19.2.dist-info/RECORD,,
|
5
|
-
wandb-0.19.2.dist-info/entry_points.txt,sha256=v4FCOZ9gW7Pc6KLsmgQqpCiKTrA1wh2XHmNf-NUP1-I,67
|
6
|
-
wandb-0.19.2.dist-info/licenses/LICENSE,sha256=izOKRJpGOx1PrJiGOKR0HsNdlB5JdH2d0Z4P7a7ssTc,1081
|
7
2
|
wandb/wandb_controller.py,sha256=SksJdgwn14PpnUoIaBjJ9Ki4Nksl9BpQGGn42hT0xZg,24936
|
8
3
|
wandb/jupyter.py,sha256=ip6ukYdoFzvPiHO-IUNnbMMxRnYl3ebEoC0X143_VEw,17274
|
9
4
|
wandb/wandb_run.py,sha256=CNh9S6uubFk8FphQjzkbvedyyGCN9aBEsRBKjy8tqqs,155
|
10
5
|
wandb/trigger.py,sha256=PaitU3sX6ekGkd2R8iD6d_VtI72ypF7LaPBXh3rXY7Q,615
|
11
6
|
wandb/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
12
7
|
wandb/__main__.py,sha256=gripuDgB7J8wMMeJt4CIBRjn1BMSFr5zvsrt585Pnj4,64
|
13
|
-
wandb/__init__.py,sha256=
|
14
|
-
wandb/__init__.pyi,sha256=
|
8
|
+
wandb/__init__.py,sha256=amlCK5n_1hyN1-MkgQ3CWpMhvrRq-X8B9Q4iZemjWzY,6991
|
9
|
+
wandb/__init__.pyi,sha256=nZ_mrCwelWNIQBbhGrJ1cKX8z_IfihKjoMc3ByY0loM,47027
|
15
10
|
wandb/sklearn.py,sha256=hbPkefhS39A1RRymn0nHZZmKM2TrOd4xjlkthTZe9pY,803
|
16
11
|
wandb/wandb_agent.py,sha256=0TKjcJ8jxEqaXMrs_dIflXfWFFOaulfSjzp_fpYiXD0,20985
|
17
12
|
wandb/env.py,sha256=ImVRezUi1wpXf2ogJ4IY9YNaELqon3k3S6-vCMNNzwQ,13505
|
@@ -28,8 +23,8 @@ wandb/analytics/sentry.py,sha256=-Fn7698AuFI68uaqxRGlGXnv-J6fnYxJOrSE_vv-nDQ,841
|
|
28
23
|
wandb/analytics/__init__.py,sha256=WG_Mh20Hr8d3vDmGMcfDXCMEIew3uzDYZAJwFsrbAug,50
|
29
24
|
wandb/sdk/wandb_metric.py,sha256=a3GiQXr6H18m81uobYjlJaC8CL8iANzI42qxkxfZsDs,3268
|
30
25
|
wandb/sdk/wandb_sync.py,sha256=GmIjtydDNiUT3FHkrFcIZzSlqiRerXA8kY3q72ZbL1k,2275
|
31
|
-
wandb/sdk/wandb_settings.py,sha256=
|
32
|
-
wandb/sdk/wandb_run.py,sha256=
|
26
|
+
wandb/sdk/wandb_settings.py,sha256=gXZydMDYH8OLcAoK78mA4naRqBA2aKlsIGKn3i4OC0s,47290
|
27
|
+
wandb/sdk/wandb_run.py,sha256=Jk-KLMtrjX698iUCT2gjivutfR01ud9DjnuSiuVYop8,155193
|
33
28
|
wandb/sdk/wandb_require.py,sha256=Y0ib8h27__t7hXos1F2srfsQzVfzH4BB6wq8E1aRbRA,2950
|
34
29
|
wandb/sdk/wandb_require_helpers.py,sha256=ZmKv5aXXHDTTU6nYHMLKW4_pt9X-PlaMtbRJl77kHX8,1331
|
35
30
|
wandb/sdk/wandb_metadata.py,sha256=nT6TUF4Yh-ka3VQGyKd3y9MTEHJUgRVT4ICyfJkbHFo,20111
|
@@ -39,7 +34,7 @@ wandb/sdk/wandb_sweep.py,sha256=Sg_JqxVzmjUBvii41azpdr-c6RPwHOBnSha8k7jrRhk,4028
|
|
39
34
|
wandb/sdk/wandb_config.py,sha256=b7kxQVnIh5HCBZXb2pOGZ4c02xCVlW4IQiAu3N-8Opg,10856
|
40
35
|
wandb/sdk/wandb_watch.py,sha256=F7S9CLbw9PddUp1qBjPRKsOiVFU8LPaq6A9taV3TJKI,4840
|
41
36
|
wandb/sdk/wandb_helper.py,sha256=IbJ7opO8UkfwCDekSjRYIrGBblUxnTPBfp1EdesfF4U,1824
|
42
|
-
wandb/sdk/wandb_init.py,sha256=
|
37
|
+
wandb/sdk/wandb_init.py,sha256=XqlUH5OpIdyatgTKHMIsDM3xUSwVbgl_zFzezB8xOg8,58443
|
43
38
|
wandb/sdk/wandb_login.py,sha256=DP7nDUGx2UmqGRBrvTmcpvzRBVeRD0qEENtmu4sjDAQ,10966
|
44
39
|
wandb/sdk/wandb_setup.py,sha256=7j3UBiqm8x7f4JsFPX5jR19wNRSRvf77TIyncd0HpJg,13014
|
45
40
|
wandb/sdk/wandb_summary.py,sha256=yQdOVIPrZaZanhBQ7yuSfPLX0x6dxwkN_KAn4SgjSZU,4536
|
@@ -128,7 +123,7 @@ wandb/sdk/internal/progress.py,sha256=9nNAErIXzJoapctsfqWYhESNPzFkXAu5TVAnaKsIa4
|
|
128
123
|
wandb/sdk/internal/file_pusher.py,sha256=clBm6fj_27krGVCcFw9mUdalXHRZlIUxsj5AW_BAzZU,6098
|
129
124
|
wandb/sdk/internal/flow_control.py,sha256=3LJ-KatyPPH18G7TfSMLDk-BE5tankB4JRhQqLoUOWM,8585
|
130
125
|
wandb/sdk/internal/run.py,sha256=8OhVy2vfgPC8pNFq0tJ4CkQHETOBfQsFDghw50ccSXc,682
|
131
|
-
wandb/sdk/internal/tb_watcher.py,sha256=
|
126
|
+
wandb/sdk/internal/tb_watcher.py,sha256=3AvQGlZLGkr8POhaSGzbeyIcX0YWkLkblJ0bksAB8U8,18738
|
132
127
|
wandb/sdk/internal/context.py,sha256=dnmsKEoQ2xOtmXM5OBVHdyGO3XdTQrqjxfb1lRADSTc,2518
|
133
128
|
wandb/sdk/internal/file_stream.py,sha256=Dnqayrbqa6L2sG03rX2oIFhWT-IME5vl5JTykyLFMNY,25866
|
134
129
|
wandb/sdk/internal/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -160,7 +155,7 @@ wandb/sdk/internal/system/assets/tpu.py,sha256=nwv3C9a6dgD1hc0461Rh28NQkWbNQ5fJO
|
|
160
155
|
wandb/sdk/internal/system/assets/gpu.py,sha256=DnnfH9fvvfiRXzMAXjCgHZZZt_Kkn2br74T3Y_oyyhw,13722
|
161
156
|
wandb/sdk/internal/system/assets/aggregators.py,sha256=EzJp_YjvYORcBH6g58OsqGtmy55HqYHYMAvaIsp2Iwg,1093
|
162
157
|
wandb/sdk/internal/system/assets/trainium.py,sha256=YlWnRf5fAxEqkAnHQ0iGZo2phvD-QTOAuYyO0PaJYJg,13346
|
163
|
-
wandb/sdk/interface/interface.py,sha256
|
158
|
+
wandb/sdk/interface/interface.py,sha256=coqmzkIQr8s_hzryIhID__5JHw-waMkE65ICv1KcFMQ,36439
|
164
159
|
wandb/sdk/interface/router_relay.py,sha256=uf0KA_WJ25xMwLsH_3RU_ZhRPNS5qujo1aFU2d_rfzs,953
|
165
160
|
wandb/sdk/interface/message_future_poll.py,sha256=drjrcBKswYPYJJQLFlj7UDXq7_zg7KNcObFVetsbvhQ,1410
|
166
161
|
wandb/sdk/interface/router.py,sha256=uTgmF0TaQnYq8Frgs7pncUBucA6B7XXCmKcRoYEZV10,3419
|
@@ -257,8 +252,8 @@ wandb/sdk/service/server_sock.py,sha256=lpeVRPI0ehRZHoNyG0dCGmBdLnlv_Xl1Znf4qqZH
|
|
257
252
|
wandb/sdk/service/streams.py,sha256=DR7vtHV0q4rBMGJwnS-mYoOfHix9IS8knpWrCIKNv1g,14642
|
258
253
|
wandb/sdk/service/server.py,sha256=_0MAn4Y1hs2AnapyQb5heYiixKQNxFENfkxIGoiiIB8,3460
|
259
254
|
wandb/sdk/service/_startup_debug.py,sha256=A6P5iCYRoNGcVulziUc7Mw_Y2MCG8PAIAUVjzzMUTPs,602
|
260
|
-
wandb/bin/wandb-core,sha256=
|
261
|
-
wandb/bin/gpu_stats,sha256=
|
255
|
+
wandb/bin/wandb-core,sha256=rTdTl9hrTITHO36-nN4A7W7I9vdvHfTU1iWjSttM9n0,43909272
|
256
|
+
wandb/bin/gpu_stats,sha256=rT1TGa9QIs9NUnSo67Zj9t6q5tMem7rCAX1T1Yt1ihA,10728296
|
262
257
|
wandb/proto/wandb_generate_proto.py,sha256=KO1hlAUBGHQRNKsddhcSXvh5a6rmFM3kshKTWftbWwY,1278
|
263
258
|
wandb/proto/wandb_generate_deprecated.py,sha256=Iyf7PwIL_2B7XohrckYLbjjT09lccwbqknxtWelJpJM,1002
|
264
259
|
wandb/proto/wandb_base_pb2.py,sha256=HjakgSUcYSm6X7B-nvckrmMjaUKGuUh_KE97AuFBat8,307
|
@@ -348,7 +343,7 @@ wandb/integration/huggingface/resolver.py,sha256=Atc0vwdPar5yKzTcJF6Fu2i7h7a6TX0
|
|
348
343
|
wandb/integration/lightning/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
349
344
|
wandb/integration/lightning/fabric/__init__.py,sha256=RFhr2VkC0D8b6bAXUMZzcVzqDQaoOozfP_HOogAWi9o,94
|
350
345
|
wandb/integration/lightning/fabric/logger.py,sha256=ev8xFbCohaRp4MvrBn1x_5ypuvLe2FJdUWY7Jjw0ylk,27251
|
351
|
-
wandb/integration/metaflow/metaflow.py,sha256=
|
346
|
+
wandb/integration/metaflow/metaflow.py,sha256=qlzrdkTmT_KTg6sUE3PV8PStuZyFGYEdQzNNNil05jI,11804
|
352
347
|
wandb/integration/metaflow/__init__.py,sha256=nYn3ubiX9Ay6PFxr7r7F8Ia_2dLImb63rpYDmuDlkkQ,109
|
353
348
|
wandb/integration/lightgbm/__init__.py,sha256=ztwqeaVneF_f6ngCd0UowwksnNopl1bhSQN9hAeyoyU,7981
|
354
349
|
wandb/integration/sacred/__init__.py,sha256=r-jZjCdU8PwBUHyC9n0Y6-ix5UfsYFGE7w8_pizEiYU,5691
|
@@ -822,3 +817,8 @@ wandb/docker/__init__.py,sha256=zaXUYlTQLBJo8YlxbL3kh0NBHqtXFHNg4-_TNV_WDBs,1059
|
|
822
817
|
wandb/docker/wandb-entrypoint.sh,sha256=P4eTMG7wYsgTfJIws_HT7QFlYBI70ZLnNlDGTZdmYVE,989
|
823
818
|
wandb/docker/www_authenticate.py,sha256=eQd0ap8LpZkS9ImRn2gdgl7gnHeKprdqjClrZOaCsQo,2805
|
824
819
|
wandb/docker/auth.py,sha256=Tr-BMoiMJjX8TsdUquVBBLyfxEJWR4WQZGyz6vBaJk0,15009
|
820
|
+
wandb-0.19.4rc1.dist-info/WHEEL,sha256=ZCaGMInsobf_X8ibOue5yAC0a46KTbFsnGjtmL2skyU,106
|
821
|
+
wandb-0.19.4rc1.dist-info/METADATA,sha256=uyIurAspZwmJRHUtzVckSZv375aN1Lpvi7IqLuCgMbc,10285
|
822
|
+
wandb-0.19.4rc1.dist-info/RECORD,,
|
823
|
+
wandb-0.19.4rc1.dist-info/entry_points.txt,sha256=v4FCOZ9gW7Pc6KLsmgQqpCiKTrA1wh2XHmNf-NUP1-I,67
|
824
|
+
wandb-0.19.4rc1.dist-info/licenses/LICENSE,sha256=izOKRJpGOx1PrJiGOKR0HsNdlB5JdH2d0Z4P7a7ssTc,1081
|
File without changes
|
File without changes
|
File without changes
|