Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About PromptLearner #74

Open
YangGangZhiQi opened this issue Feb 29, 2024 · 0 comments
Open

About PromptLearner #74

YangGangZhiQi opened this issue Feb 29, 2024 · 0 comments

Comments

@YangGangZhiQi
Copy link

Hi, thanks for this great works!
When reading the source code of CoOp,I have an question about 'token_prefix' and 'token_suffix' in PromptLearner class. How to under this two variables?
PromptLearner_problem

Why embedding[:, :1, :] could represent SOS and embedding[:, 1:1+n_ctx, : ] could represent CLS, EOS?
I would appreciate it if anyone could help me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant