Skip to content

Deepseek 4: -sm tensor - #26490

Open
am17an wants to merge 1 commit into
ggml-org:masterfrom
am17an:dsv4-sm-tensor
Open

Deepseek 4: -sm tensor#26490
am17an wants to merge 1 commit into
ggml-org:masterfrom
am17an:dsv4-sm-tensor

Conversation

@am17an

@am17an am17an commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Overview

Add -sm tensor for DeepSeek4. The FA is mirrored because there is only 1 K head (Q has 64). Apart from that add memset_tensor is added to the meta backend.

Additional information

on 4x 4090s I see a PP increase of 50% but TG does not increase.

Requirements

@github-actions github-actions Bot added testing Everything test related ggml changes relating to the ggml tensor library for machine learning labels Aug 3, 2026
@am17an am17an changed the title DSV4: sm tensor Deepseek 4: -sm tensor Aug 3, 2026
@am17an
am17an requested a review from gaugarg-nv August 3, 2026 04:28
@am17an

am17an commented Aug 3, 2026

Copy link
Copy Markdown
Contributor Author

@gaugarg-nv since Johannes is busy would you mind reviewing this PR?

@gaugarg-nv gaugarg-nv left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Could you test this with other GPU counts like 2 and 3? Also test with uneven tesnor-split values like {0.7,0.3}? This often helps uncover bugs related to tensor splitting.

Comment on lines -427 to -429
if (arch == LLM_ARCH_DEEPSEEK4) {
return false;
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

WebGPU backend seem to be failing with this change in CI. can you check?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

WebGPU can't handle any change in test-llama-archs so I would just ignore this for now.

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

Labels

ggml changes relating to the ggml tensor library for machine learning testing Everything test related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants