# Vllm ascend能够查看模型的计算图吗

**URL:** <https://discuss.vllm.ai/t/vllm-ascend/1826>\
**Category:** Ascend Support\
**Created:** [November 3, 2025, 7:25am UTC](https://discuss.vllm.ai/t/vllm-ascend/1826 "2025-11-03T07:25:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Carpe](https://avatars.discourse-cdn.com/v4/letter/c/cab0a1/32.png) [@Carpe](https://discuss.vllm.ai/u/Carpe)\
**Post date:** [November 3, 2025, 7:25am UTC](https://discuss.vllm.ai/t/vllm-ascend/1826/1 "2025-11-03T07:25:07Z")

</div>

vllm ascend能不能抓取模型的计算图

---

<div class="post-metadata">

**Author:** ![RunLLM](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.vllm.ai/runllm/32/233_2.png) [@RunLLM](https://discuss.vllm.ai/u/RunLLM)\
**Post date:** [November 3, 2025, 7:25am UTC](https://discuss.vllm.ai/t/vllm-ascend/1826/2 "2025-11-03T07:25:36Z")

</div>

我的理解是，vLLM 目前没有直接支持在 Ascend（华为昇腾）设备上导出或可视化模型的计算图（如 Netron/torchviz/graphviz 风格）。官方文档和 issue 讨论中未提及对 Ascend 平台的原生支持，也没有提供相关的 API 或工具来导出 vLLM 内部模型的完整计算图结构。现有的可视化方法主要针对 PyTorch/ONNX 格式，且在 vLLM 动态推理和分布式架构下，直接 trace 计算图会遇到困难，尤其是对于大模型和多进程/多设备场景，常规 torch.fx/torchviz/onnx trace 方法容易失败或不完整。

如果你需要可视化 vLLM 内部模型结构，建议先确认模型是否能在 PyTorch 下正常 trace，然后再尝试用 torch.fx、torchviz 或 Netron 等工具，但这通常只适用于小模型或未经过 vLLM 特殊封装的模型。对于 Ascend 平台，目前 vLLM 官方未提供相关适配和可视化支持。如需进一步细节或替代方案，请告知你的具体需求和使用场景。据我所知，vLLM 目前主要支持 CUDA/NVIDIA/Intel 平台，尚未有 Ascend 相关的适配计划或文档说明。

Sources:

- [https://github.com/vllm-project/vllm/issues/20922](https://github.com/vllm-project/vllm/issues/20922)

Hint: Mention @RunLLM in the post for followups.

---

<div class="post-metadata">

**Author:** ![wangxiyuan](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.vllm.ai/wangxiyuan/32/419_2.png) [@wangxiyuan](https://discuss.vllm.ai/u/wangxiyuan)\
**Post date:** [November 20, 2025, 7:38am UTC](https://discuss.vllm.ai/t/vllm-ascend/1826/3 "2025-11-20T07:38:54Z")

</div>

can you describe more? If you want to export graph, it’s the ability from pytorch. vLLM Ascend does nothing else. If you want to get profiling, there is the guide [Service Profiling Guide — vllm-ascend](https://docs.vllm.ai/projects/ascend/en/latest/developer_guide/performance/service_profiling_guide.html)
