forked from GATEOverflow/cm4mlops
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f62c4ce
commit 04f4814
Showing
548 changed files
with
46,370 additions
and
20,957 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
# get-croissant | ||
Automatically generated README for this automation recipe: **get-croissant** | ||
|
||
Category: **[AI/ML datasets](..)** | ||
|
||
License: **Apache 2.0** | ||
|
||
|
||
* CM meta description for this script: *[_cm.yaml](https://github.com/mlcommons/cm4mlops/tree/main/script/get-croissant/_cm.yaml)* | ||
* Output cached? *True* | ||
|
||
--- | ||
### Reuse this script in your project | ||
|
||
#### Install MLCommons CM automation meta-framework | ||
|
||
* [Install CM](https://docs.mlcommons.org/ck/install) | ||
* [CM Getting Started Guide](https://docs.mlcommons.org/ck/getting-started/) | ||
|
||
#### Pull CM repository with this automation recipe (CM script) | ||
|
||
```cm pull repo mlcommons@cm4mlops``` | ||
|
||
#### Print CM help from the command line | ||
|
||
````cmr "get mlcommons croissant" --help```` | ||
|
||
#### Run this script | ||
|
||
=== "CLI" | ||
##### Run this script via CLI | ||
`cm run script --tags=get,mlcommons,croissant` | ||
|
||
`cm run script --tags=get,mlcommons,croissant ` | ||
|
||
=== "CLI Alt" | ||
##### Run this script via CLI (alternative) | ||
|
||
`cmr "get mlcommons croissant"` | ||
|
||
`cmr "get mlcommons croissant " ` | ||
|
||
|
||
=== "Python" | ||
##### Run this script from Python | ||
|
||
|
||
```python | ||
|
||
import cmind | ||
|
||
r = cmind.access({'action':'run' | ||
'automation':'script', | ||
'tags':'get,mlcommons,croissant' | ||
'out':'con', | ||
... | ||
(other input keys for this script) | ||
... | ||
}) | ||
|
||
if r['return']>0: | ||
print (r['error']) | ||
|
||
``` | ||
|
||
|
||
=== "Docker" | ||
##### Run this script via Docker (beta) | ||
|
||
`cm docker script "get mlcommons croissant" ` | ||
|
||
___ | ||
|
||
|
||
##### Native script being run | ||
=== "Linux/macOS" | ||
* [run.sh](https://github.com/mlcommons/cm4mlops/tree/main/script/get-croissant/run.sh) | ||
=== "Windows" | ||
|
||
* [run.bat](https://github.com/mlcommons/cm4mlops/tree/main/script/get-croissant/run.bat) | ||
___ | ||
#### Script output | ||
`cmr "get mlcommons croissant " -j` |
126 changes: 126 additions & 0 deletions
126
docs/scripts/AI-ML-datasets/get-dataset-cifar10/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
# get-dataset-cifar10 | ||
Automatically generated README for this automation recipe: **get-dataset-cifar10** | ||
|
||
Category: **[AI/ML datasets](..)** | ||
|
||
License: **Apache 2.0** | ||
|
||
|
||
* CM meta description for this script: *[_cm.json](https://github.com/mlcommons/cm4mlops/tree/main/script/get-dataset-cifar10/_cm.json)* | ||
* Output cached? *True* | ||
|
||
--- | ||
### Reuse this script in your project | ||
|
||
#### Install MLCommons CM automation meta-framework | ||
|
||
* [Install CM](https://docs.mlcommons.org/ck/install) | ||
* [CM Getting Started Guide](https://docs.mlcommons.org/ck/getting-started/) | ||
|
||
#### Pull CM repository with this automation recipe (CM script) | ||
|
||
```cm pull repo mlcommons@cm4mlops``` | ||
|
||
#### Print CM help from the command line | ||
|
||
````cmr "get dataset cifar10 image-classification validation training" --help```` | ||
|
||
#### Run this script | ||
|
||
=== "CLI" | ||
##### Run this script via CLI | ||
`cm run script --tags=get,dataset,cifar10,image-classification,validation,training` | ||
|
||
`cm run script --tags=get,dataset,cifar10,image-classification,validation,training[,variations] ` | ||
|
||
=== "CLI Alt" | ||
##### Run this script via CLI (alternative) | ||
|
||
`cmr "get dataset cifar10 image-classification validation training"` | ||
|
||
`cmr "get dataset cifar10 image-classification validation training [variations]" ` | ||
|
||
|
||
* *See the list of `variations` [here](#variations) and check the [Gettings Started Guide](https://github.com/mlcommons/ck/blob/dev/docs/getting-started.md) for more details.* | ||
|
||
=== "Python" | ||
##### Run this script from Python | ||
|
||
|
||
```python | ||
|
||
import cmind | ||
|
||
r = cmind.access({'action':'run' | ||
'automation':'script', | ||
'tags':'get,dataset,cifar10,image-classification,validation,training' | ||
'out':'con', | ||
... | ||
(other input keys for this script) | ||
... | ||
}) | ||
|
||
if r['return']>0: | ||
print (r['error']) | ||
|
||
``` | ||
|
||
|
||
=== "Docker" | ||
##### Run this script via Docker (beta) | ||
|
||
`cm docker script "get dataset cifar10 image-classification validation training[variations]" ` | ||
|
||
___ | ||
|
||
|
||
#### Variations | ||
|
||
* *No group (any variation can be selected)* | ||
<details> | ||
<summary>Click here to expand this section.</summary> | ||
|
||
* `_tiny` | ||
- Environment variables: | ||
- *CM_DATASET_CONVERT_TO_TINYMLPERF*: `yes` | ||
- Workflow: | ||
1. ***Read "deps" on other CM scripts*** | ||
* get,python3 | ||
* CM names: `--adr.['python', 'python3']...` | ||
- CM script: [get-python3](https://github.com/mlcommons/cm4mlops/tree/master/script/get-python3) | ||
* get,tinymlperf,src | ||
- CM script: [get-mlperf-tiny-src](https://github.com/mlcommons/cm4mlops/tree/master/script/get-mlperf-tiny-src) | ||
* get,src,eembc,energy-runner | ||
- CM script: [get-mlperf-tiny-eembc-energy-runner-src](https://github.com/mlcommons/cm4mlops/tree/master/script/get-mlperf-tiny-eembc-energy-runner-src) | ||
|
||
</details> | ||
|
||
|
||
* Group "**data_format**" | ||
<details> | ||
<summary>Click here to expand this section.</summary> | ||
|
||
* **`_python`** (default) | ||
- Environment variables: | ||
- *CM_DATASET*: `CIFAR10` | ||
- *CM_DATASET_FILENAME*: `cifar-10-python.tar.gz` | ||
- *CM_DATASET_FILENAME1*: `cifar-10-python.tar` | ||
- *CM_DATASET_CIFAR10*: `https://www.cs.toronto.edu/~kriz/cifar-10-python.tar.gz` | ||
- Workflow: | ||
|
||
</details> | ||
|
||
|
||
#### Default variations | ||
|
||
`_python` | ||
|
||
##### Native script being run | ||
=== "Linux/macOS" | ||
* [run.sh](https://github.com/mlcommons/cm4mlops/tree/main/script/get-dataset-cifar10/run.sh) | ||
=== "Windows" | ||
|
||
* [run.bat](https://github.com/mlcommons/cm4mlops/tree/main/script/get-dataset-cifar10/run.bat) | ||
___ | ||
#### Script output | ||
`cmr "get dataset cifar10 image-classification validation training [,variations]" -j` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,130 @@ | ||
# get-dataset-cnndm | ||
Automatically generated README for this automation recipe: **get-dataset-cnndm** | ||
|
||
Category: **[AI/ML datasets](..)** | ||
|
||
License: **Apache 2.0** | ||
|
||
|
||
* CM meta description for this script: *[_cm.json](https://github.com/mlcommons/cm4mlops/tree/main/script/get-dataset-cnndm/_cm.json)* | ||
* Output cached? *True* | ||
|
||
--- | ||
### Reuse this script in your project | ||
|
||
#### Install MLCommons CM automation meta-framework | ||
|
||
* [Install CM](https://docs.mlcommons.org/ck/install) | ||
* [CM Getting Started Guide](https://docs.mlcommons.org/ck/getting-started/) | ||
|
||
#### Pull CM repository with this automation recipe (CM script) | ||
|
||
```cm pull repo mlcommons@cm4mlops``` | ||
|
||
#### Print CM help from the command line | ||
|
||
````cmr "get dataset gpt-j cnndm cnn-dailymail original" --help```` | ||
|
||
#### Run this script | ||
|
||
=== "CLI" | ||
##### Run this script via CLI | ||
`cm run script --tags=get,dataset,gpt-j,cnndm,cnn-dailymail,original` | ||
|
||
`cm run script --tags=get,dataset,gpt-j,cnndm,cnn-dailymail,original[,variations] ` | ||
|
||
=== "CLI Alt" | ||
##### Run this script via CLI (alternative) | ||
|
||
`cmr "get dataset gpt-j cnndm cnn-dailymail original"` | ||
|
||
`cmr "get dataset gpt-j cnndm cnn-dailymail original [variations]" ` | ||
|
||
|
||
* *See the list of `variations` [here](#variations) and check the [Gettings Started Guide](https://github.com/mlcommons/ck/blob/dev/docs/getting-started.md) for more details.* | ||
|
||
=== "Python" | ||
##### Run this script from Python | ||
|
||
|
||
```python | ||
|
||
import cmind | ||
|
||
r = cmind.access({'action':'run' | ||
'automation':'script', | ||
'tags':'get,dataset,gpt-j,cnndm,cnn-dailymail,original' | ||
'out':'con', | ||
... | ||
(other input keys for this script) | ||
... | ||
}) | ||
|
||
if r['return']>0: | ||
print (r['error']) | ||
|
||
``` | ||
|
||
|
||
=== "Docker" | ||
##### Run this script via Docker (beta) | ||
|
||
`cm docker script "get dataset gpt-j cnndm cnn-dailymail original[variations]" ` | ||
|
||
___ | ||
|
||
|
||
#### Variations | ||
|
||
* *No group (any variation can be selected)* | ||
<details> | ||
<summary>Click here to expand this section.</summary> | ||
|
||
* `_intel` | ||
- Workflow: | ||
* `_intel,validation` | ||
- Environment variables: | ||
- *CM_CNNDM_INTEL_VARIATION*: `yes` | ||
- Workflow: | ||
|
||
</details> | ||
|
||
|
||
* Group "**dataset-type**" | ||
<details> | ||
<summary>Click here to expand this section.</summary> | ||
|
||
* `_calibration` | ||
- Environment variables: | ||
- *CM_DATASET_CALIBRATION*: `yes` | ||
- Workflow: | ||
* **`_validation`** (default) | ||
- Environment variables: | ||
- *CM_DATASET_CALIBRATION*: `no` | ||
- Workflow: | ||
|
||
</details> | ||
|
||
|
||
#### Default variations | ||
|
||
`_validation` | ||
#### Default environment | ||
|
||
|
||
These keys can be updated via `--env.KEY=VALUE` or `env` dictionary in `@input.json` or using script flags. | ||
|
||
* CM_DATASET_CALIBRATION: `no` | ||
|
||
|
||
|
||
##### Native script being run | ||
=== "Linux/macOS" | ||
* [run-intel.sh](https://github.com/mlcommons/cm4mlops/tree/main/script/get-dataset-cnndm/run-intel.sh) | ||
* [run.sh](https://github.com/mlcommons/cm4mlops/tree/main/script/get-dataset-cnndm/run.sh) | ||
=== "Windows" | ||
|
||
No run file exists for Windows | ||
___ | ||
#### Script output | ||
`cmr "get dataset gpt-j cnndm cnn-dailymail original [,variations]" -j` |
Oops, something went wrong.