To cite package ‘attention’ in publications use:

Quast B (2023). attention: Self-Attention Algorithm. R package version 0.4.0, https://github.com/bquast/attention.

Corresponding BibTeX entry:

  @Manual{,
    title = {attention: Self-Attention Algorithm},
    author = {Bastiaan Quast},
    year = {2023},
    note = {R package version 0.4.0},
    url = {https://github.com/bquast/attention},
  }