Self attention mechanism

Can someone please share with me a simple implementation of self attention mechanism with a toy example in Pytorch? using that Q,K and V