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

Fix Bug on Peft Config Check in AutoGPTQ Plugin #82

Merged
merged 2 commits into from
Sep 6, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
2 changes: 1 addition & 1 deletion plugins/accelerated-peft/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "fms-acceleration-peft"
version = '0.2.0.dev'
version = '0.2.1'
fabianlim marked this conversation as resolved.
Show resolved Hide resolved
description = "FMS Acceleration for PeFT"
authors = [
{name = "Fabian Lim", email = "flim@sg.ibm.com"},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@

def requires_installation_on_all_linears(peft_config):
tm = peft_config.target_modules
assert isinstance(tm, (list, str)), "target modules can only be list or string"
if isinstance(tm, list):
assert isinstance(
tm, (list, set, str)
), "target modules can only be list, set or string"
if isinstance(tm, (list, set)):
if PEFT_ALL_LINEAR not in tm:
return False
assert len(tm) == 1, f"`{PEFT_ALL_LINEAR}` must exist alone in target modules"
Expand Down
Loading