Repository navigation
feat(k3-mono): run on an fp16 KDA recurrent state pool #2945
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
rebklee
wants to merge
1
commit into
ROCm:main
Choose a base branch
from
rebklee:rebklee/k3-mono-fp16-state
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -187,14 +187,10 @@ case "${CONC}" in | |
| SPEC_DECODE_ACCEPTANCE_LENGTH=3.84 | ||
| if [[ "${CONC}" == "1" ]]; then | ||
| ATOM_MONO_ENABLE=1 | ||
| # Both overrides are C1-only, because mono is C1-only. They are | ||
| # preconditions, not tuning: without them mono refuses at build time and | ||
| # C1 silently serves the paged path, which is what `ATOM_MONO_ENABLE=1` | ||
| # The override is C1-only, because mono is C1-only. It is a | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this removes the only doc of ATOM_GDN_SSM_DTYPE, add a row in docs/environment_variables.md? |
||
| # precondition, not tuning: without it mono refuses at build time and C1 | ||
| # silently serves the paged path, which is what `ATOM_MONO_ENABLE=1` | ||
| # above claims it does not do. | ||
| # | ||
| # The mono KDA kernel reads the SSM state pool as fp32; the band default | ||
| # above requests fp16, which `kimi_k3/mono/config.py` refuses outright. | ||
| ATOM_GDN_SSM_DTYPE=fp32 | ||
| # The five projections mono loads as plain bf16 (`kimi_k3/mono/weights.py`: | ||
| # `_plain_bf16` on in_proj, f_b_proj, o_proj and the two shared-expert | ||
| # projections). Online ptpc_fp8 would quantize them and the bf16 load | ||
|
|
||
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
with mono on by default this flips mesh cells to mono without measuring them, please pin ATOM_MONO_ENABLE=0 there or measure one..