We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4bd9a1b commit 634c15dCopy full SHA for 634c15d
swift/llm/model/patcher.py
@@ -249,10 +249,7 @@ def patch_automodel_for_sequence_classification(model_meta):
249
250
@classmethod
251
def _new_from_pretrained(cls, *args, **kwargs):
252
- if hasattr(cls, '__init__origin'):
253
- return from_pretrained(cls, *args, **kwargs)
254
__init__ = cls.__init__
255
- cls.__init__origin = __init__
256
257
def __new_init__(self, *args, **kwargs):
258
__init__(self, *args, **kwargs)
0 commit comments