Skip to main content
GET
/
v1
/
accounts
/
{account_id}
/
dpoJobs
/
{dpo_job_id}
cURL
curl --request GET \
  --url https://api.fireworks.ai/v1/accounts/{account_id}/dpoJobs/{dpo_job_id} \
  --header 'Authorization: Bearer <token>'
{
  "dataset": "<string>",
  "name": "<string>",
  "displayName": "<string>",
  "createTime": "2023-11-07T05:31:56Z",
  "completedTime": "2023-11-07T05:31:56Z",
  "state": "JOB_STATE_UNSPECIFIED",
  "status": {
    "code": "OK",
    "message": "<string>"
  },
  "createdBy": "<string>",
  "trainingConfig": {
    "outputModel": "<string>",
    "baseModel": "<string>",
    "warmStartFrom": "<string>",
    "jinjaTemplate": "<string>",
    "learningRate": 123,
    "maxContextLength": 123,
    "loraRank": 123,
    "region": "REGION_UNSPECIFIED",
    "epochs": 123,
    "batchSize": 123,
    "gradientAccumulationSteps": 123,
    "learningRateWarmupSteps": 123,
    "batchSizeSamples": 123,
    "optimizerWeightDecay": 123
  },
  "wandbConfig": {
    "enabled": true,
    "apiKey": "<string>",
    "project": "<string>",
    "entity": "<string>",
    "runId": "<string>",
    "url": "<string>"
  },
  "trainerLogsSignedUrl": "<string>",
  "lossConfig": {
    "method": "METHOD_UNSPECIFIED",
    "klBeta": 123
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication using your Fireworks API key. Format: Bearer <API_KEY>

Path Parameters

account_id
string
required

The Account Id

dpo_job_id
string
required

The Dpo Job Id

Query Parameters

readMask
string

The fields to be returned in the response. If empty or "*", all fields will be returned.

Response

200 - application/json

A successful response.

dataset
string
required

The name of the dataset used for training.

name
string
displayName
string
createTime
string<date-time>
completedTime
string<date-time>
state
enum<string>
default:JOB_STATE_UNSPECIFIED

JobState represents the state an asynchronous job can be in.

  • JOB_STATE_PAUSED: Job is paused, typically due to account suspension or manual intervention.
Available options:
JOB_STATE_UNSPECIFIED,
JOB_STATE_CREATING,
JOB_STATE_RUNNING,
JOB_STATE_COMPLETED,
JOB_STATE_FAILED,
JOB_STATE_CANCELLED,
JOB_STATE_DELETING,
JOB_STATE_WRITING_RESULTS,
JOB_STATE_VALIDATING,
JOB_STATE_DELETING_CLEANING_UP,
JOB_STATE_PENDING,
JOB_STATE_EXPIRED,
JOB_STATE_RE_QUEUEING,
JOB_STATE_CREATING_INPUT_DATASET,
JOB_STATE_IDLE,
JOB_STATE_CANCELLING,
JOB_STATE_EARLY_STOPPED,
JOB_STATE_PAUSED
status
Mimics [https://github.com/googleapis/googleapis/blob/master/google/rpc/status.proto] · object
createdBy
string

The email address of the user who initiated this dpo job.

trainingConfig
BaseTrainingConfig contains common configuration fields shared across different training job types. Next ID: 22 · object

Common training configurations.

wandbConfig
object

The Weights & Biases team/user account for logging job progress.

trainerLogsSignedUrl
string

The signed URL for the trainer logs file (stdout/stderr). Only populated if the account has trainer log reading enabled.

lossConfig
object

Loss configuration for the training job. If not specified, defaults to DPO loss. Set method to ORPO for ORPO training.