Coder Social home page Coder Social logo

Comments (4)

jy-101361-1810897 avatar jy-101361-1810897 commented on August 25, 2024 1

好的明白了,感谢回复

from pose.

dwzhu-pku avatar dwzhu-pku commented on August 25, 2024

你好 @jy-101361-1810897 ,感谢你的关注!图一中第一个样例,前半段覆盖的相对位置是 [1, 511],后半段覆盖的相对位置是 [1, 1535],后半段和前半段之间覆盖的相对位置是 [6049, 8095],因此三个区间合并后是 [1, 1535] ∪ [6049, 8095]
image

from pose.

jy-101361-1810897 avatar jy-101361-1810897 commented on August 25, 2024

感谢您的回复,请问相对位置的具体计算是怎样的?[1, 1535]是怎样得到的

from pose.

dwzhu-pku avatar dwzhu-pku commented on August 25, 2024

感谢您的仔细提问。相对位置就是两个token的position id相减。如,对于后半段,总共有1536个token,这些token的position id分别是 {6560, 6561, ..., 8095}。每个token可以对它之前的所有token做attention,所以相对位置最大是8095-6560=1535,最小是1。

from pose.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.