Question about skip connection inside Attention block

オープン
#1 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
静か
技術スタック
jupyter-notebook

調査の方向性

notebooks/TokensToTokenViTExplained.ipynb から始め、報告された transpose、reshape、addition の行の周辺にある Attention クラスを調査します。その実装を、issue で参照されている公式の T2T-ViT Attention ソースと比較します。不一致が説明され、修正すべき確認済みの不整合が明確に特定されれば、作業は完了です。

索引モデルが issue の本文から書いたものです。

説明

Hi, thanks for the great implementation and explanation!

I noticed the following lines in notebooks/TokensToTokenViTExplained.ipynb inside the Attention class:

v = v.transpose(1, 2).reshape(B, N, self.chan)
x = v + x

This seems to introduce a skip connection inside the attention block.

However, when I checked the official T2T-ViT source code, I did not find a similar skip connection within the Attention module.

Could you clarify whether this skip connection is intentional?
Is it part of an experimental design in the notebook, or might it be an inconsistency with the original implementation?

Thanks!

主要言語
Jupyter Notebook
スター
100
フォーク
22
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

似ている issue

Machine Learning の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。