feat: mx integration#110
Merged
chichun-charlie-liu merged 47 commits intofoundation-model-stack:mainfrom May 28, 2025
Merged
Conversation
Signed-off-by: cliu-us <cliu@us.ibm.com>
Signed-off-by: cliu-us <cliu@us.ibm.com>
Signed-off-by: cliu-us <cliu@us.ibm.com>
Signed-off-by: cliu-us <cliu@us.ibm.com>
Signed-off-by: cliu-us <cliu@us.ibm.com>
Signed-off-by: cliu-us <cliu@us.ibm.com>
…. previously has to be all or none mx Signed-off-by: cliu-us <cliu@us.ibm.com>
…-existing quantizer "mx_abc", force nbits=32 for QBmm init to avoid getting quantizers. QBmmMX simply relies on qa_mode, not nbits Signed-off-by: cliu-us <cliu@us.ibm.com>
Signed-off-by: Brandon Groth <brandon.m.groth@gmail.com>
Signed-off-by: Brandon Groth <brandon.m.groth@gmail.com>
Signed-off-by: Brandon Groth <brandon.m.groth@gmail.com>
Signed-off-by: Brandon Groth <brandon.m.groth@gmail.com>
Signed-off-by: Brandon Groth <brandon.m.groth@gmail.com>
feat: Mx impl brandon
Signed-off-by: chichun-charlie-liu <57839396+chichun-charlie-liu@users.noreply.github.com>
tharapalanivel
requested changes
Apr 29, 2025
Collaborator
There was a problem hiding this comment.
Did a quick review and looks like lint and some of the tests are failing sadly but great PR @chichun-charlie-liu and the docs particularly look great 😄 Thank you!
Signed-off-by: cliu-us <cliu@us.ibm.com>
Signed-off-by: cliu-us <cliu@us.ibm.com>
Signed-off-by: cliu-us <cliu@us.ibm.com>
Signed-off-by: cliu-us <cliu@us.ibm.com>
…ings Signed-off-by: Brandon Groth <brandon.m.groth@gmail.com>
Signed-off-by: Brandon Groth <brandon.m.groth@gmail.com>
Signed-off-by: Brandon Groth <brandon.m.groth@gmail.com>
Signed-off-by: Brandon Groth <brandon.m.groth@gmail.com>
Signed-off-by: Brandon Groth <brandon.m.groth@gmail.com>
fix: Setting mx_specs outside qconfig_init
Signed-off-by: Brandon Groth <brandon.m.groth@gmail.com>
BrandonGroth
approved these changes
May 23, 2025
…bugs Signed-off-by: cliu-us <cliu@us.ibm.com>
Signed-off-by: chichun-charlie-liu <57839396+chichun-charlie-liu@users.noreply.github.com>
Signed-off-by: cliu-us <cliu@us.ibm.com>
Signed-off-by: Brandon Groth <brandon.m.groth@gmail.com>
Signed-off-by: Brandon Groth <brandon.m.groth@gmail.com>
BrandonGroth
approved these changes
May 27, 2025
Signed-off-by: Brandon Groth <brandon.m.groth@gmail.com>
Signed-off-by: cliu-us <cliu@us.ibm.com>
tharapalanivel
requested changes
May 27, 2025
| @@ -46,3 +46,4 @@ data*_train/ | |||
| data*_test/ | |||
| act_scales/ | |||
| examples/ | |||
Collaborator
There was a problem hiding this comment.
I'm not sure why we're ignoring examples dir since we actually have example docs there, can we get rid of it?
Collaborator
Author
There was a problem hiding this comment.
adjusted, now we will ignore generated files such as .pt, .json, .safetensors, .arrow but allow others, such as .md and .py
| if qcfg.get("QBmm"): # see Note 4 | ||
| # Local | ||
| from fms_mo.modules import QBmm | ||
| QBmm = qcfg["mapping"]["matmul_or_bmm"] |
Collaborator
There was a problem hiding this comment.
Should this be lower case variable name?
Collaborator
There was a problem hiding this comment.
This is a class pointer disguised as a variable and used as QBmm(args) below. I think it is fine as is.
Signed-off-by: Brandon Groth <brandon.m.groth@gmail.com>
Signed-off-by: cliu-us <cliu@us.ibm.com>
tharapalanivel
approved these changes
May 28, 2025
05bb442
into
foundation-model-stack:main
12 checks passed
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 of the change
Support mx formats by integrating
mxpackage's functionalities. Triggered bymx_prefix in config'sqw_mode,qa_mode,...Related issue number
part #105 but need two more PRs
microxcaling's dependency/installation issue(see Issue 105 for more details)
How to verify the PR
New unit tests are added, including config and toy model tests.
Was the PR tested