This commit is contained in:
huchenlei 2024-05-25 18:17:08 -04:00
parent 05de350ab3
commit a2ed27f3e6

View File

@ -44,7 +44,7 @@ def set_model_options_patch_replace(model_options, patch, name, block_name, numb
return model_options
ModelType = TypeVar("ModelType", torch.nn.Module)
ModelType = TypeVar("ModelType", bound=torch.nn.Module)
class ModelPatcher(Generic[ModelType]):