Skip to content

Conversation

@ggerganov
Copy link
Member

target #11062

My understanding is that there is no need to distinguish between BOS and CLS tokens, so we can simplify the implementation logic by removing CLS.

@github-actions github-actions bot added the python python script changes label Jan 3, 2025
Copy link
Member

@danbev danbev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So this is only about the CLS token itself, which is not used in decoders hence only the BOS is needed, and has nothing to do with the pooling type CLS right?

Base automatically changed from gg/llama-refactor-3 to master January 6, 2025 08:52
@ggerganov ggerganov requested a review from ngxson as a code owner January 6, 2025 08:52
@ggerganov
Copy link
Member Author

So this is only about the CLS token itself, which is not used in decoders hence only the BOS is needed, and has nothing to do with the pooling type CLS right?

Yes, this is not related to the pooling types. We haven't used the CLS token in any of the examples yet, so I think this is a safe change.

@ggerganov ggerganov force-pushed the gg/llama-refactor-5 branch 2 times, most recently from 747c85d to 2772050 Compare January 12, 2025 09:49
@ggerganov ggerganov force-pushed the gg/llama-refactor-5 branch from 2772050 to 00f2b4c Compare January 12, 2025 09:51
@ggerganov ggerganov merged commit 08f10f6 into master Jan 12, 2025
57 of 58 checks passed
@ggerganov ggerganov deleted the gg/llama-refactor-5 branch January 12, 2025 10:15
arthw pushed a commit to arthw/llama.cpp that referenced this pull request Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

python python script changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants