This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
# 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
|
||||
Reference in New Issue
Block a user