You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Description
Manual SDK Release for v23.0
Fixed some rendering issues in source. See accompanying PR:
wandb/wandb#10930
<!-- Uncomment and add a description of the change -->
<!-- Optionally, uncomment the heading and add details about how you
tested the change and how reviewers should test it. For example:
## Testing
- [ ] Local build succeeds without errors (`mint dev`)
- [ ] Local link check succeeds without errors (`mint broken-links`)
- [ ] PR tests succeed
Replace the `[ ]` with `[x]` to check off the item instead of leaving it
unchecked.
Otherwise, delete this entire section from opening to closing comment.
-->
<!-- Optionally, uncomment the heading and add one or more lines like
these. Otherwise, delete this entire section from opening to closing
comment.
## Related issues
- Fixes DOCS-12345
- Fixes #12345
-->
Copy file name to clipboardExpand all lines: models/ref/python/automations/onaddartifactalias.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ __init__(
27
27
28
28
-`event_type` (Literal[ADD_ARTIFACT_ALIAS]):
29
29
-`scope` (Union[_ArtifactSequenceScope, _ArtifactPortfolioScope, ProjectScope]): The scope of the event.
30
-
-`filter` (Union[And, Or, Nor, Not, Lt, Gt, Lte, Gte, Eq, Ne, In, NotIn, Exists, Regex, Contains, Dict[str, Any], FilterExpr]): Additional condition(s), if any, that must be met for this event to trigger an automation.
30
+
-`filter` (Union[And, Or, Nor, Not, Lt, Gt, Lte, Gte, Eq, Ne, In, NotIn, Exists, Regex, Contains, Dict[str, Any], FilterExpr]): Additional conditions(s), if any, that are required for this event to trigger.
Copy file name to clipboardExpand all lines: models/ref/python/automations/oncreateartifact.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,8 +26,8 @@ __init__(
26
26
**Args:**
27
27
28
28
-`event_type` (Literal[CREATE_ARTIFACT]):
29
-
-`scope` (Union[_ArtifactSequenceScope, _ArtifactPortfolioScope]): The scope of the event: only artifact collections are valid scopes for this event.
30
-
-`filter` (Union[And, Or, Nor, Not, Lt, Gt, Lte, Gte, Eq, Ne, In, NotIn, Exists, Regex, Contains, Dict[str, Any], FilterExpr]): Additional condition(s), if any, that must be met for this event to trigger an automation.
29
+
-`scope` (Union[_ArtifactSequenceScope, _ArtifactPortfolioScope]): The scope of the event: must be an artifact collection.
30
+
-`filter` (Union[And, Or, Nor, Not, Lt, Gt, Lte, Gte, Eq, Ne, In, NotIn, Exists, Regex, Contains, Dict[str, Any], FilterExpr]): Additional conditions(s), if any, that are required for this event to trigger.
Copy file name to clipboardExpand all lines: models/ref/python/automations/onlinkartifact.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ __init__(
27
27
28
28
-`event_type` (Literal[LINK_ARTIFACT]):
29
29
-`scope` (Union[_ArtifactSequenceScope, _ArtifactPortfolioScope, ProjectScope]): The scope of the event.
30
-
-`filter` (Union[And, Or, Nor, Not, Lt, Gt, Lte, Gte, Eq, Ne, In, NotIn, Exists, Regex, Contains, Dict[str, Any], FilterExpr]): Additional condition(s), if any, that must be met for this event to trigger an automation.
30
+
-`filter` (Union[And, Or, Nor, Not, Lt, Gt, Lte, Gte, Eq, Ne, In, NotIn, Exists, Regex, Contains, Dict[str, Any], FilterExpr]): Additional conditions(s), if any, that are required for this event to trigger.
Copy file name to clipboardExpand all lines: models/ref/python/data-types/image.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,8 +43,8 @@ This class handles various image data formats and automatically normalizes pixel
43
43
-`data_or_path`: Accepts NumPy array/pytorch tensor of image data, a PIL image object, or a path to an image file. If a NumPy array or pytorch tensor is provided, the image data will be saved to the given file type. If the values are not in the range [0, 255] or all values are in the range [0, 1], the image pixel values will be normalized to the range [0, 255] unless `normalize` is set to `False`.
44
44
- pytorch tensor should be in the format (channel, height, width)
45
45
- NumPy array should be in the format (height, width, channel)
46
-
-`mode`: The PIL mode for an image. Most common are "L", "RGB",
47
-
-`"RGBA". Full explanation at https`: //pillow.readthedocs.io/en/stable/handbook/concepts.html#modes
46
+
-`mode`: The PIL mode for an image. Most common are "L", "RGB", "RGBA".
47
+
-`Full Pillow docs for more information https`: //pillow.readthedocs.io/en/stable/handbook/concepts.html#modes
48
48
-`caption`: Label for display of image.
49
49
-`grouping`: The grouping number for the image.
50
50
-`classes`: A list of class information for the image, used for labeling bounding boxes, and image masks.
Copy file name to clipboardExpand all lines: models/ref/python/experiments/artifact.mdx
+27-24Lines changed: 27 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,12 +32,11 @@ __init__(
32
32
**Args:**
33
33
34
34
-`name` (str): A human-readable name for the artifact. Use the name to identify a specific artifact in the W&B App UI or programmatically. You can interactively reference an artifact with the `use_artifact` Public API. A name can contain letters, numbers, underscores, hyphens, and dots. The name must be unique across a project.
35
-
-`type` (str): The artifact's type. Use the type of an artifact to both organize and differentiate artifacts. You can use any string that contains letters, numbers, underscores, hyphens, and dots. Common types include `dataset` or `model`. Include `model` within your type string if you want to link the artifact to the W&B Model Registry. Note that some types reserved for internal use and cannot be set by users. Such types include `job` and types that start with `wandb-`.
36
-
-`description (str | None) = None`: A description of the artifact. For Model or Dataset Artifacts, add documentation for your standardized team model or dataset card. View an artifact's description programmatically with the `Artifact.description`attribute or programmatically with the W&B App UI. W&B renders the description as markdown in the W&B App.
37
-
-`metadata (dict[str, Any] | None) = None`: Additional information about an artifact. Specify metadata as a dictionary of key-value pairs. You can specify no more than 100 total keys.
35
+
-`type` (str): The artifact's type. Use the type of an artifact to both organize and differentiate artifacts. You can use any string that contains letters, numbers, underscores, hyphens, and dots. Common types include `dataset` or `model`. Include `model` within your type string if you want to link the artifact to the W&B Model Registry. Note that some types reserved for internal use and cannot be set by users. Such types include `job` and types that start with `wandb-`.
36
+
-`description (str | None) = None`: A description of the artifact. For Model or Dataset Artifacts, add documentation for your standardized team model or dataset card. View an artifact's description programmatically with the `Artifact.description` attribute or programmatically with the W&B App UI. W&B renders the description as markdown in the W&B App.
37
+
-`metadata (dict[str, Any] | None) = None`: Additional information about an artifact. Specify metadata as a dictionary of key-value pairs. You can specify no more than 100 total keys.
38
38
-`incremental`: Use `Artifact.new_draft()` method instead to modify an existing artifact.
39
39
-`use_as`: Deprecated.
40
-
-`is_link`: Boolean indication of if the artifact is a linked artifact(`True`) or source artifact(`False`).
41
40
42
41
43
42
@@ -68,9 +67,11 @@ Aliases are mutable references that you can programmatically reference. Change a
68
67
69
68
### <kbd>property</kbd> Artifact.collection
70
69
71
-
The collection this artifact was retrieved from.
70
+
The collection this artifact is retrieved from.
72
71
73
-
A collection is an ordered group of artifact versions. If this artifact was retrieved from a portfolio / linked collection, that collection will be returned rather than the collection that an artifact version originated from. The collection that an artifact originates from is known as the source sequence.
72
+
A collection is an ordered group of artifact versions. If this artifact is retrieved from a collection that it is linked to, return that collection. Otherwise, return the collection that the artifact version originates from.
73
+
74
+
The collection that an artifact originates from is known as the source sequence.
74
75
75
76
76
77
@@ -145,7 +146,7 @@ The number of files (including references).
145
146
146
147
### <kbd>property</kbd> Artifact.history_step
147
148
148
-
The nearest step at which history metrics were logged for the source run of the artifact.
149
+
The nearest step which logged history metrics for this artifact's source run.
149
150
150
151
151
152
@@ -193,7 +194,9 @@ True: The artifact is a link artifact to a source artifact. False: The artifact
193
194
194
195
Returns a list of all the linked artifacts of a source artifact.
195
196
196
-
If the artifact is a link artifact (`artifact.is_link == True`), it will return an empty list. Limited to 500 results.
197
+
If this artifact is a link artifact (`artifact.is_link == True`), it will return an empty list.
198
+
199
+
Limited to 500 results.
197
200
198
201
199
202
@@ -275,9 +278,9 @@ Includes any references tracked by this artifact.
275
278
276
279
### <kbd>property</kbd> Artifact.source_artifact
277
280
278
-
Returns the source artifact. The source artifact is the original logged artifact.
281
+
Returns the source artifact, which is the original logged artifact.
279
282
280
-
If the artifact itself is a source artifact (`artifact.is_link == False`), it will return itself.
283
+
If this artifact is a source artifact (`artifact.is_link == False`), it will return itself.
281
284
282
285
283
286
@@ -439,7 +442,7 @@ Deprecated.
439
442
440
443
The artifact's version.
441
444
442
-
A string with the format `v{number}`. If the artifact is a link artifact, the version will be from the linked collection.
445
+
A string with the format `v{number}`. If this is a link artifact, the version will be from the linked collection.
443
446
444
447
445
448
@@ -504,9 +507,9 @@ Add a local directory to the artifact.
504
507
-`name`: The subdirectory name within an artifact. The name you specify appears in the W&B App UI nested by artifact's `type`. Defaults to the root of the artifact.
505
508
-`skip_cache`: If set to `True`, W&B will not copy/move files to the cache while uploading
506
509
-`policy`: By default, "mutable".
507
-
- mutable: Create a temporary copy of the file to prevent corruption during upload.
508
-
- immutable: Disable protection, rely on the user not to delete or change the file.
509
-
-`merge`: If `False` (default), throws ValueError if a file was already added in a previous add_dir call and its content has changed. If `True`, overwrites existing files with changed content. Always adds new files and never removes files. To replace an entire directory, pass a name when adding the directory using `add_dir(local_path, name=my_prefix)` and call `remove(my_prefix)` to remove the directory, then add it again.
510
+
- mutable: Create a temporary copy of the file to prevent corruption during upload.
511
+
- immutable: Disable protection, rely on the user not to delete or change the file.
512
+
-`merge`: If `False` (default), throws ValueError if a file was already added in a previous add_dir call and its content has changed. If `True`, overwrites existing files with changed content. Always adds new files and never removes files. To replace an entire directory, pass a name when adding the directory using `add_dir(local_path, name=my_prefix)` and call `remove(my_prefix)` to remove the directory, then add it again.
510
513
511
514
512
515
@@ -590,7 +593,7 @@ For any other scheme, the digest is just a hash of the URI and the size is left
590
593
591
594
-`uri`: The URI path of the reference to add. The URI path can be an object returned from `Artifact.get_entry` to store a reference to another artifact's entry.
592
595
-`name`: The path within the artifact to place the contents of this reference.
593
-
-`checksum`: Whether or not to checksum the resource(s) located at the reference URI. Checksumming is strongly recommended as it enables automatic integrity validation. Disabling checksumming will speed up artifact creation but reference directories will not iterated through so the objects in the directory will not be saved to the artifact. We recommend setting `checksum=False` when adding reference objects, in which case a new version will only be created if the reference URI changes.
596
+
-`checksum`: Whether or not to checksum the resource(s) located at the reference URI. Checksumming is strongly recommended as it enables automatic integrity validation. Disabling checksumming will speed up artifact creation but reference directories will not iterated through so the objects in the directory will not be saved to the artifact. We recommend setting `checksum=False` when adding reference objects, in which case a new version will only be created if the reference URI changes.
594
597
-`max_objects`: The maximum number of objects to consider when adding a reference that points to directory or bucket store prefix. By default, the maximum number of objects allowed for Amazon S3, GCS, Azure, and local files is 10,000,000. Other URI schemas do not have a maximum.
595
598
596
599
@@ -645,13 +648,13 @@ Delete an artifact and its files.
645
648
646
649
If called on a linked artifact, only the link is deleted, and the source artifact is unaffected.
647
650
648
-
Use `artifact.unlink()` instead of `artifact.delete()` to remove a link between a source artifact and a linked artifact.
651
+
Use `Artifact.unlink()` instead of `Artifact.delete()` to remove a link between a source artifact and a collection.
649
652
650
653
651
654
652
655
**Args:**
653
656
654
-
-`delete_aliases`: If set to `True`, deletes all aliases associated with the artifact. Otherwise, this raises an exception if the artifact has existing aliases. This parameter is ignored if the artifact is linked (a member of a portfolio collection).
657
+
-`delete_aliases`: If set to `True`, delete all aliases associated with the artifact. If `False`, raise an exception if the artifact has existing aliases. This parameter is ignored if the artifact is retrieved from a collection it is linked to.
655
658
656
659
657
660
@@ -685,7 +688,7 @@ Existing files located within `root` are not modified. Explicitly delete `root`
685
688
-`allow_missing_references`: If set to `True`, any invalid reference paths will be ignored while downloading referenced files.
686
689
-`skip_cache`: If set to `True`, the artifact cache will be skipped when downloading and W&B will download each file into the default root or specified download directory.
687
690
-`path_prefix`: If specified, only files with a path that starts with the given prefix will be downloaded. Uses unix format (forward slashes).
688
-
-`multipart`: If set to `None` (default), the artifact will be downloaded in parallel using multipart download if individual file size is greater than 2GB. If set to `True` or `False`, the artifact will be downloaded in parallel or serially regardless of the file size.
691
+
-`multipart`: If set to `None` (default), the artifact will be downloaded in parallel using multipart download if individual file size is greater than 2GB. If set to `True` or `False`, the artifact will be downloaded in parallel or serially regardless of the file size.
689
692
690
693
691
694
@@ -887,17 +890,17 @@ Returns the artifact encoded to the JSON format.
Link this artifact to a portfolio (a promoted collection of artifacts).
896
+
Link this artifact to a collection.
894
897
895
898
896
899
897
900
**Args:**
898
901
899
-
-`target_path`: The path to the portfolio inside a project. The target path must adhere to one of the following schemas `{portfolio}`, `{project}/{portfolio}` or `{entity}/{project}/{portfolio}`. To link the artifact to the Model Registry, rather than to a generic portfolio inside a project, set `target_path` to the following schema `{"model-registry"}/{Registered Model Name}` or `{entity}/{"model-registry"}/{Registered Model Name}`.
900
-
-`aliases`: A list of strings that uniquely identifies the artifact inside the specified portfolio.
902
+
-`target_path`: The path of the collection. Path consists of the prefix "wandb-registry-" along with the registry name and the collection name `wandb-registry-{REGISTRY_NAME}/{COLLECTION_NAME}`.
903
+
-`aliases`: Add one or more aliases to the linked artifact. The "latest" alias is automatically applied to the most recent artifact you link.
901
904
902
905
903
906
@@ -1040,14 +1043,14 @@ If currently in a run, that run will log this artifact. If not currently in a ru
1040
1043
unlink() → None
1041
1044
```
1042
1045
1043
-
Unlink this artifact if it is currently a member of a promoted collection of artifacts.
1046
+
Unlink this artifact if it is a linked member of an artifact collection.
1044
1047
1045
1048
1046
1049
1047
1050
**Raises:**
1048
1051
1049
1052
-`ArtifactNotLoggedError`: If the artifact is not logged.
1050
-
-`ValueError`: If the artifact is not linked, in other words, it is not a member of a portfolio collection.
1053
+
-`ValueError`: If the artifact is not linked to any collection.
0 commit comments