GetRLFlowAnalysis
Retrieves the RL trajectory flow analysis of a DLC job.
Operation description
Retrieves the RL trajectory flow analysis of a DLC job.
Try it now
Test
RAM authorization
Request syntax
GET /api/v1/jobs/{JobId}/rltrace/flowanalysis HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| JobId |
string |
Yes |
The job ID. |
dlc5yfk7eyg95lac |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| StartTime |
string |
No |
The start time of the query window in UTC RFC 3339 format. Default value: EndTime-7d. |
2026-08-04T00:00:00Z |
| EndTime |
string |
No |
The end time of the query window in UTC RFC 3339 format. Default value: now. |
2026-08-07T00:00:00Z |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| JobId |
string |
The job ID. |
dlc-20210126170216-xxxxxxx |
| Found |
boolean |
Indicates whether trajectory data exists within the query window. |
true |
| NowMs |
integer |
The server observation time in milliseconds, calculated as min(EndTime, now). This is the baseline for calculating in-flight idle time. |
1787475397000 |
| Totals | RLFlowTotals |
The total statistics. |
{'Sampled': 0, 'Uids': 0, 'Inflight': 0, 'Trained': 0, 'Trajs': 0, 'Rewarded': 0} |
| Funnel |
array |
The 6-level funnel: traj → dispatch → run → push → selected → trained. |
|
| RLFlowFunnelStage |
The funnel level. |
||
| Sankey | RLFlowSankey |
The Sankey diagram. |
|
| Transitions |
array |
The percentile statistics for the duration in seconds of 8 stages. |
|
| RLFlowTransition |
The transition effect. Valid when TransitionMode is set to Random or Sequential. Maximum limit: 10. |
||
| Waste | RLFlowWaste |
The oversampling waste. |
{'UsefulSec': 0} |
| Turns | RLFlowTurns |
The distribution of generation turns. |
{'Count': 0, 'Max': None, 'Avg': None, 'P50': None, 'P90': None} |
| Stuck |
array |
The top 100 in-flight stuck points, sorted by IdleSec in descending order. |
|
| RLFlowStuckItem |
The in-flight trajectory stuck point. |
[] |
|
| InflightByMilestone |
array |
The count of in-flight trajectories by milestone, sorted by Count in descending order. |
|
| RLFlowMilestoneCount |
The count of in-flight trajectories for the milestone. |
[] |
|
| Steps |
array |
The step production-consumption view. |
|
| RLFlowStep |
The execution step. |
[] |
|
| StepSource |
string |
The time source of steps. A value of progress indicates that the time is extracted from the step markers in the task logs. A value of trace indicates that the time is grouped by global_step in the trace. An empty value indicates that no step data is available. |
progress |
| MegaStepOffset |
integer |
The offset of the Megatron global_step relative to the FORM_BATCH batch_id. Valid values: 0 or 1. |
0 |
| RequestId |
string |
The request ID. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
Examples
Success response
JSON format
{
"JobId": "dlc-20210126170216-xxxxxxx",
"Found": true,
"NowMs": 1787475397000,
"Totals": {
"Uids": 24,
"Trajs": 96,
"Trained": 96,
"Rewarded": 96,
"Sampled": 96,
"Inflight": 0
},
"Funnel": [
{
"Key": "traj",
"Label": "生成轨迹",
"Count": 96,
"Pct": 100
}
],
"Sankey": {
"Columns": [
{
"Key": "traj",
"Label": "生成轨迹",
"Count": 96
}
],
"Exits": [
{
"From": "DataLoader",
"FromIdx": 0,
"Label": "生成轨迹",
"Count": 96
}
]
},
"Transitions": [
{
"Key": "traj",
"Label": "Trajectory generation",
"Count": 96,
"P50": 0.8,
"P90": 5.9,
"P99": 8.6,
"Max": 9.2,
"Avg": 1.9,
"Slowest": [
{
"PromptUid": "321fa56f-e1e5-4eb3-8047-db7a230c9a75",
"SampleIndex": "2",
"Sec": 9.2
}
]
}
],
"Waste": {
"UsefulSec": 183
},
"Turns": {
"Count": 96,
"Avg": 1.9,
"P50": 0.8,
"P90": 5.9,
"Max": 9.2
},
"Stuck": [
{
"PromptUid": "321fa56f-e1e5-4eb3-8047-db7a230c9a75",
"SampleIndex": "2",
"Milestone": "Generating",
"NTurns": 3,
"LastTsMs": 1787293215480,
"IdleSec": 0
}
],
"InflightByMilestone": [
{
"Milestone": "Generating",
"Count": 96
}
],
"Steps": [
{
"Step": 3,
"NSamples": 24,
"NTrajs": 96,
"TFwdStartMs": 1787474487713,
"TOptEndMs": 1787474487713,
"TUpdateMs": 1787474487713,
"ProdStartMs": 1787474487713,
"ProdEndMs": 1787474487713,
"TRolloutStartMs": 1787474487713,
"TRolloutEndMs": 1787474487713,
"TTrainStartMs": 1787474487713,
"TTrainEndMs": 1787474487713,
"RolloutSec": 0,
"GapSec": 0,
"TrainSec": 0,
"BufferWaitP50": 0.8,
"RolloutP50": 0.8,
"IdleSec": 0
}
],
"StepSource": "progress",
"MegaStepOffset": 0,
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 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. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.