debug-cuda-crash
调试 FlashInfer CUDA 崩溃
CUDA 崩溃通常会隐藏导致失败的输入数据。此技能展示如何使用 FlashInfer API 日志记录和 CUDA 工具来定位失败的调用。
使用我的智能体安装
将此请求复制给你的智能体,其中包含权威 Skill 页面和清单。
Review the Skillstore skill "debug-cuda-crash" from https://skillstore.io/skills/flashinfer-ai-debug-cuda-crash.md and its manifest at https://skillstore.io/api/skills/flashinfer-ai-debug-cuda-crash/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.你的智能体仍应展示其计划,并按安全策略请求必要确认。
Agent 可读资源
当 AI Agent、爬虫或脚本需要干净上下文,而不是读取完整页面时,请使用这些链接。
测试它
正在使用“debug-cuda-crash”。 一个 FlashInfer decode 作业在多次成功调用后因非法内存访问而失败。
预期结果:
助手识别没有输出的最后一次 API 调用,比较 query 和 cache 形状,并建议修复 head 维度不匹配。
正在使用“debug-cuda-crash”。 一次多 GPU 训练运行只在某一个 rank 上崩溃。
预期结果:
助手建议使用按进程分开的日志文件,比较 rank 日志,并定位到具有异常张量大小的 rank。
正在使用“debug-cuda-crash”。 模型在一次 FlashInfer 操作后返回 NaN。
预期结果:
助手建议启用统计信息日志记录,检查取值范围,并将问题缩小到第一个包含 NaN 或 Inf 计数的张量。
安全审计
安全All 127 static findings are false positives caused by Markdown code formatting, example commands, and benign CUDA terminology. The skill is a documentation-only tutorial, and no prompt injection, automatic execution, reconnaissance, or malicious intent was found.
风险因素
⚙️ 外部命令 (50)
分享与引用此报告
分享版本化评估报告、中性徽章、嵌入卡片和引用。Skillstore 只报告证据,不判断该 Skill 是否安全。
复制报告链接
https://skillstore.io/skills/flashinfer-ai-debug-cuda-crash/audits/8?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown 徽章
[](https://skillstore.io/skills/flashinfer-ai-debug-cuda-crash?utm_source=security_passport_badge)HTML 徽章
<a href="https://skillstore.io/skills/flashinfer-ai-debug-cuda-crash?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/flashinfer-ai-debug-cuda-crash/security.svg" alt="Skillstore security assessment" loading="lazy"></a>嵌入卡片
<iframe src="https://skillstore.io/embed/skills/flashinfer-ai-debug-cuda-crash.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>学术引用 (APA · BibTeX · CFF)
APA 引用
flashinfer-ai. (2026). debug-cuda-crash security audit report (audit version 8) [Author version unspecified]. Skillstore. https://skillstore.io/skills/flashinfer-ai-debug-cuda-crash/audits/8BibTeX 引用
@techreport{flashinfer-ai-flashinfer-ai-debug-cuda-crash-2026,
author = {flashinfer-ai},
title = {debug-cuda-crash security audit report (audit version 8)},
institution = {Skillstore},
year = {2026},
number = {8},
url = {https://skillstore.io/skills/flashinfer-ai-debug-cuda-crash/audits/8},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "debug-cuda-crash security audit report (audit version 8)"
version: "unspecified"
type: report
authors:
- name: "flashinfer-ai"
date-released: "2026-07-23"
url: "https://skillstore.io/skills/flashinfer-ai-debug-cuda-crash/audits/8"
identifiers:
- type: other
value: "skillstore:flashinfer-ai-debug-cuda-crash:audit:8"
description: "Skillstore immutable audit report identifier"
Skillstore 评分
评分依据 证据置信度: 高你能构建什么
追踪 CUDA 崩溃
使用 API 日志记录查找最后一次 FlashInfer 调用并检查其输入张量。
调查数值不稳定性
使用张量统计信息,在失败操作前定位 NaN、Inf 或极端值。
调试分布式 GPU 作业
在多 GPU 运行失败时,创建单独的进程日志并比较各个 rank。
试试这些提示
指导我为 PyTorch 脚本中的 CUDA 崩溃启用 FlashInfer API 日志记录。我想捕获最后一次 API 调用和输入元数据。
我有一份失败运行产生的 FlashInfer API 日志。帮我检查张量形状、dtype、设备以及第一个失败的调用。
帮我使用 5 级 FlashInfer 日志记录来调查此 CUDA 工作流中的 NaN 或 Inf 值。说明应比较哪些模式。
创建一个分步计划,结合 FlashInfer API 日志记录、compute-sanitizer、cuda-gdb 和选择性的 kernel printf 输出。
最佳实践
- 先从 3 级日志记录开始,再启用更重的统计信息。
- 将崩溃日志写入本地文件,并在分析后删除。
- 在生产运行前禁用日志记录,以减少噪声和暴露风险。
避免
- 在未检查敏感张量元数据的情况下共享调试日志。
- 在缩小失败 API 调用范围之前运行繁重的内存检查器。
- 在确认装饰器支持之前,假设每个 FlashInfer API 都有日志记录。
常见问题
这个技能会自动运行命令吗?
它能直接修复 CUDA bug 吗?
它涵盖哪些工具?
Claude、Codex 或 Claude Code 可以使用这个工作流吗?
调试日志可以安全共享吗?
什么时候应该禁用日志记录?
开发者详情
许可证
MIT
Skillstore 修订
r2
版本提示
作者未声明版本。
引用
c43861a65bb95efcae259cd161c9d6f4dc7eec6f
维护新鲜度
2026/7/25
使用量
4 次下载 · 156 次浏览
文件结构
📄 SKILL.md