(ONNX) Error while converting the model: bad allocation
I was trying to convert gpt2-xl model to onnx model using convert_graph_to_onnx.py.
It ran for a while and stopped with some errors:
`TracerWarning: Converting a tensor to a Python float might cause the trace to be incorrect. We can't record the data flow of Python values, so this value will be treated as a constant in the future. This means that the trace might not generalize to other inputs!`
` w = w / (float(v.size(-1)) ** 0.5)` (in modeling_gpt2.py:151)
`TracerWarning: Converting a tensor to a Python index might cause the trace to be incorrect. We can't record the data flow of Python values, so this value will be treated as a constant in the future. This means that the trace might not generalize to other inputs!`
`mask = self.bias[:, :, ns - nd : ns, :ns]` (in modeling_gpt2.py:151)
And the last one:
`Error while converting the model: bad allocation`
I googled about this problem but there was no effective solution (for me) at all.

Please help me, thank you in advance.
Ok, I know it was my fault. I didn't add the argument `--use-external-format` (gpt2-xl is more than 2GB)
Actually I had to open the convert_graph_to_onnx.py file and read each argument's description
Thanks again, I'm closing the issue now.