[Transformers] cosine