Skip to content

Arm backend: Add DeepSeek-R1-Distill-Qwen layer tests#21010

Open
bdemirb wants to merge 2 commits into
pytorch:mainfrom
bdemirb:baris_mletorch-1918_layer_test_DeepSeek_R1_Distill_Qwen_1.5B
Open

Arm backend: Add DeepSeek-R1-Distill-Qwen layer tests#21010
bdemirb wants to merge 2 commits into
pytorch:mainfrom
bdemirb:baris_mletorch-1918_layer_test_DeepSeek_R1_Distill_Qwen_1.5B

Conversation

@bdemirb

@bdemirb bdemirb commented Jul 17, 2026

Copy link
Copy Markdown
Collaborator

This patch adds Arm backend layer tests for
DeepSeek-R1-Distill-Qwen-1.5B. The tests use the checkpoint configuration from the Hugging Face model and the upstream Qwen2 layer implementations that back this distilled model.

The test structure follows the existing Qwen3-VL layer-test approach. The config helper constructs the checkpoint-sized model configuration directly, the test file uses layer-level wrappers with dataclass-driven test cases, and coverage includes TOSA FP, TOSA BF16 reference-model, VGF no-quant, and VGF BF16 no-quant runtime paths.

Token embedding is excluded because the full checkpoint embedding allocation is too large for regular CI. VGF quant coverage is also left out of this patch so CI resources stay focused on the requested BF16 path and export coverage.

The covered layers include rotary embedding, rotary application, KV repetition, attention, RMSNorm, MLP, decoder layer, and final norm.

cc @digantdesai @freddan80 @per @zingo @oscarandersson8218 @mansnils @Sebastian-Larsson @robell @rascani

This patch adds Arm backend layer tests for
DeepSeek-R1-Distill-Qwen-1.5B. The tests use the checkpoint
configuration from the Hugging Face model and the upstream Qwen2
layer implementations that back this distilled model.

The test structure follows the existing Qwen3-VL layer-test
approach. The config helper constructs the checkpoint-sized model
configuration directly, the test file uses layer-level wrappers with
dataclass-driven test cases, and coverage includes TOSA FP, TOSA
BF16 reference-model, VGF no-quant, and VGF BF16 no-quant runtime
paths.

Token embedding is excluded because the full checkpoint embedding
allocation is too large for regular CI. VGF quant coverage is also
left out of this patch so CI resources stay focused on the requested
BF16 path and export coverage.

The covered layers include rotary embedding, rotary application,
KV repetition, attention, RMSNorm, MLP, decoder layer, and final
norm.

Signed-off-by: Baris Demir <baris.demir@arm.com>

Change-Id: Ia28581bbb4ffe070bc35af060fcceef2ac90084a
@bdemirb
bdemirb requested a review from digantdesai as a code owner July 17, 2026 13:33
@pytorch-bot

pytorch-bot Bot commented Jul 17, 2026

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/21010

Note: Links to docs will display an error until the docs builds have been completed.

❌ 1 New Failure, 1 Unrelated Failure

As of commit 2841651 with merge base 47fd0d8 (image):

NEW FAILURE - The following job has failed:

  • Lint / lintrunner-mypy (gh)
    >>> Lint for backends/arm/test/models/DeepSeek_R1_Distill_Qwen/deepseek_r1_distill_qwen_test_config.py:

FLAKY - The following job failed but was likely due to flakiness present on trunk:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jul 17, 2026
@github-actions github-actions Bot added ciflow/trunk module: arm Issues related to arm backend labels Jul 17, 2026
@bdemirb

bdemirb commented Jul 17, 2026

Copy link
Copy Markdown
Collaborator Author

@pytorchbot label "partner: arm"

@pytorch-bot pytorch-bot Bot added the partner: arm For backend delegation, kernels, demo, etc. from the 3rd-party partner, Arm label Jul 17, 2026
@bdemirb

bdemirb commented Jul 17, 2026

Copy link
Copy Markdown
Collaborator Author

@pytorchbot label "release notes: arm"

@pytorch-bot pytorch-bot Bot added the release notes: arm Changes to the ARM backend delegate label Jul 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/trunk CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. module: arm Issues related to arm backend partner: arm For backend delegation, kernels, demo, etc. from the 3rd-party partner, Arm release notes: arm Changes to the ARM backend delegate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant