Skip to content

Commit e0843af

Browse files
committed
flake : fix
1 parent a1c6d96 commit e0843af

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

convert-hf-to-gguf.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,10 @@ class SentencePieceTokenTypes(IntEnum):
3636
UNUSED = 5
3737
BYTE = 6
3838

39+
3940
AnyModel = TypeVar("AnyModel", bound="type[Model]")
4041

42+
4143
class Model(ABC):
4244
_model_classes: dict[str, type[Model]] = {}
4345

@@ -187,6 +189,7 @@ def load_hparams(dir_model):
187189
@classmethod
188190
def register(cls, *names: str) -> Callable[[AnyModel], AnyModel]:
189191
assert names
192+
190193
def func(modelcls: type[Model]):
191194
for name in names:
192195
cls._model_classes[name] = modelcls

0 commit comments

Comments
 (0)