Skip to content

Commit a0004ee

Browse files
authored
Fix: use raw string for CALIBRATION_TEXT (#21790)
This avoids `SyntaxError: invalid escape sequence '\h`
1 parent d662ac7 commit a0004ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

keras/src/quantizers/gptq_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
W_BITS = 4
2626
NUM_CLASSES = 32
2727

28-
CALIBRATION_TEXT = """
28+
CALIBRATION_TEXT = r"""
2929
GPTQ (Generative Pre-trained Transformer Quantization) is an advanced
3030
post-training quantization (PTQ) algorithm designed to compress large
3131
language models with minimal accuracy degradation. It addresses the

0 commit comments

Comments
 (0)