wandb 0.19.2__py3-none-macosx_11_0_arm64.whl → 0.19.4rc1__py3-none-macosx_11_0_arm64.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/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 +14 -14
- {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,15 +1,15 @@
|
|
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.4rc1.dist-info/RECORD,,
|
3
|
+
wandb-0.19.4rc1.dist-info/WHEEL,sha256=B_HTF0nESsbkeA2UeB8YgKrtPrxyKFORYURx7Qxu8Xw,101
|
4
|
+
wandb-0.19.4rc1.dist-info/entry_points.txt,sha256=v4FCOZ9gW7Pc6KLsmgQqpCiKTrA1wh2XHmNf-NUP1-I,67
|
5
|
+
wandb-0.19.4rc1.dist-info/METADATA,sha256=65fpP8edcTSem5od14zJT5b6hP6kjhd5gId96p23QXk,10285
|
6
|
+
wandb-0.19.4rc1.dist-info/licenses/LICENSE,sha256=izOKRJpGOx1PrJiGOKR0HsNdlB5JdH2d0Z4P7a7ssTc,1081
|
7
7
|
wandb/env.py,sha256=ImVRezUi1wpXf2ogJ4IY9YNaELqon3k3S6-vCMNNzwQ,13505
|
8
|
-
wandb/__init__.pyi,sha256=
|
8
|
+
wandb/__init__.pyi,sha256=nZ_mrCwelWNIQBbhGrJ1cKX8z_IfihKjoMc3ByY0loM,47027
|
9
9
|
wandb/_globals.py,sha256=CccwOAls5bxJArYHg12b08ZeKR8Qu9u57GtYWjBH0o0,702
|
10
10
|
wandb/util.py,sha256=aYGSh8sOj5P0O6IMmp9lekBuUcwHX6fKdGB85Zt_uW0,62525
|
11
11
|
wandb/wandb_run.py,sha256=CNh9S6uubFk8FphQjzkbvedyyGCN9aBEsRBKjy8tqqs,155
|
12
|
-
wandb/__init__.py,sha256=
|
12
|
+
wandb/__init__.py,sha256=amlCK5n_1hyN1-MkgQ3CWpMhvrRq-X8B9Q4iZemjWzY,6991
|
13
13
|
wandb/data_types.py,sha256=tjxcQ8padGuGxST192PyEDX_nhU__izHcAK-kaSyevI,2276
|
14
14
|
wandb/wandb_controller.py,sha256=SksJdgwn14PpnUoIaBjJ9Ki4Nksl9BpQGGn42hT0xZg,24936
|
15
15
|
wandb/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -92,7 +92,7 @@ wandb/proto/v3/wandb_base_pb2.py,sha256=_nsr_HW4Fdz62-KiXGo6Dw0_9bwdXz07auZkkH2Q
|
|
92
92
|
wandb/proto/v3/wandb_internal_pb2.py,sha256=04llmv8f_dNUGDyDMYSb8nrpWjemYP-WjlWv6j8rg2U,114564
|
93
93
|
wandb/proto/v3/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
94
94
|
wandb/proto/v3/wandb_telemetry_pb2.py,sha256=tQQJ7s3fbFYJc60JLnrkdf8yxCqKK0zJMdJaXxA3phM,13805
|
95
|
-
wandb/bin/wandb-core,sha256=
|
95
|
+
wandb/bin/wandb-core,sha256=zQuUgCZaqsj7BnIvWOFpaRkoGLIYtEqDcz6GDfSTuYg,45467090
|
96
96
|
wandb/bin/gpu_stats,sha256=tNY1jk810PMgZb0jCvW4THq41AylAf4LwGwKh1H3IP4,9718840
|
97
97
|
wandb/integration/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
98
98
|
wandb/integration/yolov8/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -160,7 +160,7 @@ wandb/integration/huggingface/__init__.py,sha256=Ui-JiM_yel2YZuS9U_LyReL3mhBZZSI
|
|
160
160
|
wandb/integration/huggingface/huggingface.py,sha256=KYP0dCYERORLNE1Sk6jfp0krHF2BQ4q4qOlF-0H-vrI,443
|
161
161
|
wandb/integration/huggingface/resolver.py,sha256=Atc0vwdPar5yKzTcJF6Fu2i7h7a6TX0W9B2HdeToqrI,7858
|
162
162
|
wandb/integration/metaflow/__init__.py,sha256=nYn3ubiX9Ay6PFxr7r7F8Ia_2dLImb63rpYDmuDlkkQ,109
|
163
|
-
wandb/integration/metaflow/metaflow.py,sha256=
|
163
|
+
wandb/integration/metaflow/metaflow.py,sha256=qlzrdkTmT_KTg6sUE3PV8PStuZyFGYEdQzNNNil05jI,11804
|
164
164
|
wandb/integration/lightgbm/__init__.py,sha256=ztwqeaVneF_f6ngCd0UowwksnNopl1bhSQN9hAeyoyU,7981
|
165
165
|
wandb/integration/ultralytics/callback.py,sha256=RzX-iBEJJULfYSEke_jN_kJkXsBwqo6qpjuRDHp3W7c,21253
|
166
166
|
wandb/integration/ultralytics/pose_utils.py,sha256=oknJAy_eoyokJY1u03uk_MpR7kKrJIK4wSRBK5lJGyw,3709
|
@@ -193,12 +193,12 @@ wandb/mpmain/__main__.py,sha256=bLhspPeHQvNMyRNR7xi9v-02XfW1mhJY2yBWI3bYtbg,57
|
|
193
193
|
wandb/sdk/wandb_metadata.py,sha256=nT6TUF4Yh-ka3VQGyKd3y9MTEHJUgRVT4ICyfJkbHFo,20111
|
194
194
|
wandb/sdk/wandb_config.py,sha256=b7kxQVnIh5HCBZXb2pOGZ4c02xCVlW4IQiAu3N-8Opg,10856
|
195
195
|
wandb/sdk/wandb_alerts.py,sha256=SwBPBiXRxknMTMGbsVoMMWqWK65UWMcKAdTWZtdwAeo,193
|
196
|
-
wandb/sdk/wandb_run.py,sha256=
|
196
|
+
wandb/sdk/wandb_run.py,sha256=Jk-KLMtrjX698iUCT2gjivutfR01ud9DjnuSiuVYop8,155193
|
197
197
|
wandb/sdk/wandb_sync.py,sha256=GmIjtydDNiUT3FHkrFcIZzSlqiRerXA8kY3q72ZbL1k,2275
|
198
198
|
wandb/sdk/__init__.py,sha256=N-GTAC0AzbZF2J8RzB33DTmYk9u-jubllCwvhWrPgsE,813
|
199
|
-
wandb/sdk/wandb_init.py,sha256=
|
199
|
+
wandb/sdk/wandb_init.py,sha256=XqlUH5OpIdyatgTKHMIsDM3xUSwVbgl_zFzezB8xOg8,58443
|
200
200
|
wandb/sdk/wandb_helper.py,sha256=IbJ7opO8UkfwCDekSjRYIrGBblUxnTPBfp1EdesfF4U,1824
|
201
|
-
wandb/sdk/wandb_settings.py,sha256=
|
201
|
+
wandb/sdk/wandb_settings.py,sha256=gXZydMDYH8OLcAoK78mA4naRqBA2aKlsIGKn3i4OC0s,47290
|
202
202
|
wandb/sdk/wandb_summary.py,sha256=yQdOVIPrZaZanhBQ7yuSfPLX0x6dxwkN_KAn4SgjSZU,4536
|
203
203
|
wandb/sdk/wandb_watch.py,sha256=F7S9CLbw9PddUp1qBjPRKsOiVFU8LPaq6A9taV3TJKI,4840
|
204
204
|
wandb/sdk/wandb_login.py,sha256=DP7nDUGx2UmqGRBrvTmcpvzRBVeRD0qEENtmu4sjDAQ,10966
|
@@ -215,7 +215,7 @@ wandb/sdk/interface/router_queue.py,sha256=4RDXvCcm1OQ7R7eSrZQi7qpaXyd_DzSStYs6C
|
|
215
215
|
wandb/sdk/interface/message_future_poll.py,sha256=drjrcBKswYPYJJQLFlj7UDXq7_zg7KNcObFVetsbvhQ,1410
|
216
216
|
wandb/sdk/interface/summary_record.py,sha256=-wDv_zLYueeUY8IzyF9NPYnYwF3iBpUWbrsGcHAd2YM,1677
|
217
217
|
wandb/sdk/interface/constants.py,sha256=NJNBFr7LkshLI837D3LU3JuEURLzBwza9H-kxcy4ihw,60
|
218
|
-
wandb/sdk/interface/interface.py,sha256
|
218
|
+
wandb/sdk/interface/interface.py,sha256=coqmzkIQr8s_hzryIhID__5JHw-waMkE65ICv1KcFMQ,36439
|
219
219
|
wandb/sdk/interface/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
220
220
|
wandb/sdk/interface/router_sock.py,sha256=7-J3SFhnaqPohYaUyljwpbsvYPBXA-ZTENYnXxzbh9U,1060
|
221
221
|
wandb/sdk/interface/interface_shared.py,sha256=F6kkd8Aaq_nZALIprMgul0xDkSB8uG0HXJ0-94uEZNw,21276
|
@@ -343,7 +343,7 @@ wandb/sdk/internal/thread_local_settings.py,sha256=UqD6kfjsy6mvxIWcjhd-vJWkNRCeU
|
|
343
343
|
wandb/sdk/internal/sender_config.py,sha256=qEuXwOskca3sYyDIRsswlXmj9StCCS0WKQ1qrBXbIjw,6767
|
344
344
|
wandb/sdk/internal/settings_static.py,sha256=1Dc2MoVCIskHo7rKafjtrVxY9sQWZMNeee39LYBe9t0,3668
|
345
345
|
wandb/sdk/internal/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
346
|
-
wandb/sdk/internal/tb_watcher.py,sha256=
|
346
|
+
wandb/sdk/internal/tb_watcher.py,sha256=3AvQGlZLGkr8POhaSGzbeyIcX0YWkLkblJ0bksAB8U8,18738
|
347
347
|
wandb/sdk/internal/flow_control.py,sha256=3LJ-KatyPPH18G7TfSMLDk-BE5tankB4JRhQqLoUOWM,8585
|
348
348
|
wandb/sdk/internal/context.py,sha256=dnmsKEoQ2xOtmXM5OBVHdyGO3XdTQrqjxfb1lRADSTc,2518
|
349
349
|
wandb/sdk/internal/file_stream.py,sha256=Dnqayrbqa6L2sG03rX2oIFhWT-IME5vl5JTykyLFMNY,25866
|
File without changes
|
File without changes
|
File without changes
|