Skip to content

Commit d451073

Browse files
authored
feat: CP support for mamba layer (#164)
* feat: add support for mamba cp Signed-off-by: Mehant Kammakomati <[email protected]> * feat: add support for mamba cp Signed-off-by: Mehant Kammakomati <[email protected]> * feat: add support for mamba cp Signed-off-by: Mehant Kammakomati <[email protected]> * feat: add support for mamba cp Signed-off-by: Mehant Kammakomati <[email protected]> * feat: add support for mamba cp Signed-off-by: Mehant Kammakomati <[email protected]> * feat: add support for mamba cp Signed-off-by: Mehant Kammakomati <[email protected]> * feat: add support for mamba cp Signed-off-by: Mehant Kammakomati <[email protected]> * feat: add support for mamba cp Signed-off-by: Mehant Kammakomati <[email protected]> * feat: add support for mamba cp Signed-off-by: Mehant Kammakomati <[email protected]> * feat: add support for mamba cp Signed-off-by: Mehant Kammakomati <[email protected]> * feat: add support for mamba cp Signed-off-by: Mehant Kammakomati <[email protected]> * feat: add support for mamba cp Signed-off-by: Mehant Kammakomati <[email protected]> * feat: add support for mamba cp Signed-off-by: Mehant Kammakomati <[email protected]> * feat: add support for mamba cp Signed-off-by: Mehant Kammakomati <[email protected]> * feat: add support for mamba cp Signed-off-by: Mehant Kammakomati <[email protected]> * debug Signed-off-by: Mehant Kammakomati <[email protected]> * debug Signed-off-by: Mehant Kammakomati <[email protected]> * fix: remove print stmts Signed-off-by: Mehant Kammakomati <[email protected]> * docs: add docs Signed-off-by: Mehant Kammakomati <[email protected]> * docs: add docs Signed-off-by: Mehant Kammakomati <[email protected]> * nit: lint and fmt Signed-off-by: Mehant Kammakomati <[email protected]> * fix: dp cp loss Signed-off-by: Mehant Kammakomati <[email protected]> * feat: add unit test Signed-off-by: Mehant Kammakomati <[email protected]> * feat: add unit test Signed-off-by: Mehant Kammakomati <[email protected]> * feat: add unit test Signed-off-by: Mehant Kammakomati <[email protected]> * feat: add unit test Signed-off-by: Mehant Kammakomati <[email protected]> * nit: remove ds_store files Signed-off-by: Mehant Kammakomati <[email protected]> --------- Signed-off-by: Mehant Kammakomati <[email protected]>
1 parent e2a3538 commit d451073

File tree

16 files changed

+1083
-2
lines changed

16 files changed

+1083
-2
lines changed

.github/workflows/build-and-publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
- "attention-and-distributed-packing"
1818
- "accelerated-moe"
1919
- "online-data-mixing"
20+
- "mamba-cp"
2021

2122
permissions:
2223
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing

.github/workflows/format.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ jobs:
3232
- "attention-and-distributed-packing"
3333
- "accelerated-moe"
3434
- "online-data-mixing"
35+
- "mamba-cp"
3536

3637
steps:
3738
- name: Delete huge unnecessary tools folder

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
__pycache__
22
*.tar.gz
33
*.tox
4-
*.pytest_cache
4+
*.pytest_cache
5+
**/.DS_Store

plugins/framework/src/fms_acceleration/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@
2121
# and activated.
2222
# - hence the plugins that have model loaders should be on top of this list
2323

24-
PLUGINS = ["peft", "foak", "aadp", "moe", "odm"]
24+
PLUGINS = ["peft", "foak", "aadp", "moe", "odm", "mcp"]

plugins/mamba-cp/.isort.cfg

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[settings]
2+
profile=black
3+
from_first=true
4+
import_heading_future=Future
5+
import_heading_stdlib=Standard
6+
import_heading_thirdparty=Third Party
7+
import_heading_firstparty=First Party
8+
import_heading_localfolder=Local
9+
known_firstparty=
10+
known_localfolder=tuning

0 commit comments

Comments
 (0)