From 890ea7de934b2bc42c298c66e9ddf664ea533595 Mon Sep 17 00:00:00 2001 From: Mohamed Mekkouri <93391238+MekkCyber@users.noreply.github.com> Date: Mon, 25 Nov 2024 18:04:52 +0100 Subject: [PATCH] Fix failling GGML test (#34871) fix_test --- tests/quantization/ggml/test_ggml.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/quantization/ggml/test_ggml.py b/tests/quantization/ggml/test_ggml.py index 42b05f18449d..1171e82e5285 100644 --- a/tests/quantization/ggml/test_ggml.py +++ b/tests/quantization/ggml/test_ggml.py @@ -623,8 +623,8 @@ def test_falcon7b_q2_k(self): torch_dtype=torch.float16, ) - text = tokenizer(self.example_text, return_tensors="pt").to(torch_device) - out = model.generate(**text, max_new_tokens=10) + text = tokenizer(self.example_text, return_tensors="pt")["input_ids"].to(torch_device) + out = model.generate(text, max_new_tokens=10) EXPECTED_TEXT = "Hello All,\nI am new to this forum." self.assertEqual(tokenizer.decode(out[0], skip_special_tokens=True), EXPECTED_TEXT)