From a4a2768f933459d11bc37c75214ac198b9ce27ee Mon Sep 17 00:00:00 2001 From: Lee Date: Wed, 4 Oct 2023 16:17:07 -0400 Subject: [PATCH] recover `transformers 4.34 refactored` Signed-off-by: Lee --- ctransformers/transformers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ctransformers/transformers.py b/ctransformers/transformers.py index fd9d0e6..e94b446 100644 --- a/ctransformers/transformers.py +++ b/ctransformers/transformers.py @@ -81,8 +81,8 @@ def forward( class CTransformersTokenizer(PreTrainedTokenizer): def __init__(self, llm: LLM, **kwargs): - super().__init__(**kwargs) self._llm = llm + super().__init__(**kwargs) @property def vocab_size(self) -> int: