src/transformers/onnx/config.py/OnnxConfigWithPast/values_override
class OnnxConfigWithPast:    def values_override(self) -> Optional[Mapping[str, Any]]:
        if hasattr(self._config, "use_cache"):
            return {"use_cache": self.use_past}

        return None