Usage
Description
Upload an artifact to W&B. Upload a file, directory, or URL reference as a versioned artifact. ThePATH can be a local file, a local directory, or a URL
(containing ://) to log as a reference artifact.
If --name is not specified, the artifact name defaults to the
basename of the path. If the project cannot be parsed from the
name, you are prompted to enter one.
Examples
Upload all files in a local directory ./data/training as a dataset artifact in W&B.Arguments
| Name | Default | Type | |
|---|---|---|---|
path | STR | None | True |
Options
| Flag | Type | Description |
|---|---|---|
--name, -n | STR | Artifact name in project/artifact_name format. Defaults to the basename of the path. Default: None |
--description, -d | STR | A description of this artifact. Default: None |
--type, -t | STR | The type of the artifact. Defaults to ‘dataset’. Default: dataset |
--alias, -a | STR | An alias to apply to this artifact. Can be specified multiple times. Defaults to ‘latest’. Default: [‘latest’] |
--id | STR | Upload to an existing run with this ID. Default: None |
--resume | BOOL Flag | Resume the last run from your current directory. Default: None |
--skip_cache | BOOL Flag | Skip caching while uploading artifact files. Default: False |
--policy | Choice | Set the storage policy for artifact files. Either ‘mutable’ (default) or ‘immutable’. Default: mutable |