refactor patcher

Former-commit-id: 263cfe1294f5c3188f5e8d65791f35ee0d87315a
This commit is contained in:
hiyouga
2024-04-24 03:02:23 +08:00
parent d2bb1b3a6b
commit 03f2e3284a
14 changed files with 598 additions and 394 deletions

View File

@@ -5,7 +5,8 @@ from peft import LoraConfig, LoraModel, PeftModel, TaskType, get_peft_model
from transformers.integrations import is_deepspeed_zero3_enabled
from ..extras.logging import get_logger
from .utils import QuantizationMethod, find_all_linear_modules, find_expanded_modules
from .utils.misc import find_all_linear_modules, find_expanded_modules
from .utils.quantization import QuantizationMethod
if TYPE_CHECKING: