wandb 0.21.4__py3-none-musllinux_1_2_aarch64.whl → 0.22.0__py3-none-musllinux_1_2_aarch64.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 +1 -1
- wandb/apis/public/__init__.py +42 -0
- wandb/apis/public/runs.py +24 -6
- wandb/bin/gpu_stats +0 -0
- wandb/bin/wandb-core +0 -0
- wandb/proto/v3/wandb_internal_pb2.py +234 -224
- wandb/proto/v4/wandb_internal_pb2.py +226 -224
- wandb/proto/v5/wandb_internal_pb2.py +226 -224
- wandb/proto/v6/wandb_base_pb2.py +3 -3
- wandb/proto/v6/wandb_internal_pb2.py +229 -227
- wandb/proto/v6/wandb_server_pb2.py +3 -3
- wandb/proto/v6/wandb_settings_pb2.py +3 -3
- wandb/proto/v6/wandb_sync_pb2.py +3 -3
- wandb/proto/v6/wandb_telemetry_pb2.py +3 -3
- wandb/sdk/artifacts/storage_handlers/gcs_handler.py +1 -1
- wandb/sdk/artifacts/storage_handlers/http_handler.py +1 -3
- wandb/sdk/artifacts/storage_handlers/local_file_handler.py +1 -1
- wandb/sdk/artifacts/storage_handlers/s3_handler.py +1 -1
- wandb/sdk/artifacts/storage_policies/_factories.py +63 -0
- wandb/sdk/artifacts/storage_policies/wandb_storage_policy.py +59 -124
- wandb/sdk/interface/interface.py +10 -0
- wandb/sdk/interface/interface_shared.py +9 -0
- wandb/sdk/wandb_init.py +9 -1
- wandb/wandb_agent.py +35 -4
- {wandb-0.21.4.dist-info → wandb-0.22.0.dist-info}/METADATA +1 -1
- {wandb-0.21.4.dist-info → wandb-0.22.0.dist-info}/RECORD +811 -810
- {wandb-0.21.4.dist-info → wandb-0.22.0.dist-info}/WHEEL +0 -0
- {wandb-0.21.4.dist-info → wandb-0.22.0.dist-info}/entry_points.txt +0 -0
- {wandb-0.21.4.dist-info → wandb-0.22.0.dist-info}/licenses/LICENSE +0 -0
wandb/__init__.py
CHANGED
wandb/__init__.pyi
CHANGED
wandb/apis/public/__init__.py
CHANGED
@@ -1,3 +1,45 @@
|
|
1
|
+
__all__ = (
|
2
|
+
"Api",
|
3
|
+
"RetryingClient", # doc:exclude
|
4
|
+
"requests", # doc:exclude
|
5
|
+
"ArtifactCollection",
|
6
|
+
"ArtifactCollections",
|
7
|
+
"ArtifactFiles",
|
8
|
+
"Artifacts",
|
9
|
+
"ArtifactType",
|
10
|
+
"ArtifactTypes",
|
11
|
+
"RunArtifacts",
|
12
|
+
"Automations",
|
13
|
+
"File", # doc:exclude
|
14
|
+
"Files",
|
15
|
+
"HistoryScan", # doc:exclude
|
16
|
+
"SampledHistoryScan", # doc:exclude
|
17
|
+
"SlackIntegrations", # doc:exclude
|
18
|
+
"WebhookIntegrations", # doc:exclude
|
19
|
+
"Job", # doc:exclude
|
20
|
+
"QueuedRun", # doc:exclude
|
21
|
+
"RunQueue", # doc:exclude
|
22
|
+
"RunQueueAccessType", # doc:exclude
|
23
|
+
"RunQueuePrioritizationMode", # doc:exclude
|
24
|
+
"RunQueueResourceType", # doc:exclude
|
25
|
+
"Project",
|
26
|
+
"Projects",
|
27
|
+
"Sweeps",
|
28
|
+
"QueryGenerator", # doc:exclude
|
29
|
+
"Registry",
|
30
|
+
"BetaReport",
|
31
|
+
"PanelMetricsHelper", # doc:exclude
|
32
|
+
"PythonMongoishQueryGenerator", # doc:exclude
|
33
|
+
"Reports",
|
34
|
+
"Run",
|
35
|
+
"Runs",
|
36
|
+
"Sweep",
|
37
|
+
"Member",
|
38
|
+
"Team",
|
39
|
+
"User",
|
40
|
+
)
|
41
|
+
|
42
|
+
|
1
43
|
from wandb.apis.public.api import Api, RetryingClient, requests
|
2
44
|
from wandb.apis.public.artifacts import (
|
3
45
|
ArtifactCollection,
|
wandb/apis/public/runs.py
CHANGED
@@ -88,10 +88,28 @@ RUN_FRAGMENT = """fragment RunFragment on Run {
|
|
88
88
|
|
89
89
|
@normalize_exceptions
|
90
90
|
def _server_provides_internal_id_for_project(client) -> bool:
|
91
|
-
"""Returns True if the server allows us to query the internalId field for a project.
|
92
|
-
|
93
|
-
|
91
|
+
"""Returns True if the server allows us to query the internalId field for a project."""
|
92
|
+
query_string = """
|
93
|
+
query ProbeProjectInput {
|
94
|
+
ProjectType: __type(name:"Project") {
|
95
|
+
fields {
|
96
|
+
name
|
97
|
+
}
|
98
|
+
}
|
99
|
+
}
|
94
100
|
"""
|
101
|
+
|
102
|
+
# Only perform the query once to avoid extra network calls
|
103
|
+
query = gql(query_string)
|
104
|
+
res = client.execute(query)
|
105
|
+
return "internalId" in [
|
106
|
+
x["name"] for x in (res.get("ProjectType", {}).get("fields", [{}]))
|
107
|
+
]
|
108
|
+
|
109
|
+
|
110
|
+
@normalize_exceptions
|
111
|
+
def _server_provides_project_id_for_run(client) -> bool:
|
112
|
+
"""Returns True if the server allows us to query the projectId field for a run."""
|
95
113
|
query_string = """
|
96
114
|
query ProbeRunInput {
|
97
115
|
RunType: __type(name:"Run") {
|
@@ -209,13 +227,13 @@ class Runs(SizedPaginator["Run"]):
|
|
209
227
|
f"""#graphql
|
210
228
|
query Runs($project: String!, $entity: String!, $cursor: String, $perPage: Int = 50, $order: String, $filters: JSONString) {{
|
211
229
|
project(name: $project, entityName: $entity) {{
|
212
|
-
internalId
|
230
|
+
{"internalId" if _server_provides_internal_id_for_project(client) else ""}
|
213
231
|
runCount(filters: $filters)
|
214
232
|
readOnly
|
215
233
|
runs(filters: $filters, after: $cursor, first: $perPage, order: $order) {{
|
216
234
|
edges {{
|
217
235
|
node {{
|
218
|
-
{"projectId" if
|
236
|
+
{"projectId" if _server_provides_project_id_for_run(client) else ""}
|
219
237
|
...RunFragment
|
220
238
|
}}
|
221
239
|
cursor
|
@@ -603,7 +621,7 @@ class Run(Attrs):
|
|
603
621
|
query Run($project: String!, $entity: String!, $name: String!) {{
|
604
622
|
project(name: $project, entityName: $entity) {{
|
605
623
|
run(name: $name) {{
|
606
|
-
{"projectId" if
|
624
|
+
{"projectId" if _server_provides_project_id_for_run(self.client) else ""}
|
607
625
|
...RunFragment
|
608
626
|
}}
|
609
627
|
}}
|
wandb/bin/gpu_stats
CHANGED
Binary file
|
wandb/bin/wandb-core
CHANGED
Binary file
|