(self, *args, **kwargs)
| 44 | # Use a class instead `functools.partial` to respect `isinstance` checks and attribute accesses |
| 45 | class QuantizedLinear(Linear4bit): |
| 46 | def __init__(self, *args, **kwargs): |
| 47 | super().__init__(*args, quant_type="fp4", compress_statistics=False, **kwargs) |
| 48 | |
| 49 | quantized_linear_cls = QuantizedLinear |
| 50 | elif mode == "bnb.fp4-dq": |