> ## Documentation Index
> Fetch the complete documentation index at: https://training-docs.cerebras.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Convert Legacy to Trainer YAML

> Learn how to convert legacy YAMLs into the new Trainer YAML configuration.

## Converter Tool

The YAML specification changed after version 2.2 to make use of the Trainer class. You can use the converter tool to convert any legacy YAML to work with later versions:

<CodeGroup>
  ```bash ModelZoo CLI theme={null}
  cszoo config convert_legacy /path/to/v1.yaml -o /path/to/v2.yaml
  ```

  ```python Python theme={null}
  import yaml

  from cerebras.modelzoo.trainer.utils import (
      convert_legacy_params_to_trainer_params
  )


  with open("/path/to/legacy/params.yaml") as f:
      legacy_params = yaml.load(f)

  trainer_params = convert_legacy_params_to_trainer_params(
      legacy_params
  )

  with open("/path/to/trainer/params.yaml", "w") as f:
      yaml.dump(trainer_params, f)

  ```
</CodeGroup>

## Parameter Index

If you have a Legacy YAML specification and want to find out how to specify a specific parameter in the Trainer YAML specification, please use the tabs below to find the Legacy and Trainer specifications for each parameter.&#x20;

## `eval_input`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  eval_input:
    ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    fit:
      val_dataloader:
        ...
        
  trainer:
    validate:
      val_dataloader:
        ...
        
  trainer:
    validate_all:
      val_dataloaders:
        ...
  ```
</CodeGroup>

## `eval_input.micro_batch_size`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  eval_input:
    micro_batch_size: ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      callbacks:
      - ScopedValidateFlags:
          csx.performance.micro_batch_size: ...
  ```
</CodeGroup>

## `model`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  model:
    ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      model:
        ...
  ```
</CodeGroup>

## `model.compression`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  model:
    compression:
      ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      callbacks:
      - WeightCompression:
          compressions:
            ...
  ```
</CodeGroup>

## `model.fp16_type`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  model:
    fp16_type: ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      precision:
        fp16_type: ...
  ```
</CodeGroup>

## `model.lora_params`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  model:
    lora_params: ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      callbacks:
      -Lora:
        lora_params:
          ...
  ```
</CodeGroup>

## `model.mixed_precision`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  model:
    mixed_precision: ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      precision:
        enabled: ...
  ```
</CodeGroup>

## `model.selective_grad`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  model:
    selective_grad ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      callbacks:
      - SelectiveGrad:
          selective_grads:
            ...
  ```
</CodeGroup>

## `optimizer`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  optimizer:
    ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      optimizer:
        ...
  ```
</CodeGroup>

## `optimizer.grad_accum_steps`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  optimizer:
    grad_accum_steps: ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      loop:
        grad_accum_steps: ...
  ```
</CodeGroup>

## `optimizer.initial_loss_scale`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  optimizer:
    initial_loss_scale: ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      precision:
        initial_loss_scale: ...
  ```
</CodeGroup>

## `optimizer.learning_rate`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  optimizer:
    learning_rate:
      ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      schedulers:
        ...
  ```
</CodeGroup>

## `optimizer.log_summaries`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  optimizer:
    log_summaries: ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      callbacks:
      - ComputeNorm: ...
      
  trainer:
    init:
      precision:
        log_loss_scale: ...
  ```
</CodeGroup>

## `optimizer.loss_scaling_factor`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  optimizer:
    loss_scaling_factor: ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      precision:
        loss_scaling_factor: ...
  ```
</CodeGroup>

## `optimizer.max_gradient_norm`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  optimizer:
    max_gradient_norm: ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      precision:
        max_gradient_norm: ...
  ```
</CodeGroup>

## `optimizer.max_gradient_value`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  optimizer:
    max_gradient_value: ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      precision:
        max_gradient_value: ...
  ```
</CodeGroup>

## `optimizer.max_loss_scale`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  optimizer:
    max_loss_scale: ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      precision:
        max_loss_scale: ...
  ```
</CodeGroup>

## `optimizer.min_loss_scale`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  optimizer:
    min_loss_scale: ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      precision:
        min_loss_scale: ...
  ```
</CodeGroup>

## `optimizer.steps_per_increase`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  optimizer:
    steps_per_increase: ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      precision:
        steps_per_increase: ...
  ```
</CodeGroup>

## `runconfig.act_memory_gi`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  runconfig:
    act_memory_gi: ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      callbacks:
      - GlobalFlags:
          csx.debug.act_memory_gi: ...
  ```
</CodeGroup>

## `runconfig.autoload_last_checkpoint`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  runconfig:
    autoload_last_checkpoint: ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      checkpoint:
        autoload_last_checkpoint: ...
  ```
</CodeGroup>

## `runconfig.check_loss_values`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  runconfig:
    check_loss_values: ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      callbacks:
      - CheckLoss: ...
  ```
</CodeGroup>

## `runconfig.checkpoint_path`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  runconfig:
    checkpoint_path: ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    fit:
      ckpt_path: ...

  trainer:
    validate:
      ckpt_path: ...

  trainer:
    validate_all:
      ckpt_paths: ...
  ```
</CodeGroup>

## `runconfig.checkpoint_steps`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  runconfig:
    checkpoint_steps: ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      checkpoint:
        steps: ...
  ```
</CodeGroup>

## `runconfig.cmd_memory_gi`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  runconfig:
    cmd_memory_gi: ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      callbacks:
      - GlobalFlags:
          csx.debug.cmd_memory_gi: ...
  ```
</CodeGroup>

## `runconfig.compile_crd_memory_gi`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  runconfig:
    compile_crd_memory_gi: ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      callbacks:
      - GlobalFlags:
          csx.debug.compile_crd_memory_gi: ...
  ```
</CodeGroup>

## `runconfig.compile_dir`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  runconfig:
    compile_dir: ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      backend:
        compile_dir: ...
  ```
</CodeGroup>

## `runconfig.compile_only`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  runconfig:
    compile_only: ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      backend:
        compile_only: ...
  ```
</CodeGroup>

## `runconfig.credentials_path`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  runconfig:
    credentials_path: ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      backend:
        cluster_config:
          credentials_path: ...
  ```
</CodeGroup>

## `runconfig.debug_args`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  runconfig:
    debug_args:
      ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      callbacks:
      - GlobalFlags:
          csx.debug.debug_args:
            ...
  ```
</CodeGroup>

## `runconfig.debug_args_path`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  runconfig:
    debug_args_path: ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      callbacks:
      - DebugArgsPath:
          debug_args_path: ...
  ```
</CodeGroup>

## `runconfig.disable_strict_checkpoint_loading`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  runconfig:
    disable_strict_checkpoint_loading: ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      checkpoint:
        disable_strict_checkpoint_loading: ...
  ```
</CodeGroup>

## `runconfig.disable_version_check`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  runconfig:
    disable_version_check: ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      backend:
        cluster_config:
          disable_version_check: ...
  ```
</CodeGroup>

## `runconfig.dist_backend`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  runconfig:
    dist_backend: ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      backend:
        dist_backend: ...
  ```
</CodeGroup>

## `runconfig.drop_data`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  runconfig:
    drop_data: ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      callbacks:
      - GlobalFlags:
          csx.debug.drop_data: ...
  ```
</CodeGroup>

## `runconfig.dump_activations`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  runconfig:
    dump_activations: ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      callbacks:
      - DumpActivations: ...
  ```
</CodeGroup>

## `runconfig.enable_act_frequency`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  runconfig:
    enable_act_frequency: ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      logging:
        enable_act_frequency: ...
  ```
</CodeGroup>

## `runconfig.enable_distributed`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  runconfig:
    enable_distributed: ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      backend:
        enable_distributed: ...
  ```
</CodeGroup>

## `runconfig.eval_frequency`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  runconfig:
    eval_frequency: ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      loop:
        eval_frequency: ...
  ```
</CodeGroup>

## `runconfig.eval_steps`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  runconfig:
    eval_steps: ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      loop:
        eval_steps: ...
  ```
</CodeGroup>

## `runconfig.execute_crd_memory_gi`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  runconfig:
    execute_crd_memory_gi: ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      callbacks:
      - GlobalFlags:
          csx.debug.execute_crd_memory_gi: ...
  ```
</CodeGroup>

## `runconfig.experimental.listeners`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  runconfig:
    experimental:
      listeners:
        ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      callbacks:
      - Listener:
          listeners:
            ...
  ```
</CodeGroup>

## `runconfig.init_method`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  runconfig:
    init_method: ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      backend:
        init_method: ...
  ```
</CodeGroup>

## `runconfig.job_labels`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  runconfig:
    job_labels:
      ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      backend:
        cluster_config:
          job_labels:
            ...
  ```
</CodeGroup>

## `runconfig.job_priority`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  runconfig:
    job_priority: ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      backend:
        cluster_config:
          job_priority: ...
  ```
</CodeGroup>

## `runconfig.job_time_sec`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  runconfig:
    job_time_sec: ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      backend:
        cluster_config:
          job_time_sec: ...
  ```
</CodeGroup>

## `runconfig.lazy_initialization`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  runconfig:
    lazy_initialization: ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      callbacks:
      - GlobalFlags:
          csx.debug.lazy_initialization: ...
  ```
</CodeGroup>

## `runconfig.load_checkpoint_states`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  runconfig:
    load_checkpoint_states: ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      callbacks:
      - LoadCheckpointStates:
          load_checkpoint_states: ...
  ```
</CodeGroup>

## `runconfig.log_initialization`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  runconfig:
    log_initialization: ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      callbacks:
      - GlobalFlags:
          csx.debug.log_initialization: ...
  ```
</CodeGroup>

## `runconfig.log_input_summaries`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  runconfig:
    log_input_summaries: ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      callbacks:
      - LogInputSummaries: ...
  ```
</CodeGroup>

## `runconfig.log_steps`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  runconfig:
    log_steps: ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      logging:
        log_steps: ...
  ```
</CodeGroup>

## `runconfig.logging`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  runconfig:
    logging: ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      logging:
        log_level: ...
  ```
</CodeGroup>

## `runconfig.main_process_id`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  runconfig:
    main_process_id: ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      backend:
        main_process_id: ...
  ```
</CodeGroup>

## `runconfig.max_checkpoints`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  runconfig:
    max_checkpoints: ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      callbacks:
      - KeepNCheckpoints:
          n: ...
  ```
</CodeGroup>

## `runconfig.max_steps`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  runconfig:
    max_steps: ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      loop:
        max_steps: ...
  ```
</CodeGroup>

## `runconfig.mgmt_address`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  runconfig:
    mgmt_address: ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      backend:
        cluster_config:
          mgmt_address: ...
  ```
</CodeGroup>

## `runconfig.mgmt_namespace`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  runconfig:
    mgmt_namespace: ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      backend:
        cluster_config:
          mgmt_namespace: ...
  ```
</CodeGroup>

## `runconfig.model_dir`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  runconfig:
    model_dir: ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      model_dir: ...
  ```
</CodeGroup>

## `runconfig.mount_dirs`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  runconfig:
    mount_dirs:
      ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      backend:
        cluster_config:
          mount_dirs:
            ...
  ```
</CodeGroup>

## `runconfig.num_act_servers`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  runconfig:
    num_act_servers: ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      backend:
        cluster_config:
          max_act_per_csx: ...
  ```
</CodeGroup>

## `runconfig.num_csx`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  runconfig:
    num_csx: ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      backend:
        cluster_config:
          num_csx: ...
  ```
</CodeGroup>

## `runconfig.num_epochs`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  runconfig:
    num_epochs: ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      loop:
        num_epochs: ...
  ```
</CodeGroup>

## `runconfig.num_steps`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  runconfig:
    num_steps: ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      loop:
        num_steps: ...
  ```
</CodeGroup>

## `runconfig.num_wgt_servers`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  runconfig:
    num_wgt_servers: ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      backend:
        cluster_config:
          max_wgt_servers: ...
  ```
</CodeGroup>

## `runconfig.num_workers_per_csx`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  runconfig:
    num_workers_per_csx: ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      backend:
        cluster_config:
          num_workers_per_csx: ...
  ```
</CodeGroup>

## `runconfig.op_profiler_config`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  runconfig:
    op_profiler_config:
      ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      callbacks:
      - OpProfiler:
          ...
  ```
</CodeGroup>

## `runconfig.precision_opt_level`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  runconfig:
    precision_opt_level: ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      precision:
        precision_opt_level: ...
  ```
</CodeGroup>

## `runconfig.python_paths`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  runconfig:
    python_paths:
      ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      backend:
        cluster_config:
          python_paths:
            ...
  ```
</CodeGroup>

## `runconfig.retrace_every_iteration`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  runconfig:
    retrace_every_iteration: ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      callbacks:
      - GlobalFlags:
          csx.debug.retrace_every_iteration: ...
  ```
</CodeGroup>

## `runconfig.save_initial_checkpoint`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  runconfig:
    save_initial_checkpoint: ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      checkpoint:
        save_initial_checkpoint: ...
  ```
</CodeGroup>

## `runconfig.seed`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  runconfig:
    seed: ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      seed: ...
  ```
</CodeGroup>

## `runconfig.steps_per_epoch`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  runconfig:
    steps_per_epoch: ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      loop:
        steps_per_epoch: ...
  ```
</CodeGroup>

## `runconfig.sync_batchnorm`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  runconfig:
    sync_batchnorm: ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      backend:
        sync_batchnorm: ...
  ```
</CodeGroup>

## `runconfig.target_device`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  runconfig:
    target_device: ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      backend:
        backend_type: ...
  ```
</CodeGroup>

## `runconfig.transfer_processes`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  runconfig:
    transfer_processes: ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      callbacks:
      - GlobalFlags:
          csx.performance.transfer_processes: ...
  ```
</CodeGroup>

## `runconfig.validate_only`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  runconfig:
    validate_only: ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      backend:
        validate_only: ...
  ```
</CodeGroup>

## `runconfig.wgt_memory_gi`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  runconfig:
    wgt_memory_gi: ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      callbacks:
      - GlobalFlags:
          csx.debug.wgt_memory_gi: ...
  ```
</CodeGroup>

## `runconfig.wrk_memory_gi`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  runconfig:
    wrk_memory_gi: ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      callbacks:
      - GlobalFlags:
          csx.debug.wrk_memory_gi: ...
  ```
</CodeGroup>

## `runconfig.wsc_log_level`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  runconfig:
    wsc_log_level:
      ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      logging:
        wsc_log_level:
          ...
  ```
</CodeGroup>

## `sparsity`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  sparsity:
    ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      sparsity:
        ...
  ```
</CodeGroup>

## `sparsity.add_summaries`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  sparsity:
    add_summaries: ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      callbacks:
      - LogSparsity: ...
  ```
</CodeGroup>

## `train_input`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  train_input:
    ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    fit:
      train_dataloader:
        ...
  ```
</CodeGroup>

## `train_input.micro_batch_size`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  train_input:
    micro_batch_size: ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      callbacks:
      - ScopedTrainFlags:
          csx.performance.micro_batch_size: ...
  ```
</CodeGroup>

## `wandb.group`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  wandb:
    group: ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      loggers:
      - WandbLogger:
          group: ...
  ```
</CodeGroup>

## `wandb.job_type`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  wandb:
    job_type: ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      loggers:
      - WandbLogger:
          job_type: ...
  ```
</CodeGroup>

## `wandb.project`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  wandb:
    project: ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      loggers:
      - WandbLogger:
          project: ...
  ```
</CodeGroup>

## `wandb.resume`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  wandb:
    resume: ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      loggers:
      - WandbLogger:
          resume: ...
  ```
</CodeGroup>

## `wandb.run_id`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  wandb:
    run_id: ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      loggers:
      - WandbLogger:
          run_id: ...
  ```
</CodeGroup>

## `wandb.run_name`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  wandb:
    run_name: ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      loggers:
      - WandbLogger:
          run_name: ...
  ```
</CodeGroup>

## `wandb.tags`

<CodeGroup>
  ```yaml Legacy Spec theme={null}
  wandb:
    tags: ...
  ```

  ```yaml Trainer Spec theme={null}
  trainer:
    init:
      loggers:
      - WandbLogger:
          tags: ...
  ```
</CodeGroup>
