mirror of
https://github.com/clearml/clearml-docs
synced 2025-06-26 18:17:44 +00:00
Edit clearml-task code snippets (#176)
This commit is contained in:
@@ -14,7 +14,7 @@ on a remote or local machine, from a remote repository and your local machine.
|
||||
### Executing Code from a Remote Repository
|
||||
|
||||
``` bash
|
||||
clearml-task --project keras_examples --name remote_test --repo https://github.com/allegroai/events.git --script /webinar-0620/keras_mnist.py --args batch_size=64 epochs=1 --queue default
|
||||
clearml-task --project keras_examples --name remote_test --repo https://github.com/allegroai/events.git --branch master --script /webinar-0620/keras_mnist.py --args batch_size=64 epochs=1 --queue default
|
||||
```
|
||||
|
||||
This sets the following arguments:
|
||||
@@ -22,6 +22,7 @@ This sets the following arguments:
|
||||
* `--project keras_examples --name remote_test` - The project and experiment names
|
||||
* `--repo https://github.com/allegroai/events.git` - The repository's URL. By default, `clearml-task` uses the latest
|
||||
commit from the master branch
|
||||
* `--branch master` - The repository branch
|
||||
* `--script /webinar-0620/keras_mnist.py` - The script to be executed
|
||||
* `--args batch_size=64 epochs=1` - Arguments passed to the script. This uses the `argparse` object to get CLI parameters
|
||||
* `--queue default` - Selected queue to send the experiment to
|
||||
@@ -54,7 +55,7 @@ For this example, use a local version of [this script](https://github.com/allegr
|
||||
1. Run the following command:
|
||||
|
||||
```bash
|
||||
clearml-task --project keras --name local_test --script webinar-0620/keras_mnist.py --requirements webinar-0620/requirements.txt --args epochs=1 --queue default
|
||||
clearml-task --project keras --name local_test --script webinar-0620/keras_mnist.py --branch master --requirements webinar-0620/requirements.txt --args epochs=1 --queue default
|
||||
```
|
||||
|
||||
This sets the following arguments:
|
||||
|
||||
Reference in New Issue
Block a user