(self, *args)
| 1540 | |
| 1541 | # Taken from `transformers`. |
| 1542 | def float(self, *args): |
| 1543 | # Checks if the model is quantized |
| 1544 | if getattr(self, "is_quantized", False): |
| 1545 | raise ValueError( |
| 1546 | "`.float()` is not supported for quantized model. Please use the model as it is, since the" |
| 1547 | " model has already been cast to the correct `dtype`." |
| 1548 | ) |
| 1549 | else: |
| 1550 | return super().float(*args) |
| 1551 | |
| 1552 | def compile_repeated_blocks(self, *args, **kwargs): |
| 1553 | """ |
no outgoing calls