Open jjohnson-arm opened 3 years ago
UPDATE! The pad_on_left
error occurred as I was using a latest build of PyTorch - 1.9.0a0+git0569f63
or whatever version Colab is using, if I use torch==1.8.0
locally then it does not happen.
BUT, the ids_tensor
issue is still evident in the local version.
Hi @jjohnson-arm , sorry didn't see this previously. I think the tutorial was compatible with HuggingFace in late 2019 / early 2020. We need to update it to the latest version. For ids_tensor
issue, did you see it from colab version?
/assigntome
@svekars @jianyuh Can I get edit access to the colab file or should I make a new colab file and copy the contents and then change the link in the documentation?
Tutorial link: https://github.com/pytorch/tutorials/blob/master/intermediate_source/dynamic_quantization_bert_tutorial.rst Version 1.8.0
Using either the Colab version or following the tutorial text locally, it fails in section 3.2:
Output from colab version:
I can workaround this by commenting out the
pad
arguments in 2.3:There is another problem when running through the tutorial locally, when I got to section 3.3:
I got this error:
The Colab version diverges at this point and doesn't use the
ids_tensor
function.cc @jerryzh168 @jianyuh @z-a-f @vkuzo