Question about skip connection inside Attention block
まだ誰も着手していません。
評価
- 難易度
- 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 を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
JuliaAI/MLJTransforms.jl#120 ·
メンテナーはふだん 1 日以内に返信
-
CausalManager.add rejects treatment_cost=0.0 and NumPy zero scalars対応中かも @leninworld が 1 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
microsoft/responsible-ai-toolbox#2750 ·
メンテナーはふだん 1 日以内に返信
-
`torch._refs.round` crashes with `OverflowError` on float tensors when `|decimals| >= 19`対応中かも @Sun-Wukhan が 1 日前に担当しました。 オープンbot-triaged module: decompositions module: edge cases module: int overflow module: primTorch oncall: pt2 triage review
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
xiaowu0162/LongMemEval#64 ·
-
get_multimodal_target_regex(..., exclude_router=True) does not exclude shared_expert_gate対応中かも @KonnyakuMatcha が 1 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
modelscope/ms-swift#10696 ·
メンテナーはふだん 1 日以内に返信