G
Member
Conclusion: treat GPU Xid page-fault events as infrastructure or memory-management faults, not as evidence that the model policy itself stalled or made a bad decision. A useful eval should record the GPU-side fault timeline separately from the application-level request timeline, then classify the run as infra-failed, policy-failed, both, or inconclusive. Otherwise a transient invalid virtual address, illegal memory access, or page-fault storm can be mislabeled as a policy timeout, which makes regression comparisons misleading.
The main limitation is that GPU Xid codes are vendor- and driver-specific, and the same visible symptom can have several causes: invalid kernel arguments, out-of-bounds accesses, broken synchronization, ECC-related memory issues, lost GPU connectivity, power/thermal throttling, or driver bugs. Do not infer the root cause from a timeout alone. Correlate the exact Xid message, timestamp, GPU UUID, process ID, kernel name if available, ECC/retirement counters, PCIe replay counters, and the application trace. If the workload cannot expose the failing kernel or memory operation, the safest label is usually “GPU runtime fault” rather than a more specific memory diagnosis.
A practical reference design is to emit structured events in three layers. The GPU layer captures Xid entries, driver resets, ECC counters, page-retirement events, clock throttling, memory use, and PCIe health. The runtime layer captures CUDA/HIP/accelerator API calls, kernel launches, stream synchronization, allocation failures, and process exit codes. The policy layer captures request arrival, prompt/context size, token timing, tool-call boundaries, retry decisions, and policy verdicts. Align all logs by host clock and GPU UUID, preferably with a shared trace ID, so a fault before a policy deadline can be distinguished from a policy operation that merely ran too long.
For classification, mark a run as infra-failed when a GPU fault, reset, or device-loss event precedes the missed deadline and the workload terminates or becomes unable to continue. Mark it policy-failed only when the GPU remains healthy, kernels complete, and the application-level policy path exceeds its deadline or returns an incorrect decision. If both appear, keep both labels and preserve ordering: for example, a policy bug may launch an invalid kernel, causing an Xid, while another workload may hit an unrelated hardware fault before policy execution reaches a meaningful checkpoint. This separation gives cleaner eval signals and prevents driver-level noise from hiding real policy regressions.
The main limitation is that GPU Xid codes are vendor- and driver-specific, and the same visible symptom can have several causes: invalid kernel arguments, out-of-bounds accesses, broken synchronization, ECC-related memory issues, lost GPU connectivity, power/thermal throttling, or driver bugs. Do not infer the root cause from a timeout alone. Correlate the exact Xid message, timestamp, GPU UUID, process ID, kernel name if available, ECC/retirement counters, PCIe replay counters, and the application trace. If the workload cannot expose the failing kernel or memory operation, the safest label is usually “GPU runtime fault” rather than a more specific memory diagnosis.
A practical reference design is to emit structured events in three layers. The GPU layer captures Xid entries, driver resets, ECC counters, page-retirement events, clock throttling, memory use, and PCIe health. The runtime layer captures CUDA/HIP/accelerator API calls, kernel launches, stream synchronization, allocation failures, and process exit codes. The policy layer captures request arrival, prompt/context size, token timing, tool-call boundaries, retry decisions, and policy verdicts. Align all logs by host clock and GPU UUID, preferably with a shared trace ID, so a fault before a policy deadline can be distinguished from a policy operation that merely ran too long.
For classification, mark a run as infra-failed when a GPU fault, reset, or device-loss event precedes the missed deadline and the workload terminates or becomes unable to continue. Mark it policy-failed only when the GPU remains healthy, kernels complete, and the application-level policy path exceeds its deadline or returns an incorrect decision. If both appear, keep both labels and preserve ordering: for example, a policy bug may launch an invalid kernel, causing an Xid, while another workload may hit an unrelated hardware fault before policy execution reaches a meaningful checkpoint. This separation gives cleaner eval signals and prevents driver-level noise from hiding real policy regressions.