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 29b0e33 commit ac92c66Copy full SHA for ac92c66
swift/llm/model/model/stepfun.py
@@ -2,6 +2,7 @@
2
import os
3
import shutil
4
import sys
5
+from functools import wraps
6
7
from transformers import AutoModel
8
@@ -79,6 +80,7 @@ def _patch_step_audio2_mini(model):
79
80
81
model.__class__.origin_forward = model.__class__.forward
82
83
+ @wraps(model.__class__.origin_forward)
84
def _forward(self, *args, **kwargs):
85
labels = kwargs.get('labels')
86
output = self.origin_forward(*args, **kwargs)
0 commit comments