Skip to main content
The run command executes a Neurenix model training script with the ability to override configuration parameters from the command line.

Usage

Arguments

Options

Configuration Override

Command-line options override values in the configuration file:
  1. Configuration file is loaded from --config path
  2. Command-line options (if provided) override config values
  3. Updated configuration is written back to the file
  4. Script runs with the merged configuration
The script can access the configuration path via the NEURENIX_CONFIG environment variable.

Examples

Run with default settings

Run with custom script and config

Override training parameters

Force CPU training

Use GPU with auto-detection

Combine multiple overrides

Configuration File

The configuration file is typically a JSON file with the following structure:

Environment Variables

The run command sets the following environment variable for the training script:
  • NEURENIX_CONFIG: Absolute path to the configuration file
Your training script can access this:

Error Handling

Script not found

Configuration file not found

Script execution error

Best Practices

1. Use configuration files for experiments

Create separate config files for different experiments:

2. Override for quick iterations

Use command-line overrides for quick parameter sweeps:

3. Version control your configs

Keep configuration files in version control to track experiments:

4. Use descriptive script names

See Also