mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-10-29 08:41:22 +00:00 
			
		
		
		
	flake : fix
This commit is contained in:
		| @@ -36,8 +36,10 @@ class SentencePieceTokenTypes(IntEnum): | |||||||
|     UNUSED = 5 |     UNUSED = 5 | ||||||
|     BYTE = 6 |     BYTE = 6 | ||||||
|  |  | ||||||
|  |  | ||||||
| AnyModel = TypeVar("AnyModel", bound="type[Model]") | AnyModel = TypeVar("AnyModel", bound="type[Model]") | ||||||
|  |  | ||||||
|  |  | ||||||
| class Model(ABC): | class Model(ABC): | ||||||
|     _model_classes: dict[str, type[Model]] = {} |     _model_classes: dict[str, type[Model]] = {} | ||||||
|  |  | ||||||
| @@ -187,6 +189,7 @@ class Model(ABC): | |||||||
|     @classmethod |     @classmethod | ||||||
|     def register(cls, *names: str) -> Callable[[AnyModel], AnyModel]: |     def register(cls, *names: str) -> Callable[[AnyModel], AnyModel]: | ||||||
|         assert names |         assert names | ||||||
|  |  | ||||||
|         def func(modelcls: type[Model]): |         def func(modelcls: type[Model]): | ||||||
|             for name in names: |             for name in names: | ||||||
|                 cls._model_classes[name] = modelcls |                 cls._model_classes[name] = modelcls | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Georgi Gerganov
					Georgi Gerganov