@Maimonator Thank you for your reply! The issue you shared was very helpful.
Did you run your experiment without the deepspeed config?
Then I experimented, and the following config worked(In this case, I used huggingface optimizer).
{
  "fp16": {
    "enabled": true,
    "min_loss_scale": 1,
    "opt_level": "O3"
  }
}

However, the next config gave me the following error. (In this case, I used deepspeed optimizer)
Did you use the huggingface optimaizer or the deepspeed optimizer?
{
  "fp16": {
    "enabled": true,
    "min_loss_scale": 1,
    "opt_level": "O3"
  },
  "zero_optimization": {
    "stage": 3,
    "cpu_offload": true,
    "cpu_offload_params": true,
    "contiguous_gradients": true,
    "overlap_comm": true
  },
  "optimizer": {
    "type": "AdamW",
    "params": {
      "lr": 0.001,
      "betas": [
        0.9,
        0.999
      ],
      "eps": 1e-6
    }
  },
  "scheduler": {
    "type": "WarmupLR",
    "params": {
      "warmup_min_lr": 0,
      "warmup_max_lr": 0.001,
      "warmup_num_steps": 50
    }
  }
} 

IndexError: Dimension out of range (expected to be in range of [-1, 0], but got 2)