Skip to content
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

Introduce Padding-Free Plugin to FMS-Acceleration #57

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
- "framework"
- "accelerated-peft"
- "fused-ops-and-kernels"
- "instruct-lab"

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion plugins/framework/src/fms_acceleration/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@
# and activated.
# - hence the plugins that have model loaders should be on top of this list

PLUGINS = ["peft", "foak"]
PLUGINS = ["peft", "foak", "ilab"]
4 changes: 3 additions & 1 deletion plugins/framework/src/fms_acceleration/framework.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,9 @@ def augmentation(
train_args: TrainingArguments,
modifiable_args: Tuple,
):
model_archs = set(model.config.architectures) # get the config
# get the config
archs = model.config.architectures
model_archs = set(archs if archs is not None else [])

# NOTE: this assumes that augmentation order does not matter
for plugin_name, plugin in self.active_plugins:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ def get_relevant_configuration_sections(configuration: Dict) -> Dict:
_cfg = relevant_config
while n > 1:
p = path.pop(0)
_cfg[p] = {}
if p not in _cfg:
_cfg[p] = {}
_cfg = _cfg[p]
n -= 1

Expand Down
13 changes: 13 additions & 0 deletions plugins/instruct-lab/.isort.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[settings]
profile=black
from_first=true
import_heading_future=Future
import_heading_stdlib=Standard
import_heading_thirdparty=Third Party
import_heading_firstparty=First Party
import_heading_localfolder=Local
known_firstparty=
known_localfolder=tuning

# skip code imported from unsloth
skip_glob=**/unsloth*/**
Loading
Loading