16 lines
360 B
Python
16 lines
360 B
Python
# Copyright (c) ModelScope Contributors. All rights reserved.
|
|
import torch
|
|
from typing import TYPE_CHECKING
|
|
|
|
from .base import PeftTuner
|
|
|
|
if TYPE_CHECKING:
|
|
from swift.arguments import SftArguments
|
|
|
|
|
|
class DummyTuner(PeftTuner):
|
|
|
|
@staticmethod
|
|
def prepare_model(args: 'SftArguments', model: torch.nn.Module) -> torch.nn.Module:
|
|
return model
|