Arm backend: Add DeepSeek-R1-Distill-Qwen FP8 layer tests#21012
Open
bdemirb wants to merge 4 commits into
Open
Arm backend: Add DeepSeek-R1-Distill-Qwen FP8 layer tests#21012bdemirb wants to merge 4 commits into
bdemirb wants to merge 4 commits into
Conversation
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
This patch adds follow-up MXFP8 layer-test coverage for DeepSeek-R1-Distill-Qwen-1.5B on the Arm backend. The coverage follows the Qwen3-VL FP8 layer-test structure and focuses on the Qwen2 linear-heavy layers used by the distilled checkpoint: attention, MLP, and decoder layer. Both FP32-input and BF16-input paths use MXFPOpConfig with float8_e4m3fn weights and lower through the TOSA 1.1 FP mxfp extension. The BF16 path also enables the bf16 extension. Signed-off-by: Baris Demir <baris.demir@arm.com> Change-Id: I2337d551a1b3c6c2d23b09d697c7713de6d9a5c0
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/21012
Note: Links to docs will display an error until the docs builds have been completed. ❗ 2 Active SEVsThere are 2 currently active SEVs. If your PR is affected, please view them below:
❌ 1 New Failure, 1 Unrelated FailureAs of commit 9398af4 with merge base d6ad8aa ( 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. |
Collaborator
Author
|
@pytorchbot label "partner: arm" |
Collaborator
Author
|
@pytorchbot label "release notes: arm" |
…R1_Distill_Qwen_1.5B
…R1_Distill_Qwen_1.5B
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
cc @digantdesai @freddan80 @per @zingo @oscarandersson8218 @mansnils @Sebastian-Larsson @robell @rascani