Skip to content

Commit

Permalink
removed AutoGPTQ dep in linting
Browse files Browse the repository at this point in the history
  • Loading branch information
achew010 committed May 28, 2024
1 parent 9888564 commit 4719982
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ def model_loader(self, model_name: str, **kwargs):

# guarded imports
# Third Party
from auto_gptq import AutoGPTQForCausalLM, BaseQuantizeConfig #pylint: disable=import-outside-toplevel
from auto_gptq.nn_modules.qlinear.qlinear_tritonv2 import QuantLinear #pylint: disable=import-outside-toplevel
from auto_gptq import AutoGPTQForCausalLM, BaseQuantizeConfig #pylint: disable=import-outside-toplevel,import-error
from auto_gptq.nn_modules.qlinear.qlinear_tritonv2 import QuantLinear #pylint: disable=import-outside-toplevel,import-error

# Local
from .autogptq_utils import patch_forward_to_view_attributes_before_call #pylint: disable=import-outside-toplevel
Expand Down Expand Up @@ -202,8 +202,8 @@ def augmentation(
):
# guarded imports
# Third Party
from auto_gptq.nn_modules.qlinear.qlinear_tritonv2 import QuantLinear #pylint: disable=import-outside-toplevel
from auto_gptq.utils.peft_utils import GPTQLoraModel, get_gptq_peft_model #pylint: disable=import-outside-toplevel
from auto_gptq.nn_modules.qlinear.qlinear_tritonv2 import QuantLinear #pylint: disable=import-outside-toplevel,import-error
from auto_gptq.utils.peft_utils import GPTQLoraModel, get_gptq_peft_model #pylint: disable=import-outside-toplevel,import-error

# Local
from .autogptq_utils import create_new_module_peft, replace_module_peft #pylint: disable=import-outside-toplevel
Expand Down
2 changes: 1 addition & 1 deletion plugins/accelerated-peft/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ deps =
pytest>=7
pylint>=2.16.2,<=3.1.0
commands =
pip install -e {toxinidir}
pip install --no-deps {toxinidir}
pylint src tests
allowlist_externals = pylint

Expand Down

0 comments on commit 4719982

Please sign in to comment.