Skip to content

[WIP] Add support for custom DeepSeek modelling in ACL Graph mode #677

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

yiz-liu
Copy link
Contributor

@yiz-liu yiz-liu commented Apr 27, 2025

What this PR does / why we need it?

Enable ACL Graph mode for custom DeepSeek modelling.

Does this PR introduce any user-facing change?

None.

How was this patch tested?

Test it with any DeepSeek model.

@yiz-liu yiz-liu force-pushed the feat-deepseek-graph branch from 3b0c106 to 593b87e Compare April 27, 2025 08:21

return final_hidden_states.view(num_tokens, hidden_dim)

def _forward(self, hidden_states: torch.Tensor) -> torch.Tensor:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have we tested torchair on this, access attn_metadata in global context may cause some graph related issue, better confirmed it with torchair


return output_padded
if trace_flag:
torch.ops.vllm.unified_ascend_mla_attention_with_output(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use the attention interface unified_ascend_attention_with_output which already registered in attention_v1.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants