能否解释一下EmbeddingExt中的旋转位置编码的作用是什么?
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 2.4k
- Forks
- 176
- PR merge metrics
- No merged PRs in 30d
Description
我理解旋转位置编码应该在取得query和key的向量之后计算,这里为什么是在之前计算?
input_sub具体指的是什么?作为旋转位置编码的x_pos参数传入,发现他大部分场景下始终是0向量,所以旋转位置编码没有起到作用
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the EmbeddingExt implementation and tracing how input_sub and x_pos are produced and passed into the rotary positional encoding. Compare the execution order with the surrounding query and key construction, including cases where x_pos is a zero vector. Done means documenting whether this behavior is intentional or identifying a reproducible implementation defect.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100