Cancel Job#

Prerequisites#

Before you can cancel a customization job, make sure that you have:

  • Obtained the base URL of your NeMo Customizer service.


Cancel a Customization Job#

Running jobs may be cancelled. A cancelled job does not upload checkpoints.

API#

  1. Perform a POST request to the /v1/customization/jobs/{job_id}/cancel endpoint.

    curl -X POST \
      "https://${CUSTOMIZER_HOSTNAME}/v1/customization/jobs/{job_id}/cancel" \
      -H 'Accept: application/json'
    
  2. Review the returned customization job.

    Example Response
    {
      "id": "cust-2i89UCiDd3Q7D2JHRcmwXx",
      "created_at": "2025-03-20T22:07:06.355526",
      "updated_at": "2025-03-20T22:07:35.148163",
      "project": "test-project",
      "ownership": {
        "created_by": "me",
        "access_policies": {
          "arbitrary": "json"
        }
      },
      "dataset": "default/test-small-dataset",
      "output_model": "default/test_cancel_llama_3_2@v1",
      "config": {
        "base_model": "meta/llama-3.1-8b-instruct",
        "precision": "bf16-mixed",
        "num_gpus": 1,
        "num_nodes": 1,
        "micro_batch_size": 1,
        "tensor_parallel_size": 1,
        "max_seq_length": 4096,
        "prompt_template": "{prompt} {completion}"
      },
      "hyperparameters": {
        "finetuning_type": "lora",
        "training_type": "sft",
        "batch_size": 16,
        "epochs": 1,
        "learning_rate": 0.0001,
        "lora": {
          "adapter_dim": 32,
          "alpha": 16,
          "adapter_dropout": null
        },
        "sequence_packing_enabled": false
      },
      "status": "cancelled"
    }