# Can Ascend officially draft a documentation on the vLLM-Ascend adaptation for graph mode?

**URL:** <https://discuss.vllm.ai/t/can-ascend-officially-draft-a-documentation-on-the-vllm-ascend-adaptation-for-graph-mode/162>\
**Category:** Ascend Support\
**Created:** [March 21, 2025, 5:31am UTC](https://discuss.vllm.ai/t/can-ascend-officially-draft-a-documentation-on-the-vllm-ascend-adaptation-for-graph-mode/162 "2025-03-21T05:31:59Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![kinnn8899](https://avatars.discourse-cdn.com/v4/letter/k/58956e/32.png) [@kinnn8899](https://discuss.vllm.ai/u/kinnn8899)\
**Post date:** [March 21, 2025, 5:31am UTC](https://discuss.vllm.ai/t/can-ascend-officially-draft-a-documentation-on-the-vllm-ascend-adaptation-for-graph-mode/162/1 "2025-03-21T05:31:59Z")

</div>

Can Ascend officially draft a documentation on the vLLM-Ascend adaptation for graph mode?

---

<div class="post-metadata">

**Author:** ![yikun](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.vllm.ai/yikun/32/11_2.png) [@yikun](https://discuss.vllm.ai/u/yikun)\
**Post date:** [March 21, 2025, 8:50am UTC](https://discuss.vllm.ai/t/can-ascend-officially-draft-a-documentation-on-the-vllm-ascend-adaptation-for-graph-mode/162/2 "2025-03-21T08:50:51Z")

</div>

@kinnn8899 Thanks for feedback, the graph mode (aka compile mode) are still working in prorgress.

It will be implemented by using torchair [1] backend via custom torch.compile backend key [2].

Please let us know if you have more question here.

[1] [GitHub - Ascend/torchair](https://github.com/Ascend/torchair)  
[2] [[platform] support custom torch.compile backend key by wangxiyuan · Pull Request #11318 · vllm-project/vllm · GitHub](https://github.com/vllm-project/vllm/pull/11318)

---

<div class="post-metadata">

**Author:** ![kinnn8899](https://avatars.discourse-cdn.com/v4/letter/k/58956e/32.png) [@kinnn8899](https://discuss.vllm.ai/u/kinnn8899)\
**Post date:** [March 21, 2025, 9:03am UTC](https://discuss.vllm.ai/t/can-ascend-officially-draft-a-documentation-on-the-vllm-ascend-adaptation-for-graph-mode/162/3 "2025-03-21T09:03:40Z")

</div>

TBH, i want know this thing:  
After the framework has adapted the graph mode(torchair), does the model side still need to be adapted? What does the model side need to do if it needs to be adapted?

---

<div class="post-metadata">

**Author:** ![yikun](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.vllm.ai/yikun/32/11_2.png) [@yikun](https://discuss.vllm.ai/u/yikun)\
**Post date:** [March 21, 2025, 1:21pm UTC](https://discuss.vllm.ai/t/can-ascend-officially-draft-a-documentation-on-the-vllm-ascend-adaptation-for-graph-mode/162/4 "2025-03-21T13:21:55Z")

</div>

@kinnn8899 No, no more action needed if it’s supported, there is a reduce-overhead mode in torchair to help speed up model seamlessly:

> <https://github.com/Ascend/torchair/commit/7d6785c75a31e0d7802d17e4119f3e8d519facfe>
>
> Merge pull request !1457 from 王强/master

But it is still working in process, we are also cooperate with torch npu team to complete it.

The roadmap also not ready yet (Maybe 2025 Q2 or Q3?), we will provide more doc about it once it’s supported.

---

<div class="post-metadata">

**Author:** ![Chuanyu](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.vllm.ai/chuanyu/32/33_2.png) [@Chuanyu](https://discuss.vllm.ai/u/Chuanyu)\
**Post date:** [March 22, 2025, 6:22am UTC](https://discuss.vllm.ai/t/can-ascend-officially-draft-a-documentation-on-the-vllm-ascend-adaptation-for-graph-mode/162/5 "2025-03-22T06:22:03Z")

</div>

Basically: Graph mode provides two core acceleration capabilities, kernel fusion and framework overhead reduce benefits, all capabilities will be provided based on torch.compile.  
Regarding reduce-overhead , which is equivalent to cudagraph functionality, named aclgraph will be officially released by Q2 at the latest.  
Regarding automatic fusion, multiple teams are attempting different implementation approaches, and once mature, we will introduce and integrate them.  
Torchair, as the graph mode bridge between torch and ascend, will provide different user experiences in the future through various config\_mode options.  
If the automatic fusion capability based on inductor matures in the future, we will also consider directly providing inductor-npu backend.

---

<div class="post-metadata">

**Author:** ![Chuanyu](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.vllm.ai/chuanyu/32/33_2.png) [@Chuanyu](https://discuss.vllm.ai/u/Chuanyu)\
**Post date:** [March 22, 2025, 6:33am UTC](https://discuss.vllm.ai/t/can-ascend-officially-draft-a-documentation-on-the-vllm-ascend-adaptation-for-graph-mode/162/6 "2025-03-22T06:33:07Z")

</div>

if you only want to get framework overhead-reduce benifit, nothing but orignal torch.compile work is needed.  
if you want to get kernel auto fusion benifit, different fusion backend may need different external work.

---

<div class="post-metadata">

**Author:** ![yikun](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.vllm.ai/yikun/32/11_2.png) [@yikun](https://discuss.vllm.ai/u/yikun)\
**Post date:** [March 26, 2025, 10:17am UTC](https://discuss.vllm.ai/t/can-ascend-officially-draft-a-documentation-on-the-vllm-ascend-adaptation-for-graph-mode/162/7 "2025-03-26T10:17:20Z")

</div>

Will the memory usage be increased (like cuda graph) when run models (such as deepseek) with torchair reduce-overhead mode?

A question from [vLLM Ascend weekly meeting](https://docs.google.com/document/d/1hCSzRTMZhIB8vRq1_qOOjx4c9uYUxvdQvDsMV2JcSrw).
