Files
wehub-resource-sync a203934033
Lint test / lint (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:34:58 +08:00

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