]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
flake : fix
authorGeorgi Gerganov <redacted>
Mon, 4 Mar 2024 19:50:50 +0000 (21:50 +0200)
committerGeorgi Gerganov <redacted>
Mon, 4 Mar 2024 19:50:50 +0000 (21:50 +0200)
convert-hf-to-gguf.py

index ffdba74441e196d4c0693c2fe109e92f4bc066a2..f6369af38081da053113b6cedcdec1521f8d11a2 100755 (executable)
@@ -36,8 +36,10 @@ class SentencePieceTokenTypes(IntEnum):
     UNUSED = 5
     BYTE = 6
 
+
 AnyModel = TypeVar("AnyModel", bound="type[Model]")
 
+
 class Model(ABC):
     _model_classes: dict[str, type[Model]] = {}
 
@@ -187,6 +189,7 @@ class Model(ABC):
     @classmethod
     def register(cls, *names: str) -> Callable[[AnyModel], AnyModel]:
         assert names
+
         def func(modelcls: type[Model]):
             for name in names:
                 cls._model_classes[name] = modelcls