Skip to content

Commit

Permalink
Improved script readmes
Browse files Browse the repository at this point in the history
  • Loading branch information
arjunsuresh committed May 25, 2024
1 parent f62c4ce commit 04f4814
Show file tree
Hide file tree
Showing 548 changed files with 46,370 additions and 20,957 deletions.
126 changes: 63 additions & 63 deletions automation/script/README.md

Large diffs are not rendered by default.

83 changes: 83 additions & 0 deletions docs/scripts/AI-ML-datasets/get-croissant/index.md
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 docs/scripts/AI-ML-datasets/get-dataset-cifar10/index.md
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`
130 changes: 130 additions & 0 deletions docs/scripts/AI-ML-datasets/get-dataset-cnndm/index.md
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`
Loading

0 comments on commit 04f4814

Please sign in to comment.