GetRLTrainingProgress - 查询 DLC 作业 RL 训练进度

更新时间:
复制 MD 格式

获取DLC作业RL训练进度。

接口说明

获取 DLC 作业 RL 训练进度

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

调试

授权信息

当前API暂无授权信息透出。

请求语法

GET /api/v1/jobs/{JobId}/rltrace/progress HTTP/1.1

路径参数

名称

类型

必填

描述

示例值

JobId

string

是

作业 ID

dlc5yfk7eyg95lac

请求参数

名称

类型

必填

描述

示例值

StartTime

string

否

查询窗口起始(UTC RFC3339),缺省 EndTime-7d

2026-08-04T00:00:00Z

EndTime

string

否

查询窗口截止(UTC RFC3339),缺省 now

2026-08-07T00:00:00Z

返回参数

名称

类型

描述

示例值

object

Schema of Response

JobId

string

作业 ID

dlc-20210126170216-xxxxxxx

Found

boolean

master-0 在窗口内是否有日志;false 时其余字段缺省

true

LastLogTime

integer

最后一条日志时间(unix 秒)

1787474487

ServerNow

integer

服务端当前时间(unix 秒),供前端算“多久没日志”

1787475398

Config RLProgressConfig

训练配置 dump 解析结果(未解析到的字段为空)

{}

Step RLProgressStep

step 进度;Pace 由相邻两个 Step 标记差分,ETA =(Total-Current)* Pace

1

Phase

string

最新 trainer 阶段标记原文

disagg: actor generate sequences

PhaseTime

integer

该阶段标记时间(unix 秒),供前端算 dwell

1787474487

TrainMode

string

disagg(训推分离)/ colocate(训推一体)/ 空串(未识别)

disagg

Stages RLProgressStages

阶段流水线

[{'Index': 'Group0-Stage0', 'StageInfo': {'Status': 'FAIL', 'EndTime': 0, 'Jobs': [{'Id': 477917255}], 'Name': u'\u9636\u6bb51', 'StartTime': 1784858533000}, 'Name': u'\u9636\u6bb51'}]

Trainer RLProgressTrainer

trainer 内部状态(mini-batch / micro-batch / 参数同步)

Buffer RLProgressBuffer

数据 buffer 就绪度;ETA 用 rollout 完成速率代理估算

Eval RLProgressEval

eval buffer 就绪度(tag=-1)

Throughput

number

最新 gen throughput(token/s)

1200

Rollout RLProgressRollout

rollout 吞吐

Slow RLProgressSlow

慢推理软告警(Details 最多 20 条)

Fatal

array

致命错误(最多 5 条,已剔除沙箱业务噪声)

RLProgressFatal

一条训练致命错误记录,包含错误日志及其发生时间。

False

HealthOk

boolean

Fatal 为空即 true

true

RequestId

string

请求 ID

473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E

示例

正常返回示例

JSON格式

{
  "JobId": "dlc-20210126170216-xxxxxxx",
  "Found": true,
  "LastLogTime": 1787474487,
  "ServerNow": 1787475398,
  "Config": {
    "TrainBatchSize": 512,
    "RolloutN": 8,
    "PpoMiniBatchSize": 128,
    "TotalSteps": 3,
    "NumMinibatches": 4
  },
  "Step": {
    "Current": 3,
    "Total": 3,
    "Time": 1787474487,
    "PaceSec": 14,
    "Pct": 100,
    "EtaSec": 0
  },
  "Phase": "disagg: actor generate sequences",
  "PhaseTime": 1787474487,
  "TrainMode": "disagg",
  "Stages": {
    "Mode": "colocate",
    "Stages": [
      {
        "Key": "traj",
        "Label": "生成轨迹",
        "Marker": "start/end generation",
        "Optional": false,
        "Status": "done",
        "StartTime": 1787474487,
        "EndTime": 1787474487,
        "Duration": 0.483
      }
    ],
    "CurrentIndex": 6,
    "StepDone": false
  },
  "Trainer": {
    "MiniIdx": 1,
    "NumMinibatches": 4,
    "Micro": {
      "Current": 3,
      "Total": 3
    },
    "Sync": {
      "State": "end",
      "Cost": 1.5
    }
  },
  "Buffer": {
    "Ready": 500,
    "Consumed": 0,
    "Finished": 500,
    "Target": 512,
    "TrainBatchSize": 512,
    "Detail": [
      {
        "Tag": 1,
        "Ready": 500,
        "Consumed": 0,
        "Finished": 500,
        "Total": 3
      }
    ],
    "Pct": 100,
    "Training": true,
    "FillRatePerMin": 120.5,
    "EtaSec": 0
  },
  "Eval": {
    "Ready": 500,
    "Finished": 500,
    "Total": 3,
    "Progress": 500,
    "Done": true,
    "Pct": 100
  },
  "Throughput": 1200,
  "Rollout": {
    "Finished": 500,
    "Processed": {
      "Done": 2,
      "Total": 3
    },
    "RatePerMin": 31.2
  },
  "Slow": {
    "Elapsed": 42.5,
    "Time": 1787474487,
    "Details": [
      {
        "Elapsed": 42.5,
        "Time": 1787474487,
        "Message": "CUDA out of memory. Tried to allocate 2.00 GiB",
        "Rank": 0,
        "Pod": "dlc193cpaitk8eny-master-0",
        "WorkerPid": 12345,
        "Ip": "192.168.0.12",
        "Rid": "req-8f3a2c1d",
        "TokenizerPid": "12360",
        "Ipc": "ipc://worker-0",
        "IsPause": "false",
        "StatePresent": "true",
        "OutQueue": "3"
      }
    ]
  },
  "Fatal": [
    {
      "Time": 1787474487,
      "Message": "CUDA out of memory. Tried to allocate 2.00 GiB",
      "RawMessage": "[rank0]: torch.OutOfMemoryError: CUDA out of memory. Tried to allocate 2.00 GiB",
      "SubsecNs": 123456789,
      "CollectNs": "1787474487713456789"
    }
  ],
  "HealthOk": true,
  "RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"
}

错误码

HTTP status code

错误码

错误信息

描述

400 InvalidParameter The specified parameter is not valid.
500 InternalServerError An internal error has occurred. Try again later.
403 OperationForbidden You are not authorized to access the specified job.

访问错误中心查看更多错误码。

变更历史

更多信息,参考变更详情。