build: declare fla-core (flash-linear-attention) as the Kimi-K3 KDA dependency - #321
Merged
Conversation
…ependency Kimi-linear/K3 hard-import fla (fla.modules, fla.ops.kda) for Kimi Delta Attention but it was undeclared. Add fla-core>=0.5.0 to requirements.txt (feeds install_requires) and document it in INSTALL.md and the K3 deploy guide.
Andrewxu313
marked this pull request as ready for review
September 11, 2026 15:03
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.
Description
Declare
fla-core(flash-linear-attention) as a dependency and document it:requirements.txt: addfla-core>=0.5.0(feedsinstall_requires, sopip install .,pip install -r requirements.txt, andinstall_deps.shall pull it).docs/INSTALL.md+docs/deploy-kimi-k3-h200.md: note it as the Kimi-K3 / Kimi-linear KDA dependency.Motivation
Kimi-K3 / Kimi-linear do a bare top-level import of
flainbatchgen/models/moonshotai/kimi_linear/model.py(from fla.modules import FusedRMSNormGated, ShortConvolution;from fla.ops.kda import chunk_kda, fused_recurrent_kda) for Kimi Delta Attention. It was not declared inrequirements.txt,install_deps.sh, or the docs — so a clean install can import-error on K3. The>=0.5.0floor matches the requirement asserted by the K3 KDA test-script (chunk_kdamust acceptuse_beta_sigmoid_in_kernel; the model fail-fasts on olderfla). NOTE: pinned as a floor rather than==because it is a feature floor; set an exact==to the validated version if a reproducible lock is preferred.Type of Change
model— add/extend model support (models/**+ registration seam + model kernels only)kernel— add/optimize a compute kernel (batchgen_kernels/**+ in-tree kernel dirs)core— change scheduling/serving/runtime scaffolding (the only type that may)fix— narrow bug fix (+ a regression test)infra— build / CI / packaging / scripts / Dockerdocs— documentation onlyFile changes
requirements.txtfla-core>=0.5.0(Kimi-K3 KDA dependency)docs/INSTALL.mdfla-coredependencydocs/deploy-kimi-k3-h200.mdfla-coreChecklist