Scenario

The trainer rejects the attention name

L1ScreenIncident15 minScreenDebugging

RolesInference EngineeringAI Evaluation and Reliability

Engine
Miles main 08752a12 with its own SGLang 0.5.22 build
Model
Qwen/Qwen3-0.6B
Hardware
one GB10 with 128 GB of unified memory

Situation

An engineer wants to shrink the log probability gap between the rollout engine and the trainer. The engine runs its Triton attention backend, so she sets the trainer's attention implementation to triton as well, with a name she copied from an example. The idea is that two sides with one kernel name agree on more numbers.

The run ends about a minute after the launcher's first line. The trainer prints a ValueError, and a line from the fault-tolerance layer says that the trainer's init failed. She asks whether the image is broken and whether to pull another tag.

Questions

  1. Which process raised the error, and which list does the error print?
  2. How does this failure differ from a rollout engine that dies at start?
  3. Why does a name that the engine accepts not reach the trainer as a valid name?
  4. Is there a pair of settings that gives both sides one kernel on this machine?
  5. What do you change, and which line in the next log shows that the run is healthy?

Commit to a cause after each listing. Write it down before you read the next one.

Evidence

1/4

the launcher line, the trainer error and the failed init

Read the list of accepted names in the error, then the time between the first and the last line.

evidence/the-error.txt
[2026-10-17 16:28:41.340 launcher] common.py:290 - EXEC: mkdir -p /root/lab/mode
ValueError: Specified `attn_implementation="triton"` is not supported. The only possible arguments are `attn_implementation="eager"`, `"paged|eager"`, `"attn_implementation=flash_attention_2"`, `"attn_implementation=paged|flash_attention_2"`, `"attn_implementation=flash_attention_3"`, `"attn_implementation=paged|flash_attention_3"`, `"attn_implementation=flash_attention_4"`, `"attn_implementation=paged|flash_attention_4"`, `"attn_implementation=sdpa"`, `"attn_implementation=paged|sdpa"`, `"attn_implementation=flex_attention"`.
[2026-10-17 16:29:42.606 trainer_controller_actor] cell.py:251 - ft op=execute phase=fail cell=trainer-engine-actor-00000 fn=init elapsed_s=0.7

Source: manuals/sglang-101/capture/gpu/out-miles/true-on-policy-error.log, lines 1-3

2/4

the troubleshooting entry for this error

Cause, check and fix in three lines.

evidence/manual-entry.txt
## The trainer rejects the attention implementation

- **Cause:** a trainer attention name that the installed transformers library does not accept, such as `triton`.
- **Check:** a `ValueError` that lists the attention implementations transformers accepts.
- **Fix:** pick one from that list. On our GB10 we left the trainer setting at its default.

Source: manuals/miles-101/sections/7-1-troubleshoot-by-symptom.md, lines 41-45

3/4

where the flag value came from, and the one pair that both sides accept

The first paragraph explains why the name reached the trainer unchanged.

evidence/why-the-value-was-wrong.txt
The flag value came from the wrong example. In the FSDP actor, the SGLang Triton attention bridge turns on only when `torch.version.hip` is set, which means AMD GPUs {{code}}. On an NVIDIA GPU the value goes straight to transformers, which has no attention named `triton`.

The only true on-policy contract in Miles pairs the SGLang `fa3` backend with `flash_attention_3` in FSDP {{code}}. We ran the job again with the contract flags to see where it stops.

Source: manuals/sglang-101/sections/7-2-sglang-as-an-rl-rollout-engine.md, lines 211-213

4/4

the true on-policy contract: the models, the kernel and the two checks

Both sides must run the same attention kernel, and that kernel has a GPU range.

evidence/the-contract.txt
The Miles versions we checked have one true on-policy contract. It covers dense Qwen3 models: Qwen3-0.6B and three Qwen3-4B variants. Both sides must run FlashAttention 3: the engine as its attention backend, and the trainer as its attention implementation.

FlashAttention 3 is built for Hopper GPUs. The engine check accepts compute capability 8.0 to 9.0 and refuses newer GPUs. So check two things before you plan the run:

1. Your GPU is a Hopper GPU, such as an H100 or an H200.
2. Your model is in the contract.

Source: manuals/miles-101/sections/4-6-know-the-true-on-policy-limits.md, lines 11-16

The answer

Show the walkthrough
  1. Read the error. The trainer raised ValueError: Specified attn_implementation="triton" is not supported, and it printed the names it accepts: eager, flash_attention_2, flash_attention_3, flash_attention_4, sdpa, flex_attention, and their paged forms. The next line, from the trainer controller, reads phase=fail for fn=init after 0.7 s. The trainer never came up, and the job said so and stopped. The launcher line and the fail line are one minute apart. A dead rollout engine, by contrast, leaves the job running for an hour with HTTP 503 errors.
  2. Match the manual entry. The troubleshooting page has this symptom: a trainer attention name that the installed transformers library does not accept, such as triton. The check is a ValueError that lists the accepted implementations, and the fix is to pick one from that list. The manual's runs left the trainer setting at its default.
  3. See where the name came from. The engine and the trainer keep two different lists. In the FSDP actor, a bridge to the engine's Triton attention turns on only when the build reports an AMD GPU. On an NVIDIA GPU the value goes straight to the transformers library, which has no attention named triton. The example that the engineer copied was for the other kind of GPU.
  4. Read the contract. Miles has one pairing where both sides run one kernel: the engine on its fa3 backend and the trainer on flash_attention_3, for the dense Qwen3 models in the contract, and that kernel accepts GPUs with compute capability 8.0 to 9.0. The GB10 is outside that range, so on this machine no setting puts one kernel on the two sides. The manual's advice outside the contract is to watch the gap and lower its sampler part.
Show the resolution

Remove the attention flag on the trainer side, or set it to a name from the error's own list. Leave the engine on its backend. The two lists are different, and the only pairing that makes both sides bit-exact needs a Hopper GPU, which this machine is not. The healthy run then shows a rollout 0 line within minutes, and a step-0 gap inside the range of the healthy runs on this machine, 0.0136 to 0.0164 for this model without top-p or top-k.

Show the wrong turns
  • “The image is broken, pull another tag.”

    The error is a value check in the trainer library against its own list of names. The manual's runs used this image with the default name and completed.

  • “Give the engine the same name as the trainer, so the names match.”

    The engine accepts triton and the trainer does not. Matching names does not give matching kernels, and the trainer still refuses to start.

  • “Use the contract pair, FlashAttention 3 on both sides.”

    The engine's FA3 backend refuses the GB10 at start, because of its compute capability range, and the job then runs for an hour against a dead engine.

Show the general rule

Two components that read the same word do not read the same thing. Each one checks a setting against its own list, and an error that prints the list is the fastest fix you will get. Read the list, pick from it, and do not expect a shared name to buy shared numerics. Bit-exact agreement between a server and a trainer is a contract with a model list and a hardware range, not a flag.

Taught in

The Miles manual lists this error in its symptom table and the contract that both sides must meet in the true on-policy limits page, and the SGLang manual shows the same run and where the flag value came from in its RL rollout engine page.