muiPomeranian
muiPomeranian
Can someone please specify why Thomas mention/refers XLM repo from facebook? Is there any fault from huggingface? I thought I would just use hugging face repo without using "pretrained paramater"...
hey guys, Q1) can someone give some more insight what @thomwolf explaining about? ''' https://github.com/huggingface/transformers/issues/846 The main reason you get bad performance is that XLNet is not good on short...
Thanks a lot for the comment! But I am still vague on [64,128] * [128,64] part! So I guess, we expand the original K with the next chunk to prevent...
I saw this ! But this line does not chamge the dimension from 64,64 to 128,64! I know that we need to have dot production of q and k(q/norm(q))! But...
Thanks for the response again !! But I found out that we don't just attend within same bucket in own chunk and previous chunk, but we attend ALL bucket's attention...
Also, paper said they reduced/limited the computation of self attention(at LSHAttention class forward) but the way we implement is (since you followed the same way as the original trax code)...
> @muiPomeranian each chunk is meant to approximate the length of a bucket, assuming all query/keys are distributed uniformly to all buckets. the authors make the assumption that the buckets...
I see, my bad... then ! https://github.com/lucidrains/reformer-pytorch/blob/master/reformer_pytorch/reformer_pytorch.py#L318 this part is we do calc the self attention activation and seems we are calculating all Q and K's regardless of they are...
> st from attending to the future, for tr oh you are very right ..... https://github.com/lucidrains/reformer-pytorch/blob/master/reformer_pytorch/reformer_pytorch.py#L341 so this line, we prevent attending the future(right side part). then, this should be...
> @muiPomeranian so yea, that part is only the first step of attention. the attention procedure is completed here https://github.com/lucidrains/reformer-pytorch/blob/master/reformer_pytorch/reformer_pytorch.py#L394 > > yup, we are measuring the similarity of QKs...