Skip to content

finegrained-fp8: MXFP4 recipes - #923

Merged
danieldk merged 29 commits into
mainfrom
fp4-matmuls
Jun 4, 2026
Merged

danieldk merged 29 commits into
mainfrom
fp4-matmuls

Conversation

@IlyasMoutawwakil

@IlyasMoutawwakil IlyasMoutawwakil commented Jun 4, 2026 •

Copy link
Copy Markdown
Member

Related issue

smae as #867

What does this PR do?

Adds support for DSv4-like fp4 experts

Motivation

DSv4 support across multiple accelerators

Testing

Extended the testing suite

Checklist

  • This PR is linked to an issue that was discussed and approved
  • I have tested these changes locally
  • New/changed functionality has test coverage
  • LLM disclosure:
    • I did not use an LLM to create this PR.
    • I used and LLM for assistance while creating this PR.
    • This PR was mostly or completely generated by an LLM.

Comment thread finegrained-fp8/build.toml Outdated
"xpu",
]
version = 1
version = 2

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

v2

@danieldk

danieldk commented Jun 4, 2026

Copy link
Copy Markdown
Member

/kernel-bot build finegrained-fp8

@github-actions

github-actions Bot commented Jun 4, 2026 •

Copy link
Copy Markdown

Build request processed.

Command: /kernel-bot build finegrained-fp8
Mode: build only
Target branch: pr-923
PR head SHA: 953cd77e7e5cd4be9573cd01716f58e15a069ea6
Workflows: build.yaml, build-mac.yaml, build-windows.yaml

Dispatched (1):

@danieldk

danieldk commented Jun 4, 2026

Copy link
Copy Markdown
Member

/kernel-bot build finegrained-fp8

@github-actions

github-actions Bot commented Jun 4, 2026 •

Copy link
Copy Markdown

Build request processed.

Command: /kernel-bot build finegrained-fp8
Mode: build only
Target branch: pr-923
PR head SHA: eb0f3ccf3e32c3ce4277773bca4c912ba3d962b3
Workflows: build.yaml, build-mac.yaml, build-windows.yaml

Dispatched (1):

@danieldk

danieldk commented Jun 4, 2026

Copy link
Copy Markdown
Member

/kernel-bot build finegrained-fp8

@github-actions

github-actions Bot commented Jun 4, 2026 •

Copy link
Copy Markdown

Build request processed.

Command: /kernel-bot build finegrained-fp8
Mode: build only
Target branch: pr-923
PR head SHA: ce8efbc720d2b2171549c80991cdb2606fe0bb15
Workflows: build.yaml, build-mac.yaml, build-windows.yaml

Dispatched (1):

danieldk added 2 commits June 4, 2026 15:12
This breaks tests in kernel-builder devshells
@danieldk

danieldk commented Jun 4, 2026

Copy link
Copy Markdown
Member

/kernel-bot build finegrained-fp8

@github-actions

github-actions Bot commented Jun 4, 2026 •

Copy link
Copy Markdown

Build request processed.

Command: /kernel-bot build finegrained-fp8
Mode: build only
Target branch: pr-923
PR head SHA: 5a401cf694946794a55d4833b43f78c38d33c851
Workflows: build.yaml, build-mac.yaml, build-windows.yaml

Dispatched (1):

@danieldk
danieldk merged commit dd0ec0d into main Jun 4, 2026
5 checks passed
@danieldk

danieldk commented Jun 4, 2026

Copy link
Copy Markdown
Member

/kernel-bot merge-and-upload finegrained-fp8

@github-actions

github-actions Bot commented Jun 4, 2026 •

Copy link
Copy Markdown

Build request processed.

Command: /kernel-bot merge-and-upload finegrained-fp8
Mode: merge, build and upload
Target branch: ``
PR head SHA: 5a401cf694946794a55d4833b43f78c38d33c851
Workflows: `build.yaml, build-mac.yaml, build-windows.yaml`

Merge result: PR is already merged. Continuing with build/upload.

Dispatched (1):

sayakpaul pushed a commit that referenced this pull request Jun 5, 2026
* add fp4 matmul kernels for deepseek v4 flash

Signed-off-by: Wang, Yi <yi.a.wang@intel.com>

* add missing source code..

Signed-off-by: Wang, Yi <yi.a.wang@intel.com>

* update

Signed-off-by: Wang, Yi <yi.a.wang@intel.com>

* update to w4a8

Signed-off-by: Wang, Yi <yi.a.wang@intel.com>

* update

Signed-off-by: Wang, Yi <yi.a.wang@intel.com>

* perf optimization add add benchmark_perf.py script

Signed-off-by: Wang, Yi <yi.a.wang@intel.com>

* structure

* standarize all kernels and testing around the same api

* better testing framework

* fix batched with sentinels

* tests with sentinels as well

* test static and support ue8m0

* specify v2 as the version

* cleanup

* naming convention

* update readme

* remove bench

* format

* update readme

* trigger

* skip tests on < sm89

* drop sm89 testing, too error prone

* Use triton-rocm-fixes branch to pass build

* Update build.toml

* Fix Torch ops

* Remove custom path insertion

This breaks tests in kernel-builder devshells

---------

Signed-off-by: Wang, Yi <yi.a.wang@intel.com>
Co-authored-by: Wang, Yi <yi.a.wang@intel.com>
Co-authored-by: Daniël de Kok <me@danieldk.eu>
sayakpaul added a commit that referenced this pull request Jun 5, 2026
sayakpaul added a commit that referenced this pull request Jun 5, 2026
* feat: allow kernel-bot to run security analysis.

* include security in the build.

* megablocks for rocm (#916)

* feat: update merge-and-upload permissions (#930)

* [Liger Kernels] Adding TiledMLP kernels (#918)

* chore: adding liger tiled mlp kernels

* liger-kernels: test with Triton ROCm binary wheels

* chore: align layer to pure

---------

Co-authored-by: Daniël de Kok <me@danieldk.eu>

* finegrained-fp8: MXFP4 recipes (#923)

* add fp4 matmul kernels for deepseek v4 flash

Signed-off-by: Wang, Yi <yi.a.wang@intel.com>

* add missing source code..

Signed-off-by: Wang, Yi <yi.a.wang@intel.com>

* update

Signed-off-by: Wang, Yi <yi.a.wang@intel.com>

* update to w4a8

Signed-off-by: Wang, Yi <yi.a.wang@intel.com>

* update

Signed-off-by: Wang, Yi <yi.a.wang@intel.com>

* perf optimization add add benchmark_perf.py script

Signed-off-by: Wang, Yi <yi.a.wang@intel.com>

* structure

* standarize all kernels and testing around the same api

* better testing framework

* fix batched with sentinels

* tests with sentinels as well

* test static and support ue8m0

* specify v2 as the version

* cleanup

* naming convention

* update readme

* remove bench

* format

* update readme

* trigger

* skip tests on < sm89

* drop sm89 testing, too error prone

* Use triton-rocm-fixes branch to pass build

* Update build.toml

* Fix Torch ops

* Remove custom path insertion

This breaks tests in kernel-builder devshells

---------

Signed-off-by: Wang, Yi <yi.a.wang@intel.com>
Co-authored-by: Wang, Yi <yi.a.wang@intel.com>
Co-authored-by: Daniël de Kok <me@danieldk.eu>

* address review feedback

* Revert "megablocks for rocm (#916)"

This reverts commit e06068f.

* Revert "feat: update merge-and-upload permissions (#930)"

This reverts commit a913728.

* Revert "[Liger Kernels] Adding TiledMLP kernels (#918)"

This reverts commit 3d9bb2f.

* Revert "finegrained-fp8: MXFP4 recipes (#923)"

This reverts commit 9f9d5e1.

* security-and-build

---------

Signed-off-by: Wang, Yi <yi.a.wang@intel.com>
Co-authored-by: BADAOUI Abdennacer <106801897+Abdennacer-Badaoui@users.noreply.github.com>
Co-authored-by: drbh <david.richard.holtz@gmail.com>
Co-authored-by: Aritra Roy Gosthipaty <aritra.born2fly@gmail.com>
Co-authored-by: Daniël de Kok <me@danieldk.eu>
Co-authored-by: Ilyas Moutawwakil <57442720+IlyasMoutawwakil@users.noreply.github.com>
Co-authored-by: Wang, Yi <yi.a.wang@intel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants