Repository navigation
feat(cambricon): enable MLU590 flash varlen via InfiniCore bump - #642
Merged
Merged
Conversation
Pin InfiniCore to 63197c5e, which contains the merged Cambricon CNNL flash attention varlen provider. No InfiniLM source changes are required; the provider is selected by the Cambricon operator profile at build time.
wooway777
force-pushed
the
feat/cambricon-mlu590
branch
from
December 4, 2026 07:02
6c32028 to
b279168
Compare
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.
Summary
third_party/InfiniCorefromb350edf6to63197c5e.63197c5econtains the merged Cambricon CNNL flash attention varlen provider (InfiniOpsd552d996, InfiniCore #1590).Motivation
Enables the Cambricon MLU590 InfiniLM workflow for Qwen3 dense inference. The CNNL-backed
FlashAttnVarlenFuncprovider lives in InfiniOps and is pulled in through InfiniCore; InfiniLM only needs to track the InfiniCore revision that contains it.A generic dtype pass-through from
BaseConfig/EngineConfig/LLMintoInferEnginewas tested and intentionally reverted. Qwen3-0.6B's checkpoint already declarestorch_dtype: bfloat16, and the Cambricon BF16 path passes without overriding it. Forcing dtype from the top would change the default dtype behavior on every platform, so this PR does not include that change.No linked issue.
Type of Change
feat— new feature / new modelfix— bug fixperf— performance improvement (no behavioral change)refactor— code restructuring without behavior changetest— adding or fixing tests onlydocs— documentation onlybuild/ci— build system or CI configurationchore— tooling, formatting, or other non-code changesTest Results of Involved Models on Supported Platforms (Please attach screenshots)
examples/test_infer.pysingle request, BF16FlashAttnVarlenFunccalls in prefill; valid response; ~417 msCambricon command:
Trimmed output:
INFINI_OPS_TRACE_CALLS=1showed 28FlashAttnVarlenFunccalls and zeroFlashAttnWithKvcachecalls.Benchmark / Performance Impact
N/A — dependency bump only; no performance claim.
Notes for Reviewers
63197c5eis the InfiniCore main commit that contains the merged InfiniOpsd552d996Cambricon CNNL flash varlen provider.CI / ChatOps
CI has not been triggered from this environment. Please run
/retestor trigger the CI workflow onfeat/cambricon-mlu590.Checklist
Title, Branch, and Commits
<type>/xxx-yyyy-zzzz(feat/cambricon-mlu590).main.fixup!/squash!/wipcommits remain.Scope and Design
General Code Hygiene
C++ Specific
Python Specific
Testing
examples/test_infer.py) on Cambricon MLU590.Build, CI, and Tooling
/retestwas requested. Not triggered from this environment; please/retest.Documentation
Security and Safety