# "template" and "resource" are required. --- # Command templates. # {param} is replaced by value: {param} -> value # [param] is replaced by value and flag: {param} -> --param value # if the value has boolean value, use [param]. # param=True -> "--param" # param=False -> "" # only "snake-param" or "snake_param" are valid. # {param}: matched by r"{[\w\-\_]+?}" # [param]: matched by r"\[[\w\-\_]+?\]" # param not specified with {param}, [param] or alias, but appearing in param choice will only # affect {_name} and {_output}. This is used to avoid overriding existing results. # reserved params: # {_name}: name of param choices # {_output}: /output_dir/{_name} # {_time}: current date&time # Command templates with params to be filled template: # example for available dtypes dtype: > echo command [str] [int] [float] [bool] # example for different replacement rules replace: > echo command [flag-value] {value} [flag] "{blahblah: {value-in-quote}}" # example for reserved fields reserved: > echo command {_time} {_name} {_output} # example for alias params alias: > echo command {param_alias_1} {param_alias_2} # Fill in values to a group of params specified in the command. # Useful when a setting involves various params to tweak. # Alias params should not be specified in command. alias: param_alias: case_lala1: { param_alias_1: 1, param_alias_2: "1" } case_haha2: { param_alias_1: 2, param_alias_2: "2" } default: str: "string value " # string value. use quote if it has spaces int: 1 float: 1.1 bool: False # boolean can only be True or False flag-value: 1 value: 2 flag: False value-in-quote: 10 param_alias_1: 0 param_alias_2: 0 # GPU indices to be filled in CUDA_VISIBLE_DEVICES={}, each corresponds to a worker. # For multi-gpu tasks, simply set [ "1,2", "3,4" ]. the same resource can be assigned multiple times, # when your task requires a very low gpu utilization, e.g. [ "1", "2", "3", "1", "2", "3" ]. resource: [ "0", "1" ] # List all possible parameter choices here, `run` will sweep all possible combinations. --- # test substitution for different values _title: dtype # -t