From 6f5b5540439eda59cdaae8539d5027051845ae00 Mon Sep 17 00:00:00 2001 From: V-E-D Date: Thu, 12 Jun 2025 10:53:04 +0530 Subject: [PATCH] try except removed --- tests/quantization/ggml/test_ggml.py | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/tests/quantization/ggml/test_ggml.py b/tests/quantization/ggml/test_ggml.py index 77b92046a68..5582edd1777 100644 --- a/tests/quantization/ggml/test_ggml.py +++ b/tests/quantization/ggml/test_ggml.py @@ -992,16 +992,13 @@ class GgufModelTests(unittest.TestCase): return # You need to have an FP16 version of your GGUF model for accurate comparison - try: - converted_model = AutoModelForCausalLM.from_pretrained( - self.deci_model_id, - gguf_file=self.fp16_deci_model_id, - torch_dtype=torch.float16, - device_map="auto", - ) - except Exception as e: - self.skipTest(f"GGUF FP16 model not available: {e}") - return + + converted_model = AutoModelForCausalLM.from_pretrained( + self.deci_model_id, + gguf_file=self.fp16_deci_model_id, + torch_dtype=torch.float16, + device_map="auto", + ) converted_state_dict = converted_model.state_dict() original_state_dict = original_model.state_dict()