Skip to content

Latest commit

 

History

History
72 lines (56 loc) · 2.7 KB

snd_algorithm.md

File metadata and controls

72 lines (56 loc) · 2.7 KB

snd algorithm

Manage ML algorithm jobs

Synopsis

Manage ML algorithm jobs

Examples

$ snd algorithm run --algorithm store-auto-replenishment-crystal-orchestrator --payload ./crystal-payload.json
$ snd algorithm get --id fa1d02af-c294-4bf6-989f-1234 --algorithm store-auto-replenishment-crystal-orchestrator
$ snd algorithm payload --id fa1d02af-c294-4bf6-989f-1234 --algorithm store-auto-replenishment-crystal-orchestrator
$ snd algorithm cancel --id fa1d02af-c294-4bf6-989f-1234 --algorithm store-auto-replenishment-crystal-orchestrator  --initiator [email protected] --reason test

Options

      --algorithm string            Specify the algorithm name
  -a, --auth-provider string        Specify the OAuth provider name (default "azuread")
      --custom-auth-url string      Specify the auth service uri
      --custom-service-url string   Specify the service url (default "https://crystal.%s.sneaksanddata.com")
  -e, --env string                  Target environment (default "awsd")
  -h, --help                        help for algorithm

Options inherited from parent commands

      --gen-docs   Generate Markdown documentation for all commands

SEE ALSO

The payload should be provided as a JSON file with the structure below.


{
 "algorithm_name": "<string>  (optional) - The name of the algorithm to run",
 "algorithm_parameters": "<object> (required) - Any additional parameters for the algorithm",
 "custom_configuration": {
	"image_repository": <string>,
	"image_tag": <string>,
	"deadline_seconds": <int>,
	"maximum_retries": <int>,
	"env": {"name": <string>, "value": <string>, "value_from": "PLAIN" | "RELATIVE_REFERENCE"}
	"secrets":  <string[]>,
	"args": {"name": <string>, "value": <string>, "value_from": "PLAIN" | "RELATIVE_REFERENCE"},
	"cpu_limit": <string>,
	"memory_limit": <string>,
	"workgroup": <string>,
	"additional_workgroups": <map[string]string>,
	"version": <string>,
	"monitoring_parameters": <string[]>,
	"custom_resources": <map[string]string>,
	"speculative_attempts": int
} - <CustomConfiguration> (optional) - Custom configuration for the algorithm",
 "tag": "<string> (optional) - Client-side submission identifier"
}
Auto generated by spf13/cobra on 4-Nov-2024